Specifies the filter used to optimize the image prior to image compression in PNG images.
Syntax
var value = Windows.Graphics.Imaging.PngFilterMode.automatic;
Attributes
- VersionAttribute(NTDDI_WIN8)
Members
The PngFilterMode enumeration has these members.
| Member | Value | Description |
|---|---|---|
| Automatic | automatic | 0 |
The filter type will be chosen automatically. |
| None | none | 1 |
The image is unmodified. |
| Sub | sub | 2 |
The Sub type filter is applied. |
| Up | up | 3 |
The Up filter type is applied. |
| Average | average | 4 |
The Average type filter is applied. |
| Paeth | paeth | 5 |
The Paeth type filter is applied. |
| Adaptive | adaptive | 6 |
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 |
|
Namespace |
|
|
Metadata |
|
Build date: 12/4/2012