[][src]Trait ffimage::packed::traits::AccessPixelMut

pub trait AccessPixelMut {
    type PixelType: Pixel;
    fn pixel_row_mut(&mut self, y: u32) -> Option<&mut [Self::PixelType]>;

    fn pixel_mut(&mut self, x: u32, y: u32) -> Option<&mut Self::PixelType> { ... }
}

Access pixel (mutable)

This trait guarantees efficient pixel access in a way that the backing pixel storage is already allocated. Packed images allow for reinterpreting raw but coherent memory as a set of pixels.

Associated Types

Loading content...

Required methods

fn pixel_row_mut(&mut self, y: u32) -> Option<&mut [Self::PixelType]>

Returns the pixel row at the specified y offset

Loading content...

Provided methods

fn pixel_mut(&mut self, x: u32, y: u32) -> Option<&mut Self::PixelType>

Returns the pixel at the specified coordinates

Loading content...

Implementors

impl<'a, T: Pixel> AccessPixelMut for GenericFlatBuffer<'a, T>[src]

type PixelType = T

impl<T: Pixel> AccessPixelMut for GenericBuffer<T>[src]

type PixelType = T

Loading content...