Enum gdk_pixbuf::PixbufAlphaMode [−][src]
#[non_exhaustive] pub enum PixbufAlphaMode { Bilevel, Full, // some variants omitted }
Expand description
These values can be passed to
gdk_pixbuf_xlib_render_to_drawable_alpha()
to control how the alpha
channel of an image should be handled. This function can create a
bilevel clipping mask (black and white) and use it while painting
the image. In the future, when the X Window System gets an alpha
channel extension, it will be possible to do full alpha
compositing onto arbitrary drawables. For now both cases fall
back to a bilevel clipping mask.
Deprecated
it is unused since 2.42.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
A bilevel clipping mask (black and white) will be created and used to draw the image. Pixels below 0.5 opacity will be considered fully transparent, and all others will be considered fully opaque.
For now falls back to Bilevel
.
In the future it will do full alpha compositing.
Trait Implementations
type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>
Value type checker.
Get the contained value from a Value
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Returns the type identifier of Self
.
Auto Trait Implementations
impl RefUnwindSafe for PixbufAlphaMode
impl Send for PixbufAlphaMode
impl Sync for PixbufAlphaMode
impl Unpin for PixbufAlphaMode
impl UnwindSafe for PixbufAlphaMode
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue
clone of self
.