[][src]Struct qt_core::ImageConversionFlag

#[repr(transparent)]
pub struct ImageConversionFlag(_);

The options marked "(default)" are set if no other values from the list are included (since the defaults are zero):

C++ enum: Qt::ImageConversionFlag.

C++ documentation:

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.

Methods

impl ImageConversionFlag[src]

pub fn to_int(&self) -> c_int[src]

impl ImageConversionFlag[src]

pub const ColorModeMask: ImageConversionFlag[src]

C++ enum variant: ColorMode_Mask = 3

pub const AutoColor: ImageConversionFlag[src]

(default) - If the image has depth 1 and contains only black and white pixels, the pixmap becomes monochrome. (C++ enum variant: AutoColor = 0)

pub const ColorOnly: ImageConversionFlag[src]

The pixmap is dithered/converted to the native display depth. (C++ enum variant: ColorOnly = 3)

pub const MonoOnly: ImageConversionFlag[src]

The pixmap becomes monochrome. If necessary, it is dithered using the chosen dithering algorithm. (C++ enum variant: MonoOnly = 2)

pub const AlphaDitherMask: ImageConversionFlag[src]

C++ enum variant: AlphaDither_Mask = 12

pub const ThresholdAlphaDither: ImageConversionFlag[src]

(default) - No dithering. (C++ enum variant: ThresholdAlphaDither = 0)

pub const OrderedAlphaDither: ImageConversionFlag[src]

A faster, ordered dither. (C++ enum variant: OrderedAlphaDither = 4)

pub const DiffuseAlphaDither: ImageConversionFlag[src]

A high-quality dither using error diffusion. (C++ enum variant: DiffuseAlphaDither = 8)

pub const NoAlpha: ImageConversionFlag[src]

C++ enum variant: NoAlpha = 12

pub const DitherMask: ImageConversionFlag[src]

C++ enum variant: Dither_Mask = 48

pub const DiffuseDither: ImageConversionFlag[src]

(default) - A high-quality dither using error diffusion. (C++ enum variant: DiffuseDither = 0)

pub const OrderedDither: ImageConversionFlag[src]

A faster, ordered dither. (C++ enum variant: OrderedDither = 16)

pub const ThresholdDither: ImageConversionFlag[src]

No dithering; closest color is used. (C++ enum variant: ThresholdDither = 32)

pub const DitherModeMask: ImageConversionFlag[src]

C++ enum variant: DitherMode_Mask = 192

pub const AutoDither: ImageConversionFlag[src]

(default) - Only dither when down-converting to 1 or 8-bit indexed formats. (C++ enum variant: AutoDither = 0)

pub const PreferDither: ImageConversionFlag[src]

Always dither images when converting to smaller color-spaces. (C++ enum variant: PreferDither = 64)

pub const AvoidDither: ImageConversionFlag[src]

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)

pub const NoOpaqueDetection: ImageConversionFlag[src]

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)

pub const NoFormatConversion: ImageConversionFlag[src]

Don't do any format conversions on the image. Can be useful when converting a QImage to a QPixmap for a one-time rendering operation for example. Note that a QPixmap not in the preferred format will be much slower as a paint device. (C++ enum variant: NoFormatConversion = 512)

Trait Implementations

impl<T: Into<QFlags<ImageConversionFlag>>> BitOr<T> for ImageConversionFlag[src]

type Output = QFlags<ImageConversionFlag>

The resulting type after applying the | operator.

impl Clone for ImageConversionFlag[src]

impl Copy for ImageConversionFlag[src]

impl Debug for ImageConversionFlag[src]

impl Eq for ImageConversionFlag[src]

impl From<ImageConversionFlag> for c_int[src]

impl From<ImageConversionFlag> for QFlags<ImageConversionFlag>[src]

impl From<i32> for ImageConversionFlag[src]

impl PartialEq<ImageConversionFlag> for ImageConversionFlag[src]

impl StructuralEq for ImageConversionFlag[src]

impl StructuralPartialEq for ImageConversionFlag[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.