Struct lyon::extra::image::MutableImageSlice
[−]
[src]
pub struct MutableImageSlice<'l, Pixel> where
Pixel: 'static + Copy, { pub width: usize, pub height: usize, pub stride: usize, pub pixels: &'l mut [Pixel], }
A view on a writable image in memory.
Fields
width: usize
height: usize
stride: usize
pixels: &'l mut [Pixel]
Methods
impl<'l, Pixel> MutableImageSlice<'l, Pixel> where
Pixel: 'static + Copy,
[src]
Pixel: 'static + Copy,
fn new(
width: usize,
height: usize,
pixels: &'l mut [Pixel]
) -> MutableImageSlice<'l, Pixel>
width: usize,
height: usize,
pixels: &'l mut [Pixel]
) -> MutableImageSlice<'l, Pixel>
fn with_stride(
width: usize,
height: usize,
stride: usize,
pixels: &'l mut [Pixel]
) -> MutableImageSlice<'l, Pixel>
width: usize,
height: usize,
stride: usize,
pixels: &'l mut [Pixel]
) -> MutableImageSlice<'l, Pixel>
fn pixel_offset(&self, x: usize, y: usize) -> usize
fn contains_pixel(&self, x: usize, y: usize) -> bool
fn split_vertically(
&'l mut self,
at: usize
) -> (MutableImageSlice<'l, Pixel>, MutableImageSlice<'l, Pixel>)
&'l mut self,
at: usize
) -> (MutableImageSlice<'l, Pixel>, MutableImageSlice<'l, Pixel>)