pub struct ImageInfo { /* private fields */ }Expand description
Information about an image.
Implementations§
Source§impl ImageInfo
impl ImageInfo
Sourcepub fn new(
flags: ImageFlags,
width: usize,
height: usize,
format: PixelFormat,
) -> Self
pub fn new( flags: ImageFlags, width: usize, height: usize, format: PixelFormat, ) -> Self
Creates an ImageInfo struct
Sourcepub fn flags(&self) -> ImageFlags
pub fn flags(&self) -> ImageFlags
Image flags
Sourcepub fn format(&self) -> PixelFormat
pub fn format(&self) -> PixelFormat
Image format
Sourcepub fn set_format(&mut self, format: PixelFormat)
pub fn set_format(&mut self, format: PixelFormat)
Set format
Trait Implementations§
impl Copy for ImageInfo
impl Eq for ImageInfo
impl StructuralPartialEq for ImageInfo
Auto Trait Implementations§
impl Freeze for ImageInfo
impl RefUnwindSafe for ImageInfo
impl Send for ImageInfo
impl Sync for ImageInfo
impl Unpin for ImageInfo
impl UnwindSafe for ImageInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more