pub struct ImageConversionFlag(/* private fields */);Expand description
The options marked "(default)" are set if no other values from the list are included (since the defaults are zero):
C++ enum: Qt::ImageConversionFlag.
The options marked “(default)” are set if no other values from the list are included (since the defaults are zero):
Color/Mono preference (ignored for QBitmap):
Dithering mode preference:
Dithering mode preference for 1-bit alpha masks:
Color matching versus dithering preference:
The ImageConversionFlags type is a typedef for QFlags<ImageConversionFlag>. It stores an OR combination of ImageConversionFlag values.
Implementations§
Source§impl ImageConversionFlag
impl ImageConversionFlag
Sourcepub const ColorModeMask: ImageConversionFlag
pub const ColorModeMask: ImageConversionFlag
C++ enum variant: ColorMode_Mask = 3
Sourcepub const AutoColor: ImageConversionFlag
pub const AutoColor: ImageConversionFlag
(default) - If the image has depth 1 and contains only black and white pixels, the pixmap becomes monochrome. (C++ enum variant: AutoColor = 0)
Sourcepub const ColorOnly: ImageConversionFlag
pub const ColorOnly: ImageConversionFlag
The pixmap is dithered/converted to the native display depth. (C++ enum variant: ColorOnly = 3)
Sourcepub const MonoOnly: ImageConversionFlag
pub const MonoOnly: ImageConversionFlag
The pixmap becomes monochrome. If necessary, it is dithered using the chosen dithering algorithm. (C++ enum variant: MonoOnly = 2)
Sourcepub const AlphaDitherMask: ImageConversionFlag
pub const AlphaDitherMask: ImageConversionFlag
C++ enum variant: AlphaDither_Mask = 12
Sourcepub const ThresholdAlphaDither: ImageConversionFlag
pub const ThresholdAlphaDither: ImageConversionFlag
(default) - No dithering. (C++ enum variant: ThresholdAlphaDither = 0)
Sourcepub const OrderedAlphaDither: ImageConversionFlag
pub const OrderedAlphaDither: ImageConversionFlag
A faster, ordered dither. (C++ enum variant: OrderedAlphaDither = 4)
Sourcepub const DiffuseAlphaDither: ImageConversionFlag
pub const DiffuseAlphaDither: ImageConversionFlag
A high-quality dither using error diffusion. (C++ enum variant: DiffuseAlphaDither = 8)
Sourcepub const NoAlpha: ImageConversionFlag
pub const NoAlpha: ImageConversionFlag
C++ enum variant: NoAlpha = 12
Sourcepub const DitherMask: ImageConversionFlag
pub const DitherMask: ImageConversionFlag
C++ enum variant: Dither_Mask = 48
Sourcepub const DiffuseDither: ImageConversionFlag
pub const DiffuseDither: ImageConversionFlag
(default) - A high-quality dither using error diffusion. (C++ enum variant: DiffuseDither = 0)
Sourcepub const OrderedDither: ImageConversionFlag
pub const OrderedDither: ImageConversionFlag
A faster, ordered dither. (C++ enum variant: OrderedDither = 16)
Sourcepub const ThresholdDither: ImageConversionFlag
pub const ThresholdDither: ImageConversionFlag
No dithering; closest color is used. (C++ enum variant: ThresholdDither = 32)
Sourcepub const DitherModeMask: ImageConversionFlag
pub const DitherModeMask: ImageConversionFlag
C++ enum variant: DitherMode_Mask = 192
Sourcepub const AutoDither: ImageConversionFlag
pub const AutoDither: ImageConversionFlag
(default) - Only dither when down-converting to 1 or 8-bit indexed formats. (C++ enum variant: AutoDither = 0)
Sourcepub const PreferDither: ImageConversionFlag
pub const PreferDither: ImageConversionFlag
Always dither images when converting to smaller color-spaces. (C++ enum variant: PreferDither = 64)
Sourcepub const AvoidDither: ImageConversionFlag
pub const AvoidDither: ImageConversionFlag
Only dither to indexed formats if the source image uses more different colors than the size of the color table of the destination format. (C++ enum variant: AvoidDither = 128)
Sourcepub const NoOpaqueDetection: ImageConversionFlag
pub const NoOpaqueDetection: ImageConversionFlag
Do not check whether the image contains non-opaque pixels. Use this if you know that the image is semi-transparent and you want to avoid the overhead of checking the pixels in the image until a non-opaque pixel is found, or if you want the pixmap to retain an alpha channel for some other reason. If the image has no alpha channel this flag has no effect. (C++ enum variant: NoOpaqueDetection = 256)
Sourcepub const NoFormatConversion: ImageConversionFlag
pub const NoFormatConversion: ImageConversionFlag
Trait Implementations§
Source§impl<T: Into<QFlags<ImageConversionFlag>>> BitOr<T> for ImageConversionFlag
impl<T: Into<QFlags<ImageConversionFlag>>> BitOr<T> for ImageConversionFlag
Source§impl Clone for ImageConversionFlag
impl Clone for ImageConversionFlag
Source§fn clone(&self) -> ImageConversionFlag
fn clone(&self) -> ImageConversionFlag
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more