Struct image_buffer::color::Alpha3 [] [src]

pub struct Alpha3<C: Color>(_);

Color with an associated alpha value.

Methods

impl<C: Color> Alpha3<C>
[src]

Trait Implementations

impl<C: Copy + Color> Copy for Alpha3<C> where
    C::Subpixel: Copy
[src]

impl<C: Clone + Color> Clone for Alpha3<C> where
    C::Subpixel: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<C: Color> AsRef<<Alpha3<C> as Color>::Storage> for Alpha3<C>
[src]

Performs the conversion.

impl<C: Color> AsMut<<Alpha3<C> as Color>::Storage> for Alpha3<C>
[src]

Performs the conversion.

impl<C: Color> Color for Alpha3<C>
[src]

The underlying subpixel type.

Returns the number of channels of this pixel type.

Returns the components as a slice.

Returns the components as a mutable slice

Construct a pixel from the 4 channels a, b, c and d. If the pixel does not contain 4 channels the extra are ignored. Read more

Returns a view into a slice. Read more

Returns mutable view into a mutable slice. Read more

Apply the function f to each channel except the alpha channel. Apply the function g to the alpha channel. Works in-place. Read more

Returns a string that can help to interprete the meaning each channel See gimp babl. Read more

Apply the function f to each channel of this pixel.

Apply the function f to each channel of this pixel.

Apply the function f to each channel except the alpha channel. Apply the function g to the alpha channel. Read more

Apply the function f to each channel of this pixel and other pairwise. Read more

Apply the function f to each channel of this pixel and other pairwise. Works in-place. Read more

impl<C: Color> Index<usize> for Alpha3<C>
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl<C: Color> IndexMut<usize> for Alpha3<C>
[src]

The method for the mutable indexing (container[index]) operation

impl<C: Color, T: ColorMathOps<Alpha3<C>>> Add<T> for Alpha3<C>
[src]

The resulting type after applying the + operator

The method for the + operator

impl<C: Color> AddAssign for Alpha3<C>
[src]

The method for the += operator

impl<C: Color> Sub for Alpha3<C>
[src]

The resulting type after applying the - operator

The method for the - operator

impl<C: Color> SubAssign for Alpha3<C>
[src]

The method for the -= operator

impl<C: Color> Div for Alpha3<C>
[src]

The resulting type after applying the / operator

The method for the / operator

impl<C: Color> DivAssign for Alpha3<C>
[src]

The method for the /= operator

impl<C: Color> Mul for Alpha3<C>
[src]

The resulting type after applying the * operator

The method for the * operator

impl<C: Color> MulAssign for Alpha3<C>
[src]

The method for the *= operator

impl<C: Color> From<C> for Alpha3<C> where
    C::Subpixel: ChannelMax, 
[src]

Performs the conversion.