Filter Mode Enum
Specifies the filter used to optimize the image prior to image compression in PNG images.
public enum class PngFilterMode
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)] enum PngFilterMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)] public enum PngFilterMode
var value = Windows.Graphics.Imaging.PngFilterMode.automatic
Public Enum PngFilterMode
Windows 10 requirements
Windows 10 (introduced in 10.0.10240.0)
Windows.Foundation.UniversalApiContract (introduced in v1.0)
The Adaptive type filter is applied.
The filter type will be chosen automatically.
The Average type filter is applied.
The image is unmodified.
The Paeth type filter is applied.
The Sub type filter is applied.
The Up filter type is applied.
The PNG filter modes only affect compression efficiency and not image quality. None does not perform any filtering and is typically the fastest but consumes the most space. Sub, Up, Average and Paeth filtering perform differently across various images. Adaptive filtering attempts to select the most efficient of the previous filter modes for each scanline in the image. This typically performs the slowest but consumes the least space.