Class PngReadDefines
- Namespace
- ImageMagick.Formats
- Assembly
- Magick.NET-Q8-AnyCPU.dll
Class for defines that are used when a ImageMagick.MagickFormat.Png image is read.
public sealed class PngReadDefines : IReadDefines, IDefines
- Inheritance
-
PngReadDefines
- Implements
-
IReadDefinesIDefines
- Inherited Members
Constructors
PngReadDefines()
public PngReadDefines()
Properties
ChunkCacheMax
Gets or sets the total number of sPLT, text, and unknown chunks that can be stored (png:chunk-cache-max). 0 means unlimited.
public long? ChunkCacheMax { get; set; }
Property Value
- long?
ChunkMallocMax
Gets or sets the total memory that a zTXt, sPLT, iTXt, iCCP, or unknown chunk can occupy when decompressed (png:chuck-malloc-max). 0 means unlimited.
public long? ChunkMallocMax { get; set; }
Property Value
- long?
Defines
Gets the defines that should be set as a define on an image.
public IEnumerable<IDefine> Defines { get; }
Property Value
- IEnumerable<IDefine>
Format
Gets the format where the defines are for.
public MagickFormat Format { get; }
Property Value
- MagickFormat
IgnoreCrc
Gets or sets a value indicating whether the PNG decoder should ignore the CRC when reading the image. (png:ignore-crc).
public bool IgnoreCrc { get; set; }
Property Value
PreserveiCCP
Gets or sets a value indicating whether the PNG decoder and encoder examine any ICC profile that is present. By default, the PNG decoder and encoder examine any ICC profile that is present, either from an iCCP chunk in the PNG input or supplied via an option, and if the profile is recognized to be the sRGB profile, converts it to the sRGB chunk. You can use this option to prevent this from happening; in such cases the iCCP chunk will be read. (png:preserve-iCCP).
public bool PreserveiCCP { get; set; }
Property Value
SkipProfiles
Gets or sets the profile(s) that should be skipped when the image is read (profile:skip).
public PngProfileTypes? SkipProfiles { get; set; }
Property Value
SwapBytes
Gets or sets a value indicating whether the bytes should be swapped. The PNG specification requires that any multi-byte integers be stored in network byte order (MSB-LSB endian). This option allows you to fix any invalid PNG files that have 16-bit samples stored incorrectly in little-endian order (LSB-MSB). (png:swap-bytes).
public bool SwapBytes { get; set; }