Class AnimatedImageExtractor
Provides static methods for extracting individual frames from animated images.
public static class AnimatedImageExtractor
- Inheritance
-
AnimatedImageExtractor
Remarks
The AnimatedImageExtractor class enables users to extract all frames from a GIF file, either by specifying a file path or by providing a stream. Each extracted frame is returned as an AnimatedImageFrameInfo object, which contains the frame's bitmap, duration, and related metadata. This class is useful for scenarios where frame-by-frame access to animated images is required, such as custom animation playback or image analysis.
Methods
- ExtractFramesFromGif(Stream)
Extracts all frames from a GIF image stream and returns an array containing information about each frame, including composited and original bitmaps, duration, and frame dependencies.
- ExtractFramesFromGif(string?)
Extracts all frames from a GIF image file at the specified URL or path. In order to build file name into url, use PrepareFileUrl(string).
- GetFrame(string?, int)
Retrieves a bitmap representing a specific frame from a GIF image located at the specified URL.
- GetFrameInfo(string?, int)
Retrieves information about a specific frame from an animated image at the specified URL.
- LogFrame(AnimatedImageFrameInfo?, ILogWriter?)
Logs detailed information about a specific animation frame identified by the specified URL and frame index.
- LogFrames(string?, int, ILogWriter?)
Logs information about each frame extracted from a GIF located at the specified URL using the provided log writer.