Trait fimg::BlendingOverlay

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

This blends the images together, like imageops::overlay.

Required Methods§

source

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

Overlay with => self, blending. You probably do not need this, unless your images make much usage of alpha. If you only have 2 alpha states, 0 | 255 (transparent | opaque), please use Overlay, as it is much faster.

§Safety

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

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<const A: usize, const B: usize, T: AsMut<[u8]> + AsRef<[u8]>, U: AsRef<[u8]>> BlendingOverlay<Image<U, B>> for Image<T, A>
where [u8; A]: Blend<B>,