Trait fimg::ClonerOverlayAt

source ·
pub trait ClonerOverlayAt<const W: usize, const C: usize>: Sealed {
    // Required method
    unsafe fn overlay_at(
        &self,
        with: &Image<&[u8], W>,
        x: u32,
        y: u32
    ) -> Image<Vec<u8>, C>;
}
Expand description

OverlayAt but owned

Required Methods§

source

unsafe fn overlay_at( &self, with: &Image<&[u8], W>, x: u32, y: u32 ) -> Image<Vec<u8>, C>

Overlay with => self at coordinates x, y, without blending, and returning a new image.

§Safety

UB if x, y is out of bounds

Implementors§

source§

impl ClonerOverlayAt<3, 3> for ImageCloner<'_, 3>

source§

impl ClonerOverlayAt<4, 3> for ImageCloner<'_, 3>

source§

impl ClonerOverlayAt<4, 4> for ImageCloner<'_, 4>