SKPngEncoderFilterFlags Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Name | Value | Description |
---|---|---|
NoFilters | 0 | Do not use any filters. |
None | 8 | Transmit unmodified. |
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)] |
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)] |
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))] |
AllFilters | 248 | Try all the filters. |
Applies to
SkiaSharp