Table of Contents

Method ImDecodeAnimation

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

ImDecodeAnimation(InputArray, Animation, int, int)

Loads frames from an animated image buffer (e.g., GIF, AVIF, APNG, WEBP) into the provided Animation object.

public static bool ImDecodeAnimation(InputArray buf, Animation animation, int start = 0, int count = 32767)

Parameters

buf InputArray

The image buffer.

animation Animation

The Animation object where the loaded frames will be stored.

start int

The index of the first frame to load. Defaults to 0.

count int

The number of frames to load. Defaults to 32767.

Returns

bool

true if the buffer was successfully loaded and frames were extracted; false otherwise.