Method GetFrame
GetFrame(string?, int)
Retrieves a bitmap representing a specific frame from a GIF image located at the specified URL.
public static SKBitmap? GetFrame(string? url, int frameIndex = 0)
Parameters
urlstringThe URL of the GIF image from which to extract frames. Must reference a valid GIF file.
frameIndexintThe zero-based index of the frame to retrieve. Must be within the range of available frames in the GIF.
Returns
- SKBitmap
An SKBitmap containing the image data for the specified frame, or null if the frame cannot be retrieved.
Remarks
This method extracts all frames from the GIF and returns the bitmap for the specified frame index. Ensure that the URL points to a valid GIF image.