pub struct AlphaUsage(/* private fields */);Expand description
This enum describes if the alpha channel is used or not. Sometimes the pixelformat will have a size for the alpha channel, but the pixel format does actually not use the alpha channel. For example RGB32 is such a format. The RGB channels are 8 bits each, and there is no alpha channel. But the complete size for each pixel is 32. Therefore the alpha channel size is 8, but the alpha channel is ignored. Its important to note that in such situations the position of the alpha channel is significant.
C++ enum: QPixelFormat::AlphaUsage.
This enum describes if the alpha channel is used or not. Sometimes the pixelformat will have a size for the alpha channel, but the pixel format does actually not use the alpha channel. For example RGB32 is such a format. The RGB channels are 8 bits each, and there is no alpha channel. But the complete size for each pixel is 32. Therefore the alpha channel size is 8, but the alpha channel is ignored. Its important to note that in such situations the position of the alpha channel is significant.
Implementations§
Source§impl AlphaUsage
impl AlphaUsage
Sourcepub const UsesAlpha: AlphaUsage
pub const UsesAlpha: AlphaUsage
The alpha channel is used. (C++ enum variant: UsesAlpha = 0)
Sourcepub const IgnoresAlpha: AlphaUsage
pub const IgnoresAlpha: AlphaUsage
The alpha channel is not used. (C++ enum variant: IgnoresAlpha = 1)
Trait Implementations§
Source§impl Clone for AlphaUsage
impl Clone for AlphaUsage
Source§fn clone(&self) -> AlphaUsage
fn clone(&self) -> AlphaUsage
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more