Enum i_slint_core::graphics::PixelFormat
source · #[repr(u8)]
pub enum PixelFormat {
Rgb,
Rgba,
RgbaPremultiplied,
AlphaMap,
}Expand description
The pixel format of a StaticTexture
Variants§
Rgb
red, green, blue. 24bits.
Rgba
Red, green, blue, alpha. 32bits.
RgbaPremultiplied
Red, green, blue, alpha. 32bits. The color are premultiplied by alpha
AlphaMap
Alpha map. 8bits. Each pixel is an alpha value. The color is specified separately.
Implementations§
Trait Implementations§
source§impl Clone for PixelFormat
impl Clone for PixelFormat
source§fn clone(&self) -> PixelFormat
fn clone(&self) -> PixelFormat
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PixelFormat
impl Debug for PixelFormat
source§impl PartialEq<PixelFormat> for PixelFormat
impl PartialEq<PixelFormat> for PixelFormat
source§fn eq(&self, other: &PixelFormat) -> bool
fn eq(&self, other: &PixelFormat) -> bool
This method tests for
self and other values to be equal, and is used
by ==.