Trait AnimationTraitConst

Source
pub trait AnimationTraitConst {
    // Required method
    fn as_raw_Animation(&self) -> *const c_void;

    // Provided methods
    fn loop_count(&self) -> i32 { ... }
    fn bgcolor(&self) -> Scalar { ... }
    fn durations(&self) -> Vector<i32> { ... }
    fn frames(&self) -> Vector<Mat> { ... }
}
Expand description

Constant methods for crate::imgcodecs::Animation

Required Methods§

Provided Methods§

Source

fn loop_count(&self) -> i32

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

Source

fn bgcolor(&self) -> Scalar

Background color of the animation in BGRA format.

Source

fn durations(&self) -> Vector<i32>

Duration for each frame in milliseconds.

Source

fn frames(&self) -> Vector<Mat>

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

Implementors§