Trait WritableImageU32Ext

Source
pub trait WritableImageU32Ext: WritableImage<u32> {
    // Provided method
    fn blit_blend_rectilinear<RI>(&mut self, src: &RI, offset: (isize, isize))
       where RI: ReadableImage<u32> { ... }
}
Expand description

Extra functionality that’s only available to images of u32 values.

Uses 0xAABBGGRR channel ordering.

Provided Methods§

Source

fn blit_blend_rectilinear<RI>(&mut self, src: &RI, offset: (isize, isize))
where RI: ReadableImage<u32>,

Performs a rectilinear blending blit at an integral pixel offset.

Similar to the WritableIndexmap::blit_generic method, you can provide any offsets you like (even negative ones) and the affected area will be automatically clipped to be in bounds.

This method will use “avx2” or “sse2” if available. If you compile with std it will select the best available version at runtime (the most portable binary). If you compile with no_std it will pick the best available version available given the compilation settings and simply crash if you move the binary to a less capable machine.

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§