Class PngMetadata
Provides Png specific metadata information for the image.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Formats.Png
Assembly: SixLabors.ImageSharp.dll
Syntax
public class PngMetadata : IDeepCloneable
Constructors
| Improve this Doc View SourcePngMetadata()
Initializes a new instance of the PngMetadata class.
Declaration
public PngMetadata()
Properties
| Improve this Doc View SourceBitDepth
Gets or sets the number of bits per sample or per palette index (not per pixel). Not all values are allowed for all ColorType values.
Declaration
public PngBitDepth? BitDepth { get; set; }
Property Value
Type | Description |
---|---|
Nullable<PngBitDepth> |
ColorType
Gets or sets the color type.
Declaration
public PngColorType? ColorType { get; set; }
Property Value
Type | Description |
---|---|
Nullable<PngColorType> |
Gamma
Gets or sets the gamma value for the image.
Declaration
public float Gamma { get; set; }
Property Value
Type | Description |
---|---|
Single |
HasTransparency
Gets or sets a value indicating whether the image contains a transparency chunk and markers were decoded.
Declaration
public bool HasTransparency { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
InterlaceMethod
Gets or sets a value indicating whether this instance should write an Adam7 interlaced image.
Declaration
public PngInterlaceMode? InterlaceMethod { get; set; }
Property Value
Type | Description |
---|---|
Nullable<PngInterlaceMode> |
TextData
Gets or sets the collection of text data stored within the iTXt, tEXt, and zTXt chunks. Used for conveying textual information associated with the image.
Declaration
public IList<PngTextData> TextData { get; set; }
Property Value
Type | Description |
---|---|
IList<PngTextData> |
TransparentL16
Gets or sets the 16 bit grayscale transparent color. This represents any color in a 16 bit grayscale encoded png that should be transparent.
Declaration
public L16? TransparentL16 { get; set; }
Property Value
Type | Description |
---|---|
Nullable<L16> |
TransparentL8
Gets or sets the 8 bit grayscale transparent color. This represents any color in an 8 bit grayscale encoded png that should be transparent.
Declaration
public L8? TransparentL8 { get; set; }
Property Value
Type | Description |
---|---|
Nullable<L8> |
TransparentRgb24
Gets or sets the Rgb24 transparent color. This represents any color in an 8 bit Rgb24 encoded png that should be transparent.
Declaration
public Rgb24? TransparentRgb24 { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Rgb24> |
TransparentRgb48
Gets or sets the Rgb48 transparent color. This represents any color in a 16 bit Rgb24 encoded png that should be transparent.
Declaration
public Rgb48? TransparentRgb48 { get; set; }
Property Value
Type | Description |
---|---|
Nullable<Rgb48> |
Methods
| Improve this Doc View SourceDeepClone()
Creates a new object that is a deep copy of the current instance.
Declaration
public IDeepCloneable DeepClone()
Returns
Type | Description |
---|---|
IDeepCloneable | The IDeepCloneable. |