Trait blit::BlitExt
[−]
[src]
pub trait BlitExt { fn as_blit_buffer(&self, mask_color: u32) -> BlitBuffer; fn blit_with_mask_color(
&self,
buffer: &mut Vec<u32>,
buffer_size: (usize, usize),
pos: (i32, i32),
mask_color: u32
); }
A trait adding blitting functions to image types.
Required Methods
fn as_blit_buffer(&self, mask_color: u32) -> BlitBuffer
Convert the image to a custom BlitBuffer
type which is optimized for applying the
blitting operations.
fn blit_with_mask_color(
&self,
buffer: &mut Vec<u32>,
buffer_size: (usize, usize),
pos: (i32, i32),
mask_color: u32
)
&self,
buffer: &mut Vec<u32>,
buffer_size: (usize, usize),
pos: (i32, i32),
mask_color: u32
)
Blit the image directly on a buffer.