PngFilterMode enumeration

Applies to Windows and Windows Phone

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

Syntax


public enum PngFilterMode

Attributes

[Version(0x06020000)]

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

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

 

 

Show:
© 2014 Microsoft