Struct pix::el::Pix3

source · []
#[repr(C)]
pub struct Pix3<C, M, A, G> where
    C: Channel,
    M: ColorModel,
    A: Alpha,
    G: Gamma
{ /* private fields */ }
Expand description

Pixel with three channels in its color model.

Implementations

Create a three-channel color.

Example
use pix::rgb::Rgb8;

let rgb = Rgb8::new(128, 200, 255);

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Channel type

Color model

Alpha mode

Gamma mode

Make a pixel from a slice of channels.

Convert from a pixel with a different bit depth.

Get the channels.

Get the channels mutably.

Get the first channel.

Get a mutable reference to the first channel

Get the second channel.

Get a mutable reference to the second channel

Get the third channel.

Get a mutable reference to the third channel

Get the fourth channel.

Get a mutable reference to the fourth channel

Get the alpha channel. Read more

Get a mutable reference to the alpha channel. Read more

Convert a pixel to another format Read more

Copy a color to a pixel slice

Copy a slice to another

Composite a color with a pixel slice

Composite matte with color to destination pixel slice

Composite two slices of pixels

Composite the channels of two pixels

Composite the channels of two pixels with alpha

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.