PixelFormat
struct · ferroui-base · v0.5.0
struct PixelFormat
The format of the pixels of a bitmap or framebuffer.
Members
RGB565
const RGB565: PixelFormat
RGBA8888
const RGBA8888: PixelFormat
RGB32
const RGB32: PixelFormat
BGRA8888
const BGRA8888: PixelFormat
bits_per_pixel
fn bits_per_pixel(self: &Self) -> u32
The number of bits one pixel occupies.
has_alpha
fn has_alpha(self: &Self) -> bool
Whether the format carries an alpha channel.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeResourceKeyObjectPropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedToStringErasedDestructorIntoEitherCloneCopyDebugStructuralPartialEqPartialEqEqHashDisplay
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.