[−][src]Trait qrcode::render::Canvas
Rendering canvas of a QR code image.
Associated Types
Loading content...Required methods
fn new(
width: u32,
height: u32,
dark_pixel: Self::Pixel,
light_pixel: Self::Pixel
) -> Self
width: u32,
height: u32,
dark_pixel: Self::Pixel,
light_pixel: Self::Pixel
) -> Self
Constructs a new canvas of the given dimensions.
fn draw_dark_pixel(&mut self, x: u32, y: u32)
Draws a single dark pixel at the (x, y) coordinate.
fn into_image(self) -> Self::Image
Finalize the canvas to a real image.