AnimationFrame
Ecng.Drawing
One frame of an animation: the whole canvas as it looks while the frame is shown, and for how long.
Конструкторы
AnimationFrame
public AnimationFrame(RasterImage image, int delayNumerator, int delayDenominator)
animationFrame = AnimationFrame(image, delayNumerator, delayDenominator)
- image
- The composited canvas.
- delayNumerator
- Numerator of the time the frame is shown for, in seconds.
- delayDenominator
- Denominator of that time; greater than zero.
Свойства
DelayDenominator
public int DelayDenominator { get; }
value = animationFrame.DelayDenominator
The frame is shown for DelayNumerator / DelayDenominator of a second: kept as the fraction the file states, so that writing it back changes nothing.
DelayNumerator
public int DelayNumerator { get; }
value = animationFrame.DelayNumerator
The frame is shown for DelayNumerator / DelayDenominator of a second: kept as the fraction the file states, so that writing it back changes nothing.
Методы
WithImage
public AnimationFrame WithImage(RasterImage image)
result = animationFrame.WithImage(image)
The same timing over another picture.