[−][src]Trait blit::BlitExt
A trait adding blitting functions to image types.
Required methods
fn to_blit_buffer<C>(&self, mask_color: C) -> BlitBuffer where
C: Into<Color>,
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>,
&self,
dst: &mut [u32],
dst_width: usize,
offset: (i32, i32),
mask_color: C
) where
C: Into<Color>,
Blit the image directly on a buffer.
Implementations on Foreign Types
impl BlitExt for RgbImage
[src]
fn to_blit_buffer<C>(&self, mask_color: C) -> BlitBuffer where
C: Into<Color>,
[src]
C: Into<Color>,
fn blit<C>(
&self,
dst: &mut [u32],
dst_width: usize,
offset: (i32, i32),
mask_color: C
) where
C: Into<Color>,
[src]
&self,
dst: &mut [u32],
dst_width: usize,
offset: (i32, i32),
mask_color: C
) where
C: Into<Color>,
impl BlitExt for RgbaImage
[src]
fn to_blit_buffer<C>(&self, mask_color: C) -> BlitBuffer where
C: Into<Color>,
[src]
C: Into<Color>,
fn blit<C>(
&self,
dst: &mut [u32],
dst_width: usize,
offset: (i32, i32),
mask_color: C
) where
C: Into<Color>,
[src]
&self,
dst: &mut [u32],
dst_width: usize,
offset: (i32, i32),
mask_color: C
) where
C: Into<Color>,