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 sources.

Required Methods§

Source

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

The pixel 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§