Enum PngFilterMethod
- Namespace
- SixLabors.ImageSharp.Formats.Png
- Assembly
- SixLabors.ImageSharp.dll
Provides enumeration of available PNG filter methods.
public enum PngFilterMethod
Fields
Adaptive = 5Computes 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 = 3The Average filter uses the average of the two neighboring pixels (left and above) to predict the value of a pixel.
None = 0With the None filter, the scanline is transmitted unmodified.
Paeth = 4The 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 = 1The Sub filter transmits the difference between each byte and the value of the corresponding byte of the prior pixel.
Up = 2The 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.