Class FrameMetadata
Metadata that belongs to one frame.
public sealed class FrameMetadata
- Inheritance
-
FrameMetadata
- Inherited Members
Examples
using Raster<Rgba8> clip = Raster.Load<Rgba8>("pan.gif");
TimeSpan length = TimeSpan.Zero;
foreach (Frame<Rgba8> frame in clip.Frames)
{
FrameMetadata timing = frame.Metadata;
length += timing.Delay;
Console.WriteLine($"{timing.Delay.TotalMilliseconds} ms, {timing.Disposal}, {timing.Blend}, changed area {timing.Bounds}");
}
Properties
Blend
Gets or sets how the frame is combined with the canvas.
public FrameBlend Blend { get; set; }
Property Value
Bounds
Gets or sets the rectangle the frame was stored as in its file, or null. For information: writers work out their own from the pixels, and operations that change the size or layout clear it.
public Rect? Bounds { get; set; }
Property Value
- Rect?
Delay
Gets or sets how long the frame is shown in an animation.
public TimeSpan Delay { get; set; }
Property Value
Disposal
Gets or sets what happens to the frame's area before the next frame.
public FrameDisposal Disposal { get; set; }
Property Value
FormatDetails
Gets or sets format-specific details of the frame from the reader, such as a GIF frame's own palette, or null. Operations that change the size or layout clear it.
public FormatDetails? FormatDetails { get; set; }
Property Value
Methods
Copy()
Returns a deep copy.
public FrameMetadata Copy()
Returns
- FrameMetadata
The copy.