AnimatedImageFrame Class
A single decoded (or to-be-encoded) frame of an AnimatedImage: a fully composited canvas plus timing/disposal metadata.
public sealed class AnimatedImageFrame
Inheritance System.Object → AnimatedImageFrame
| Properties |
|
| Disposal |
How this frame’s canvas region should be treated once its Duration elapses. |
| Duration |
How long this frame should be displayed before advancing to the next one. |
| Image |
The fully composited canvas for this frame (always Rgba32 — animation compositing and RestoreToBackground both rely on alpha). When pulled from Frames, this may alias decoder-internal state and be invalidated once the next frame is requested — see the Frames remarks for the full contract. |
| Methods |
|
| Clone() |
Creates an independent copy of this frame, whose Image is unaffected by later frames pulled from the Frames enumeration this frame came from. Use this to retain a frame beyond the point where it would otherwise be invalidated. |