Class WebpMetadata
Provides Webp specific metadata information for the image.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Formats.Webp
Assembly: SixLabors.ImageSharp.dll
Syntax
public class WebpMetadata : IDeepCloneable
Constructors
| Edit this page View SourceWebpMetadata()
Initializes a new instance of the WebpMetadata class.
Declaration
public WebpMetadata()
Properties
| Edit this page 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 |
---|---|
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 |
---|---|
ushort |
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. |