PngFilterMode Enum
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the filter used to optimize the image prior to image compression in PNG images.
public enum class PngFilterMode
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class PngFilterMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum PngFilterMode
var value = Windows.Graphics.Imaging.PngFilterMode.automatic
Public Enum PngFilterMode
- Inheritance
-
PngFilterMode
- Attributes
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
Name | Value | Description |
---|---|---|
Automatic | 0 | The filter type will be chosen automatically. |
None | 1 | The image is unmodified. |
Sub | 2 | The Sub type filter is applied. |
Up | 3 | The Up filter type is applied. |
Average | 4 | The Average type filter is applied. |
Paeth | 5 | The Paeth type filter is applied. |
Adaptive | 6 | The Adaptive type filter 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.
Product | Versions |
---|---|
WinRT | Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |