Trait retro_pixel::u32_ext::WritableImageU32Ext[][src]

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

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

Uses 0xAABBGGRR channel ordering.

Provided Methods

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.

Implementors