SKPngEncoderFilterFlags Enum

Definition

Various row filters to use when encoding a PNG.

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum SKPngEncoderFilterFlags
Inheritance
SKPngEncoderFilterFlags
Attributes

Fields

AllFilters 248

Try all the filters.

Avg 64

Use the average of the two neighboring pixels (left and above) to predict the value of a pixel. [Average(x) = Raw(x) - floor((Raw(x-bpp)+Prior(x))/2)]

NoFilters 0

Do not use any filters.

None 8

Transmit unmodified.

Paeth 128

Compute a simple linear function of the three neighboring pixels (left, above, upper left), then chooses as predictor the neighboring pixel closest to the computed value. [Paeth(x) = Raw(x) - PaethPredictor(Raw(x-bpp), Prior(x), Prior(x-bpp))]

Sub 16

Transmit the difference between each byte and the value of the corresponding byte of the prior pixel. [Sub(x) = Raw(x) - Raw(x-bpp)]

Up 32

Transmit the difference between each byte and the value of the corresponding byte of the pixel above. [Up(x) = Raw(x) - Prior(x)]

Applies to