Function sample

Source
fn sample(src: &Frame, sx: f32, sy: f32, scaler: Scaler) -> [f32; 4]
Expand description

Sample src at (sx, sy) — already clamped to [0, sw-1]/[0, sh-1] — returning straight RGBA (r, g, b in 0..255, a in 0..255).