[][src]Trait blit::BlitExt

pub trait BlitExt {
    fn to_blit_buffer<C>(&self, mask_color: C) -> BlitBuffer
    where
        C: Into<Color>
;
fn blit<C>(
        &self,
        dst: &mut [u32],
        dst_width: usize,
        offset: (i32, i32),
        mask_color: C
    )
    where
        C: Into<Color>
; }

A trait adding blitting functions to image types.

Required methods

fn to_blit_buffer<C>(&self, mask_color: C) -> BlitBuffer where
    C: Into<Color>, 

Convert the image to a custom BlitBuffer type which is optimized for applying the blitting operations.

fn blit<C>(
    &self,
    dst: &mut [u32],
    dst_width: usize,
    offset: (i32, i32),
    mask_color: C
) where
    C: Into<Color>, 

Blit the image directly on a buffer.

Loading content...

Implementations on Foreign Types

impl BlitExt for RgbImage[src]

impl BlitExt for RgbaImage[src]

Loading content...

Implementors

Loading content...