Function draw_layer

Source
pub fn draw_layer(
    dst: &mut Frame,
    src: &Frame,
    p: Placement,
    mode: BlendMode,
    opacity: f32,
    scaler: Scaler,
    scratch: &mut Frame,
)
Expand description

Draw src into dst (canvas) at p with blend mode & opacity, using scratch as the canvas-sized layer buffer. Sampling per scaler; pixels outside src are transparent.