Trait fimg::OverlayAt

source ·
pub trait OverlayAt<W> {
    // Required method
    unsafe fn overlay_at(&mut self, with: &W, x: u32, y: u32) -> &mut Self;
}
Expand description

Trait for layering a image ontop of another, with a offset to the second image.

Required Methods§

source

unsafe fn overlay_at(&mut self, with: &W, x: u32, y: u32) -> &mut Self

Overlay with => self at coordinates x, y, without blending

Safety

UB if x, y is out of bounds

Object Safety§

This trait is not object safe.

Implementors§

source§

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

source§

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

source§

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