Class WebpMetadata
Provides Webp specific metadata information for the image.
Implements
Namespace: SixLabors.ImageSharp.Formats.Webp
Assembly: SixLabors.ImageSharp.dll
Syntax
public class WebpMetadata : object, IDeepCloneable
Constructors
| Improve this Doc View SourceWebpMetadata()
Initializes a new instance of the WebpMetadata class.
Declaration
public WebpMetadata()
Properties
| Improve this Doc View SourceBackgroundColor
Gets or sets the default background color of the canvas when animating. This color may be used to fill the unused space on the canvas around the frames, as well as the transparent pixels of the first frame. The background color is also used when the Disposal method is RestoreToBackground.
Declaration
public Color BackgroundColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
FileFormat
Gets or sets the webp file format used. Either lossless or lossy.
Declaration
public WebpFileFormatType? FileFormat { get; set; }
Property Value
Type | Description |
---|---|
Nullable<WebpFileFormatType> |
RepeatCount
Gets or sets the loop count. The number of times to loop the animation. 0 means infinitely.
Declaration
public ushort RepeatCount { get; set; }
Property Value
Type | Description |
---|---|
UInt16 |
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. |