Trait blit::Blit

source ·
pub trait Blit {
    // Required method
    fn blit(&self, dst: &mut [u32], dst_size: Size, options: &BlitOptions);
}
Expand description

Blit functions that can be called from multiple places.

Required Methods§

source

fn blit(&self, dst: &mut [u32], dst_size: Size, options: &BlitOptions)

Draw the source input on the destination image.

See BlitOptions for multiple ways of drawing the image.

The pixels will be drawn to the destination buffer in RGBA format.

Implementors§