/// Create a canvas targeting a shared buffer with stride.
Create a canvas targeting a shared buffer with stride.
Create a canvas targeting a shared buffer with stride .
pub fn new(
        size: IntSize,
        mapping: Arc<Mapping>,
        row_stride: u32,
        col_stride: u32,
    ) -> Canvas<MappingPixelSink> {
        let pixel_sink = MappingPixelSink { mapping };
        Canvas { pixel_sink, row_stride, col_stride, bounds: IntRect::new(IntPoint::zero(), size) }
    }
pub fn new ( size : IntSize , mapping : Arc < Mapping > , row_stride : u32 , col_stride : u32 , ) -> Canvas < MappingPixelSink > { let pixel_sink = MappingPixelSink { mapping } ; Canvas { pixel_sink , row_stride , col_stride , bounds : IntRect :: new ( IntPoint :: zero ( ) , size ) } }
Create a canvas targeting a shared buffer with stride.
Create a canvas targeting a shared buffer with stride .
size
IntSize
mapping
Arc<Mapping>
row_stride
u32
col_stride
u32