Class PngOptions
- Namespace
- Aspose.Imaging.ImageOptions
- Assembly
- Aspose.Imaging.dll
Create high-quality Portable Network Graphics (PNG) raster images effortlessly with our API, offering customizable options for compression levels, bits per pixel depths, and alpha bits. Seamlessly process XMP metadata containers, ensuring comprehensive image metadata management, and empowering you to tailor PNG images to your exact specifications with ease.
public class PngOptions : ImageOptionsBase, IDisposable, IHasXmpData, IHasMetadata
- Inheritance
-
PngOptions
- Implements
- Derived
- Inherited Members
Constructors
PngOptions()
Initializes a new instance of the PngOptions class.
public PngOptions()
PngOptions(PngOptions)
Initializes a new instance of the PngOptions class.
public PngOptions(PngOptions pngOptions)
Parameters
pngOptions
PngOptionsThe PNG options.
Fields
DefaultCompressionLevel
The default compression level.
public const int DefaultCompressionLevel = 6
Field Value
Properties
BitDepth
Gets or sets the bit depth values in range of 1, 2, 4, 8, 16.
Mind the next limits:
Grayscale, IndexedColor support bit depth of 1, 2, 4, 8.
GrayscaleWithAlpha supports bit depth of 8.
Truecolor, TruecolorWithAlpha support bit depth of 8, 16.
public byte BitDepth { get; set; }
Property Value
ColorType
Gets or sets the type of the color.
public PngColorType ColorType { get; set; }
Property Value
- PngColorType
The type of the color.
CompressionLevel
Gets or sets the PngImage compression level in the range of 0-9. The higher the value - the more efficient the compression.
public int CompressionLevel { get; set; }
Property Value
FilterType
Gets or sets the filter type used during png file save process.
public PngFilterType FilterType { get; set; }
Property Value
Progressive
Gets or sets a value indicating whether a PngImage is progressive.
public bool Progressive { get; set; }