pub struct Frame { /* private fields */ }
Implementations§
Source§impl Frame
impl Frame
pub fn read(buffer: &[u8], offset: &mut usize) -> Result<Frame, Error>
pub fn has_mipmaps(&self) -> bool
pub fn width(&self) -> usize
pub fn height(&self) -> usize
pub fn format(&self) -> Result<Format, Error>
pub fn data(&self) -> &DataKind
pub fn get_pixels(&self) -> PixelBuffer
pub fn to_raw(&self, color_key: Option<Pixel>) -> Vec<u8> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnwindSafe for Frame
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