pub fn overlay_rgb8(
src: &[u8],
dst: &mut [Vec4],
rect: &ClippedRect,
alpha: u8,
) -> Vec<Vec4>Available on crate feature
overlay only.Expand description
Overlay src onto dst using an alpha value.
srcis an RGB8 (1 byte per channel) image.dstis an RGBA32 (4 bytes per channel) image.rectis theClippedRectdefining the blit area.alphais the alpha channel. 0 is totally transparent.
Returns src as an RGBA32 bitmap (see: rgb8_to_rgba32).