Trait cognitive_qualia::image::Pixmap
[−]
[src]
pub trait Pixmap: Image { fn get_format(&self) -> PixelFormat; fn get_stride(&self) -> usize; fn as_slice(&self) -> &[u8]; fn as_mut_slice(&mut self) -> &mut [u8]; unsafe fn as_ptr(&self) -> *const u8; }
Trait providing interface for pixmap storing objects.
Required Methods
fn get_format(&self) -> PixelFormat
Returns pixel format of the pixmap.
fn get_stride(&self) -> usize
Return stride (width in bytes or one row) of the pixmap.
fn as_slice(&self) -> &[u8]
Returns data as slice.
fn as_mut_slice(&mut self) -> &mut [u8]
Returns data as mutable slice.
unsafe fn as_ptr(&self) -> *const u8
Returns data as pointer to u8
.
Implementors
impl Pixmap for Buffer
impl Pixmap for MemoryView