Skip to main content

pre_multiply_color

Function pre_multiply_color 

pub fn pre_multiply_color(c: impl Into<Color>) -> u32
Expand description

Returns the premultiplied color closest to c. Multiplies the c RGB components by the c alpha, and arranges the bytes to match the format of crate::ColorType::N32.

  • c unpremultiplied ARGB color