Struct immeta::formats::gif::GraphicControlExtension [] [src]

pub struct GraphicControlExtension {
    pub disposal_method: DisposalMethod,
    pub user_input: bool,
    pub transparent_color_index: Option<u8>,
    pub delay_time: u16,
}

Contains metadata for a graphic control extension block.

This block usually leads an image descriptor block and contains information on how this image should be displayed. It is especially important for animated GIF images because it contains delay and disposal method flags.

Fields

Indicates how the graphic should be treated after it is displayed.

See DisposalMethod enum documentation for more information.

Whether or not user input is required before continuing.

How this flag is treated depends on a application.

Specifies "transparent" color in a color table, if available.

"Transparent" color makes the decoder ignore a pixel and go on to the next one.

Defines the delay before processing the rest of the GIF stream.

The value is specified in one hundredths of a second. Use delay_time_ms() method to obtain a more conventional time representation.

If zero, it means that there is no delay time.

Methods

impl GraphicControlExtension
[src]

[src]

Returns delay time in milliseconds.

See delay_time field description.

Trait Implementations

impl Clone for GraphicControlExtension
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for GraphicControlExtension
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for GraphicControlExtension
[src]

impl Debug for GraphicControlExtension
[src]

[src]

Formats the value using the given formatter. Read more