Enum font_kit::canvas::Format[][src]

pub enum Format {
    Rgba32,
    Rgb24,
    A8,
}

The image format for the canvas.

Variants

Premultiplied R8G8B8A8, little-endian.

R8G8B8, little-endian.

A8.

Methods

impl Format
[src]

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

impl Clone for Format
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Format
[src]

impl Debug for Format
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Format
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for Format

impl Sync for Format