Windows Dev Center

PngFilterMode enumeration

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

Syntax


var value = Windows.Graphics.Imaging.PngFilterMode.automatic;

Members

The PngFilterMode enumeration has these members.

MemberValueDescription
Automatic | automatic0

The filter type will be chosen automatically.

None | none1

The image is unmodified.

Sub | sub2

The Sub type filter is applied.

Up | up3

The Up filter type is applied.

Average | average4

The Average type filter is applied.

Paeth | paeth5

The Paeth type filter is applied.

Adaptive | adaptive6

The Adaptive type filter is applied.

Remarks

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.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Graphics.Imaging
Windows::Graphics::Imaging [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Graphics.Imaging
Windows::Graphics::Imaging [C++]

Metadata

Windows.winmd

Attributes

[Version(0x06020000)]

 

 

Show:
© 2015 Microsoft