tiny_skia::scan::hairline_aa

Function alpha_mul

Source
fn alpha_mul(value: u8, alpha256: i32) -> u8
Expand description

Multiplies value by 0..256, and shift the result down 8 (i.e. return (value * alpha256) >> 8)