Trait ImageMutData

Source
pub trait ImageMutData<F>: ImageData<F> {
    // Required method
    fn buffer_mut_ref(&mut self) -> ImageBufferMutRef<'_, F>;
}
Expand description

A mutable image.

The pixel format is specified as the type F.

Required Methods§

Source

fn buffer_mut_ref(&mut self) -> ImageBufferMutRef<'_, F>

Returns the image mutable buffer specified by pixel format F.

This does not copy the data but returns a mutable view of it.

Implementors§

Source§

impl<FMT: PixelFormat> ImageMutData<FMT> for ImageRefMut<'_, FMT>

Source§

impl<FMT: PixelFormat> ImageMutData<FMT> for OImage<FMT>