Struct qt_core::ImageConversionFlag
source · 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
§type Output = QFlags<ImageConversionFlag>
type Output = QFlags<ImageConversionFlag>
|
operator.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 moresource§impl Debug for ImageConversionFlag
impl Debug for ImageConversionFlag
source§impl From<ImageConversionFlag> for QFlags<ImageConversionFlag>
impl From<ImageConversionFlag> for QFlags<ImageConversionFlag>
source§fn from(value: ImageConversionFlag) -> Self
fn from(value: ImageConversionFlag) -> Self
source§impl From<ImageConversionFlag> for c_int
impl From<ImageConversionFlag> for c_int
source§fn from(value: ImageConversionFlag) -> Self
fn from(value: ImageConversionFlag) -> Self
source§impl From<i32> for ImageConversionFlag
impl From<i32> for ImageConversionFlag
source§impl PartialEq for ImageConversionFlag
impl PartialEq for ImageConversionFlag
source§fn eq(&self, other: &ImageConversionFlag) -> bool
fn eq(&self, other: &ImageConversionFlag) -> bool
self
and other
values to be equal, and is used
by ==
.