Table of Contents

Method GetFrameInfo

Namespace
Alternet.Drawing
Assembly
Alternet.UI.Common.dll

GetFrameInfo(string?, int)

Retrieves information about a specific frame from an animated image at the specified URL.

public static AnimatedImageFrameInfo? GetFrameInfo(string? url, int frameIndex = 0)

Parameters

url string

The URL of the animated image from which to extract frame information. This parameter cannot be null.

frameIndex int

The zero-based index of the frame to retrieve. Must be within the range of available frames.

Returns

AnimatedImageFrameInfo

An instance of AnimatedImageFrameInfo containing details of the specified frame, or null if the URL is null or the frame index is out of range.

Remarks

If the URL is null or the frame index is invalid, the method returns null. This method is useful for accessing individual frames in animated images, such as GIFs.