Enum PngFilterMethod
Provides enumeration of available PNG filter methods.
Namespace: SixLabors.ImageSharp.Formats.Png
Assembly: SixLabors.ImageSharp.dll
Syntax
public enum PngFilterMethod
Fields
Name | Description |
---|---|
Adaptive | Computes the output scanline using all five filters, and selects the filter that gives the smallest sum of absolute values of outputs. This method usually outperforms any single fixed filter choice. |
Average | The Average filter uses the average of the two neighboring pixels (left and above) to predict the value of a pixel. |
None | With the None filter, the scanline is transmitted unmodified. |
Paeth | The Paeth filter computes 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. |
Sub | The Sub filter transmits the difference between each byte and the value of the corresponding byte of the prior pixel. |
Up | The Up filter is just like the Sub filter except that the pixel immediately above the current pixel, rather than just to its left, is used as the predictor. |