Trait fimg::Overlay

source ·
pub trait Overlay<W> {
    // Required method
    unsafe fn overlay(&mut self, with: &W) -> &mut Self;
}
Expand description

Trait for layering images ontop of each other. Think magick a b -layers flatten a

Required Methods§

source

unsafe fn overlay(&mut self, with: &W) -> &mut Self

Overlay with => self (does not blend)

Safety

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

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: AsMut<[u8]> + AsRef<[u8]>, U: AsRef<[u8]>> Overlay<Image<U, 4>> for Image<T, 3>

source§

impl<T: AsMut<[u8]> + AsRef<[u8]>, U: AsRef<[u8]>> Overlay<Image<U, 4>> for Image<T, 4>