Table of Contents

Enum FrameDisposal

Namespace
Egami.Metadata
Assembly
Egami.dll

What happens to a frame's area before the next frame is drawn.

public enum FrameDisposal

Fields

ClearToBackground = 1

Clear the frame's area to transparent.

None = 0

Leave the frame in place.

RestorePrevious = 2

Restore the area to what it was before the frame was drawn.

Examples

using Raster<Rgba8> clip = Raster.Load<Rgba8>("pan.gif");
FrameList<Rgba8> frames = clip.Frames;

// Play the clip forward and then backward: append the middle frames in reverse.
for (int i = frames.Count - 2; i > 0; i--)
{
    Frame<Rgba8> copy = frames.Add(frames[i]);
    copy.Metadata.Delay = TimeSpan.FromMilliseconds(80);
    copy.Metadata.Disposal = FrameDisposal.None;
    copy.Metadata.Blend = FrameBlend.Source;
}

frames.RemoveAt(0);
clip.Save("pan-bounce.gif");