pub trait AnimationTrait: AnimationTraitConst {
// Required method
fn as_raw_mut_Animation(&mut self) -> *mut c_void;
// Provided methods
fn set_loop_count(&mut self, val: i32) { ... }
fn set_bgcolor(&mut self, val: Scalar) { ... }
fn set_durations(&mut self, val: Vector<i32>) { ... }
fn set_frames(&mut self, val: Vector<Mat>) { ... }
}
Expand description
Mutable methods for crate::imgcodecs::Animation
Required Methods§
fn as_raw_mut_Animation(&mut self) -> *mut c_void
Provided Methods§
Sourcefn set_loop_count(&mut self, val: i32)
fn set_loop_count(&mut self, val: i32)
Number of times the animation should loop. 0 means infinite looping.
Sourcefn set_bgcolor(&mut self, val: Scalar)
fn set_bgcolor(&mut self, val: Scalar)
Background color of the animation in BGRA format.
Sourcefn set_durations(&mut self, val: Vector<i32>)
fn set_durations(&mut self, val: Vector<i32>)
Duration for each frame in milliseconds.
Sourcefn set_frames(&mut self, val: Vector<Mat>)
fn set_frames(&mut self, val: Vector<Mat>)
Vector of frames, where each Mat represents a single frame.