pub struct RGBPixel;
Expand description

The marker type that indicates we are currently using a RGB888 pixel format

Trait Implementations

Number of bytes per pixel

Number of effective bytes per pixel, e.g. for BGRX pixel format, the size of pixel is 4 but the effective size is 3, since the 4th byte isn’t used Read more

Encoding a pixel and returns the idx-th byte for the pixel

Decode a pixel at the given location

Indicates if this pixel format can be saved as image. Note: Currently we only using RGB pixel format in the image crate, but later we may lift this restriction Read more

The fast alpha blending algorithm for this pixel format Read more

The fast rectangle filling algorithm Read more

The fast vertical line filling algorithm Read more

Drawing a single pixel in this format Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.