[][src]Trait ffimage::core::traits::Macropixel

pub trait Macropixel: Pixel {
    type Subpixel: Pixel;
    fn from_subpixels(pixels: &[Self::Subpixel]) -> Self;
fn to_subpixels(&self) -> [Self::Subpixel]; }

Macropixel container

Associated Types

type Subpixel: Pixel

Type of the image pixel

Loading content...

Required methods

fn from_subpixels(pixels: &[Self::Subpixel]) -> Self

Convert image pixels into a macropixel

fn to_subpixels(&self) -> [Self::Subpixel]

Convert into image pixels

Loading content...

Implementors

Loading content...