Package org.opencv.imgcodecs
Class Animation
- java.lang.Object
-
- org.opencv.imgcodecs.Animation
-
public class Animation extends java.lang.Object
Represents an animation with multiple frames. TheAnimation
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.
-
-
Field Summary
Fields Modifier and Type Field Description protected long
nativeObj
-
Constructor Summary
Constructors Modifier Constructor Description protected
Animation(long addr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Animation
__fromPtr__(long addr)
protected void
finalize()
Scalar
get_bgcolor()
MatOfInt
get_durations()
java.util.List<Mat>
get_frames()
int
get_loop_count()
long
getNativeObjAddr()
void
set_bgcolor(Scalar bgcolor)
void
set_durations(MatOfInt durations)
void
set_frames(java.util.List<Mat> frames)
void
set_loop_count(int loop_count)
-
-
-
Method Detail
-
getNativeObjAddr
public long getNativeObjAddr()
-
__fromPtr__
public static Animation __fromPtr__(long addr)
-
get_loop_count
public int get_loop_count()
-
set_loop_count
public void set_loop_count(int loop_count)
-
get_bgcolor
public Scalar get_bgcolor()
-
set_bgcolor
public void set_bgcolor(Scalar bgcolor)
-
get_durations
public MatOfInt get_durations()
-
set_durations
public void set_durations(MatOfInt durations)
-
get_frames
public java.util.List<Mat> get_frames()
-
set_frames
public void set_frames(java.util.List<Mat> frames)
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
-