Trait fimg::ClonerOverlay

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

Overlay but owned

Required Methods§

source

unsafe fn overlay(&self, with: &Image<&[u8], W>) -> Image<Vec<u8>, C>

Overlay with => self (does not blend)

§Safety

UB if a.width != b.width || a.height != b.height

Implementors§

source§

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

source§

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