pub trait MatView {
// Required methods
fn width(&self) -> u32;
fn height(&self) -> u32;
fn channels(&self) -> u32;
fn pixel_format(&self) -> PixelFormat;
fn data(&self) -> &[u8] ⓘ;
}Expand description
Read-only view over an image buffer with pixel-format metadata.
Required Methods§
Sourcefn pixel_format(&self) -> PixelFormat
fn pixel_format(&self) -> PixelFormat
The pixel format describing the interleaved byte layout.