Trait AnimationTrait

Source
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§

Provided Methods§

Source

fn set_loop_count(&mut self, val: i32)

Number of times the animation should loop. 0 means infinite looping.

Source

fn set_bgcolor(&mut self, val: Scalar)

Background color of the animation in BGRA format.

Source

fn set_durations(&mut self, val: Vector<i32>)

Duration for each frame in milliseconds.

Source

fn set_frames(&mut self, val: Vector<Mat>)

Vector of frames, where each Mat represents a single frame.

Implementors§