/// Create a canvas targeting a particular pixel sink and
/// with a specific row stride in bytes.
Create a canvas targeting a particular pixel sink and
with a specific row stride in bytes.
Create a canvas targeting a particular pixel sink and with a specific row stride in bytes .
pub fn new_with_sink(
        size: IntSize,
        pixel_sink: T,
        row_stride: u32,
        col_stride: u32,
    ) -> Canvas<T> {
        Canvas { pixel_sink, row_stride, col_stride, bounds: IntRect::new(IntPoint::zero(), size) }
    }
pub fn new_with_sink ( size : IntSize , pixel_sink : T , row_stride : u32 , col_stride : u32 , ) -> Canvas < T > { Canvas { pixel_sink , row_stride , col_stride , bounds : IntRect :: new ( IntPoint :: zero ( ) , size ) } }
Create a canvas targeting a particular pixel sink and
with a specific row stride in bytes.
Create a canvas targeting a particular pixel sink and with a specific row stride in bytes .
size
IntSize
pixel_sink
T
row_stride
u32
col_stride
u32