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