Struct image_buffer::color::Alpha4 [] [src]

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

Color with an associated alpha value.

Methods

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

Trait Implementations

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

impl<C: Clone + Color> Clone for Alpha4<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<<Alpha4<C> as Color>::Storage> for Alpha4<C>
[src]

Performs the conversion.

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

Performs the conversion.

impl<C: Color> Color for Alpha4<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 Alpha4<C>
[src]

The returned type after indexing

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

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

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

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

The resulting type after applying the + operator

The method for the + operator

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

The method for the += operator

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

The resulting type after applying the - operator

The method for the - operator

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

The method for the -= operator

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

The resulting type after applying the / operator

The method for the / operator

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

The method for the /= operator

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

The resulting type after applying the * operator

The method for the * operator

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

The method for the *= operator

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

Performs the conversion.