pub struct AlphaMaskAdaptor<T>where
    Pixfmt<T>: Pixel + Source,
{ pub rgb: Pixfmt<T>, pub alpha: Pixfmt<Gray8>, }
Expand description

Alpha Mask Adaptor

Fields

rgb: Pixfmt<T>alpha: Pixfmt<Gray8>

Implementations

Create a new Alpha Mask Adapator from a two PixelFormats

Blend a set of colors starting at (x,y) with a length

Background color is from the rgb image and alpha form the gray scale

Calls blend_pix

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 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.