Table of Contents

Enum FrameBlend

Namespace
Egami.Metadata
Assembly
Egami.dll

How a frame is combined with what is already on the canvas.

public enum FrameBlend

Fields

Over = 1

Alpha-blend over the existing pixels.

Source = 0

Replace the pixels.

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");