pub struct PMColor { /* private fields */ }
Expand description
32-bit ARGB color value, premultiplied.
The byte order for this value is configuration dependent, matching the format of BGRA8888 bitmaps. This is different from Color, which is unpremultiplied, and is always in the same byte order.
Implementations§
Trait Implementations§
source§impl From<Color> for PMColor
impl From<Color> for PMColor
Returns pmcolor closest to Color color
.
Multiplies color
RGB components by the color
alpha,
and arranges the bytes to match the format of ColorType
N32
.
source§impl Ord for PMColor
impl Ord for PMColor
source§impl PartialEq for PMColor
impl PartialEq for PMColor
source§impl PartialOrd for PMColor
impl PartialOrd for PMColor
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for PMColor
impl Eq for PMColor
impl StructuralPartialEq for PMColor
Auto Trait Implementations§
impl Freeze for PMColor
impl RefUnwindSafe for PMColor
impl Send for PMColor
impl Sync for PMColor
impl Unpin for PMColor
impl UnwindSafe for PMColor
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more