[][src]Struct native_windows_gui::ImageSource

pub struct ImageSource {
    pub decoder: *mut IWICBitmapDecoder,
}

Represents a image data source in read only mode.

Fields

decoder: *mut IWICBitmapDecoder

Implementations

impl ImageSource[src]

pub fn frame_count(&self) -> u32[src]

Return the number of frame in the image. For most format (ex: PNG), this will be 1. It might be more than 1 in animated image formats (such as GIFs).

pub fn frame(&self, index: u32) -> Result<ImageData, NwgError>[src]

Return the image data of the requested frame in a ImageData object.

pub fn container_format(&self) -> ContainerFormat[src]

Trait Implementations

impl Drop for ImageSource[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.