PngFilterMode PngFilterMode PngFilterMode PngFilterMode Enum

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

Syntax

Declaration

public enum PngFilterModepublic enum PngFilterModePublic Enum PngFilterModepublic enum PngFilterMode

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.

Fields

Adaptive
Adaptive
Adaptive
Adaptive

The Adaptive type filter is applied.

Automatic
Automatic
Automatic
Automatic

The filter type will be chosen automatically.

Average
Average
Average
Average

The Average type filter is applied.

None
None
None
None

The image is unmodified.

Paeth
Paeth
Paeth
Paeth

The Paeth type filter is applied.

Sub
Sub
Sub
Sub

The Sub type filter is applied.

Up
Up
Up
Up

The Up filter type is applied.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute

Details

Assembly

Windows.Graphics.Imaging.dll