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
| Edit this page View SourcePngMetadata()
Initializes a new instance of the PngMetadata class.
Declaration
public PngMetadata()
Properties
| Edit this page View SourceAnimateRootFrame
Gets or sets a value indicating whether the root frame is shown as part of the animated sequence
Declaration
public bool AnimateRootFrame { get; set; }
Property Value
Type | Description |
---|---|
bool |
BitDepth
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 |
---|---|
PngBitDepth? |
ColorTable
Gets or sets the color table, if any.
Declaration
public ReadOnlyMemory<Color>? ColorTable { get; set; }
Property Value
Type | Description |
---|---|
ReadOnlyMemory<Color>? |
ColorType
Gets or sets the color type.
Declaration
public PngColorType? ColorType { get; set; }
Property Value
Type | Description |
---|---|
PngColorType? |
Gamma
Gets or sets the gamma value for the image.
Declaration
public float Gamma { get; set; }
Property Value
Type | Description |
---|---|
float |
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 |
---|---|
PngInterlaceMode? |
RepeatCount
Gets or sets the number of times to loop this APNG. 0 indicates infinite looping.
Declaration
public uint RepeatCount { get; set; }
Property Value
Type | Description |
---|---|
uint |
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> |
TransparentColor
Gets or sets the transparent color used with non palette based images, if a transparency chunk and markers were decoded.
Declaration
public Color? TransparentColor { get; set; }
Property Value
Type | Description |
---|---|
Color? |
Methods
| Edit this page 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. |