Struct png::FrameControl[][src]

pub struct FrameControl {
    pub sequence_number: u32,
    pub width: u32,
    pub height: u32,
    pub x_offset: u32,
    pub y_offset: u32,
    pub delay_num: u16,
    pub delay_den: u16,
    pub dispose_op: DisposeOp,
    pub blend_op: BlendOp,
}
Expand description

Frame control information

Fields

sequence_number: u32

Sequence number of the animation chunk, starting from 0

width: u32

Width of the following frame

height: u32

Height of the following frame

x_offset: u32

X position at which to render the following frame

y_offset: u32

Y position at which to render the following frame

delay_num: u16

Frame delay fraction numerator

delay_den: u16

Frame delay fraction denominator

dispose_op: DisposeOp

Type of frame area disposal to be done after rendering this frame

blend_op: BlendOp

Type of frame area rendering for this frame

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.