Class PngFilter
Represents the PNG prediction filter applied to image lines before compression.
Inheritance
System.Object
PngFilter
Namespace: PhotoSauce.MagicScaler
Assembly: PhotoSauce.MagicScaler.dll
Syntax
public sealed class PngFilter : Enum
Fields
Adaptive
The encoder may evaluate and choose a different filter per image line.
Declaration
public const PngFilter Adaptive
Field Value
Type | Description |
---|---|
PngFilter |
Average
The average of pixels to the left and above is used as the predicted value.
Declaration
public const PngFilter Average
Field Value
Type | Description |
---|---|
PngFilter |
None
No prediction filter will be used.
Declaration
public const PngFilter None
Field Value
Type | Description |
---|---|
PngFilter |
Paeth
The predicted value is derived from pixels to the left, above, and above-left.
Declaration
public const PngFilter Paeth
Field Value
Type | Description |
---|---|
PngFilter |
Sub
The pixel to the left is used as the predicted value.
Declaration
public const PngFilter Sub
Field Value
Type | Description |
---|---|
PngFilter |
Unspecified
The encoder will choose the filter.
Declaration
public const PngFilter Unspecified
Field Value
Type | Description |
---|---|
PngFilter |
Remarks
The Windows encoder uses Adaptive filtering by default.
Up
The pixel above is used as the predicted value.
Declaration
public const PngFilter Up
Field Value
Type | Description |
---|---|
PngFilter |
value__
Declaration
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |