Skip to main content

RgbaPixels

Trait RgbaPixels 

Source
pub trait RgbaPixels:
    Send
    + Sync
    + Debug {
    // Required method
    fn plane(&self) -> SourcePlane<'_>;
}
Expand description

RGBA pixels a source converts from: 8-bit, or half-float bits for linear-light sources.

Required Methods§

Source

fn plane(&self) -> SourcePlane<'_>

The pixels’ bytes, rows stride bytes apart.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl RgbaPixels for Vec<u8>

Source§

fn plane(&self) -> SourcePlane<'_>

Implementors§