AnimationDecoder

Trait AnimationDecoder 

Source
pub trait AnimationDecoder<'a> {
    // Required method
    fn into_frames(self) -> Frames<'a> ;

    // Provided method
    fn loop_count(&self) -> LoopCount { ... }
}
Expand description

AnimationDecoder trait

Required Methods§

Source

fn into_frames(self) -> Frames<'a>

Consume the decoder producing a series of frames.

Provided Methods§

Source

fn loop_count(&self) -> LoopCount

Loop count of the animated image.

By default, indicates the animation should run once. Formats may implement other defaults and read such metadata from the file.

Implementors§