Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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

Source§

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

Source§

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

Source§

impl<U: AsRef<[u8]>> OverlayAt<Image<U, 3>> for fimg::uninit::Image<u8, 3>

Source§

impl<U: AsRef<[u8]>> OverlayAt<Image<U, 4>> for fimg::uninit::Image<u8, 3>