Table of Contents

Class SkiaImageProcessor

Namespace
Rustaveli.Pdf
Assembly
Rustaveli.Pdf.Raster.dll

Re-encodes images for PDF export with Skia: turned the right way up, scaled with a cubic filter to the pixels asked for, and written as JPEG at the quality asked for — or as PNG where the image has transparency or no quality is asked.

public sealed class SkiaImageProcessor : IImageProcessor
Inheritance
SkiaImageProcessor
Implements
Inherited Members

Properties

Instance

The processor; it keeps no state, so one serves every export.

public static SkiaImageProcessor Instance { get; }

Property Value

SkiaImageProcessor

Methods

Process(ImageProcessing)

The image request describes, the right way up, re-encoded as a PNG or JPEG of the pixels asked for.

public byte[] Process(ImageProcessing request)

Parameters

request ImageProcessing

Returns

byte[]