PngFilterMode PngFilterMode PngFilterMode PngFilterMode PngFilterMode Enum


Specifies the filter used to optimize the image prior to image compression in PNG images.

public : enum class PngFilterMode
enum class winrt::Windows::Graphics::Imaging::PngFilterMode : int32_t
public enum PngFilterMode
Public Enum PngFilterMode
var value = Windows.Graphics.Imaging.PngFilterMode.adaptive;

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


Adaptive Adaptive Adaptive Adaptive Adaptive 6

The Adaptive type filter is applied.

Automatic Automatic Automatic Automatic Automatic 0

The filter type will be chosen automatically.

Average Average Average Average Average 4

The Average type filter is applied.

None None None None None 1

The image is unmodified.

Paeth Paeth Paeth Paeth Paeth 5

The Paeth type filter is applied.

Sub Sub Sub Sub Sub 2

The Sub type filter is applied.

Up Up Up Up Up 3

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.