Type Definition solstice::image::MappedImage[][src]

type MappedImage = Mapped<Image, Ix2>;

Implementations

impl MappedImage[src]

pub fn new(
    ctx: &mut Context,
    texture_type: TextureType,
    format: PixelFormat,
    width: u32,
    height: u32,
    settings: Settings
) -> Result<Self, GraphicsError>
[src]

pub fn with_data(
    ctx: &mut Context,
    texture_type: TextureType,
    format: PixelFormat,
    width: u32,
    height: u32,
    data: Vec<u8>,
    settings: Settings
) -> Result<Self, GraphicsError>
[src]

pub fn set_pixels(&mut self, region: Viewport<usize>, data: &[u8])[src]

pub fn get_pixels(&self) -> &[u8][src]

pub fn get_pixel(&self, x: usize, y: usize) -> &[u8][src]

pub fn set_pixel(&mut self, x: usize, y: usize, pixel: &[u8])[src]

pub fn pixel_stride(&self) -> usize[src]

pub fn unmap(&mut self, ctx: &mut Context) -> &Image[src]