Trait qrcode::render::Pixel [] [src]

pub trait Pixel: Copy + Sized {
    type Image: Sized + 'static;
    type Canvas: Canvas<Pixel = Self, Image = Self::Image>;
    fn default_color(color: Color) -> Self;

    fn default_unit_size() -> (u32, u32) { ... }
}

Abstraction of an image pixel.

Associated Types

Type of the finalized image.

The type that stores an intermediate buffer before finalizing to a concrete image

Required Methods

Obtains the default pixel color when a module is dark or light.

Provided Methods

Obtains the default module size. The result must be at least 1×1.

Implementations on Foreign Types

impl<S: Primitive + 'static> Pixel for Luma<S>
[src]

[src]

[src]

impl<S: Primitive + 'static> Pixel for LumaA<S>
[src]

[src]

[src]

impl<S: Primitive + 'static> Pixel for Rgb<S>
[src]

[src]

[src]

impl<S: Primitive + 'static> Pixel for Rgba<S>
[src]

[src]

[src]

Implementors