[−][src]Struct yaged::types::Frame
Implementations
impl Frame
[src]
pub fn image_descriptor(&self) -> &ImageDescriptor
[src]
pub fn local_color_map(&self) -> &Option<ColorMap>
[src]
pub fn raster_data(&self) -> &Vec<u8>
[src]
Normal ColorMap index color mapping. Color maps / graphic control extension block usage is necessary to retrieve the pixel colors in rgba.
pub fn rgba_raster_data(&self) -> &Option<Vec<u8>>
[src]
This is not a gif89a specification field, present only if requested in the decoding process. Every byte of the raster data expanded to 4 bytes (R G B A). Color maps / graphic control extension block has already been used internally to obtain this raster data representation.
pub fn graphic_control_extension(&self) -> &Option<GraphicControlExtension>
[src]
pub fn new(
image_descriptor: ImageDescriptor,
local_color_map: Option<ColorMap>,
raster_data: Vec<u8>,
rgba_raster_data: Option<Vec<u8>>,
graphic_control_extension: Option<GraphicControlExtension>
) -> Self
[src]
image_descriptor: ImageDescriptor,
local_color_map: Option<ColorMap>,
raster_data: Vec<u8>,
rgba_raster_data: Option<Vec<u8>>,
graphic_control_extension: Option<GraphicControlExtension>
) -> Self
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,