Table of Contents

Enum AnimationTiming

Namespace
Egami.Operations
Assembly
Egami.dll

How DrawAnimation(Raster, Point, AnimationOverlayOptions?) pairs the overlay's frames with the base's.

public enum AnimationTiming

Fields

ByIndex = 1

By index: base frame i takes overlay frame i and keeps its own delay, whatever the overlay's delays say, as ImageMagick's -layers Composite does.

ByTime = 0

By time: both timelines are cut at every frame boundary of either, so an overlay at another speed plays at its own speed.

Examples

// A looping sticker on an animated background: the sticker keeps its own speed and loops for the background's whole length.
background.Apply(ops => ops.DrawAnimation(sticker, new Point(10, 10), new AnimationOverlayOptions { Repeat = 0, Opacity = 0.9f }), Ct);
background.Save("with-sticker.gif");