public class Animation extends Object
Animation struct is designed to store and manage data for animated sequences such as those from animated formats (e.g., GIF, AVIF, APNG, WebP).
It provides support for looping, background color settings, frame timing, and frame storage.| Modifier and Type | Field and Description |
|---|---|
protected long |
nativeObj |
| Modifier | Constructor and Description |
|---|---|
protected |
Animation(long addr) |
| Modifier and Type | Method and Description |
|---|---|
static Animation |
__fromPtr__(long addr) |
protected void |
finalize() |
Scalar |
get_bgcolor() |
MatOfInt |
get_durations() |
List<Mat> |
get_frames() |
int |
get_loop_count() |
long |
getNativeObjAddr() |
void |
set_bgcolor(Scalar bgcolor) |
void |
set_durations(MatOfInt durations) |
void |
set_frames(List<Mat> frames) |
void |
set_loop_count(int loop_count) |
public long getNativeObjAddr()
public static Animation __fromPtr__(long addr)
public int get_loop_count()
public void set_loop_count(int loop_count)
public Scalar get_bgcolor()
public void set_bgcolor(Scalar bgcolor)
public MatOfInt get_durations()
public void set_durations(MatOfInt durations)
Copyright © 2025. All rights reserved.