Method GetDuration
GetDuration(int)
Gets the duration, in milliseconds, of the frame at the specified index.
public virtual int GetDuration(int i)
Parameters
iintThe zero-based index of the frame for which to retrieve the duration. Must be within the range of available frames.
Returns
- int
The duration of the specified frame in milliseconds. Returns 0 if the frame does not exist or the index is invalid.
Remarks
If the specified index is out of range or the frame information is unavailable, the method returns 0. Ensure that the index is valid to obtain the correct duration.