Class PngWriteDefines
- Namespace
- ImageMagick.Formats
- Assembly
- Magick.NET-Q8-AnyCPU.dll
Class for defines that are used when a ImageMagick.MagickFormat.Png image is written.
public sealed class PngWriteDefines : IWriteDefines, IDefines
- Inheritance
-
PngWriteDefines
- Implements
-
IWriteDefinesIDefines
- Inherited Members
Constructors
PngWriteDefines()
public PngWriteDefines()
Properties
BitDepth
Gets or sets the bit depth for the PNG image. Valid values: 1, 2, 4, 8, 16.
public uint? BitDepth { get; set; }
Property Value
- uint?
Exceptions
- ArgumentException
Thrown when the bit depth is invalid for the given color type.
ColorType
Gets or sets the color type of the image.
public ColorType? ColorType { get; set; }
Property Value
- ColorType?
Exceptions
- ArgumentException
Thrown when the color type is invalid or unsupported.
CompressionFilter
Gets or sets the compression filter for the PNG image. For compression level 0 (quality value less than 10), the Huffman-only strategy is used, which is fastest but not necessarily the worst compression.
public PngCompressionFilter? CompressionFilter { get; set; }
Property Value
CompressionLevel
Gets or sets the compression level for the PNG image. The compression level ranges from 0 to 9, where 0 indicates no compression and 9 indicates maximum compression. For compression level 0 (quality value less than 10), the Huffman-only strategy is used, which is the fastest but not necessarily the worst compression.
public uint? CompressionLevel { get; set; }
Property Value
- uint?
CompressionStrategy
Gets or sets the compression strategy for the PNG image.
public PngCompressionStrategy? CompressionStrategy { get; set; }
Property Value
Defines
Gets the defines that should be set as a define on an image.
public IEnumerable<IDefine> Defines { get; }
Property Value
- IEnumerable<IDefine>
ExcludeChunks
Gets or sets the chunks to be excluded.
public PngChunkFlags? ExcludeChunks { get; set; }
Property Value
Format
Gets the format where the defines are for.
public MagickFormat Format { get; }
Property Value
- MagickFormat
IncludeChunks
Gets or sets the chunks to be included.
public PngChunkFlags? IncludeChunks { get; set; }
Property Value
PreserveColorMap
Gets or sets a value indicating whether ColorMap should be preserve when writing the image.
public bool PreserveColorMap { get; set; }
Property Value
PreserveiCCP
Gets or sets a value indicating whether the iCCP chunk should be preserved when writing the image.
public bool PreserveiCCP { get; set; }