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
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈