[−][src]Struct native_windows_gui::ImageSource
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
impl RefUnwindSafe for ImageSource
impl !Send for ImageSource
impl !Sync for ImageSource
impl Unpin for ImageSource
impl UnwindSafe for ImageSource
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>,