Enum font_kit::canvas::Format [−][src]
pub enum Format { Rgba32, Rgb24, A8, }
Expand description
The image format for the canvas.
Variants
Premultiplied R8G8B8A8, little-endian.
R8G8B8, little-endian.
A8.
Implementations
Returns the number of bits per pixel that this image format corresponds to.
Returns the number of color channels per pixel that this image format corresponds to.
Returns the number of bits per color channel that this image format contains.
Returns the number of bytes per pixel that this image format corresponds to.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Format
impl UnwindSafe for Format
Blanket Implementations
Mutably borrows from an owned value. Read more