Function tiny_skia::scan::hairline_aa::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)