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
bufInputArrayThe image buffer.
animationAnimationThe Animation object where the loaded frames will be stored.
startintThe index of the first frame to load. Defaults to 0.
countintThe number of frames to load. Defaults to 32767.
Returns
- bool
true if the buffer was successfully loaded and frames were extracted; false otherwise.