pub enum DisplayPlaneAlpha {
    Opaque,
    Global(f32),
    PerPixel,
    PerPixelPremultiplied,
}
Expand description

Alpha mode used in display surface creation

Variants

Opaque

Specifies that the source image will be treated as opaque

Global(f32)

Specifies that the provided global alpha value will be applied to all pixels in the source image.

PerPixel

Specifies that the alpha value will be determined by the alpha channel of the source image’s pixels. If the source format contains no alpha values, no blending will be applied. The source alpha values are not premultiplied into the source image’s other color channels.

PerPixelPremultiplied

Equivalent to PerPixel, except the source alpha values are assumed to be premultiplied into the source image’s other color channels.

Trait Implementations

Formats the value using the given formatter. Read more

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

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

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.