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

Returns pixel format of the pixmap.

Return stride (width in bytes or one row) of the pixmap.

Returns data as slice.

Returns data as mutable slice.

Returns data as pointer to u8.

Implementors