Function simple_blit::blit_convert

source ·
pub fn blit_convert<T: From<U>, U: Clone>(
    dest: &mut (impl BufferMut<T> + ?Sized),
    dest_pos: (i32, i32),
    src: &(impl Buffer<U> + ?Sized),
    src_pos: (i32, i32),
    size: (u32, u32),
    opts: BlitOptions
)
Expand description

Blit one buffer to another.

Crops the rectangle if it doesn’t fit. Converts the values automatically.