/// Update the pixel at a particular byte offset with a particular
/// color.
Update the pixel at a particular byte offset with a particular
color.
Update the pixel at a particular byte offset with a particular color .
fn write_color_at_offset(&mut self, offset: usize, color: Color) {
        if self.col_stride == 2 {
            let pixel = color.to_565();
            self.pixel_sink.write_pixel_at_offset(offset, &pixel);
        } else {
            let pixel = [color.b, color.g, color.r, color.a];
            self.pixel_sink.write_pixel_at_offset(offset, &pixel);
        };
    }
fn write_color_at_offset ( & mut self , offset : usize , color : Color ) { if self . col_stride == 2 { let pixel = color . to_565 ( ) ; self . pixel_sink . write_pixel_at_offset ( offset , & pixel ) ; } else { let pixel = [ color . b , color . g , color . r , color . a ] ; self . pixel_sink . write_pixel_at_offset ( offset , & pixel ) ; } ; }
Update the pixel at a particular byte offset with a particular
color.
Update the pixel at a particular byte offset with a particular color .
&mut self
offset
usize
color
Color