|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Qt.ImageConversionFlag>
com.trolltech.qt.core.Qt.ImageConversionFlag
public static 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):
Constant | Value | Description |
---|---|---|
AutoColor | 0 | (default) - If the image has depth 1 and contains only black and white pixels, the pixmap becomes monochrome. |
ColorOnly | 3 | The pixmap is dithered/converted to the native display depth. |
MonoOnly | 2 | The pixmap becomes monochrome. If necessary, it is dithered using the chosen dithering algorithm. |
Dithering mode preference for RGB channels:
Constant | Value | Description |
---|---|---|
DiffuseDither | 0 | (default) - A high-quality dither. |
OrderedDither | 16 | A faster, more ordered dither. |
ThresholdDither | 32 | No dithering; closest color is used. |
Dithering mode preference for alpha channel:
Constant | Value | Description |
---|---|---|
ThresholdAlphaDither | 0 | (default) - No dithering. |
OrderedAlphaDither | 4 | A faster, more ordered dither. |
DiffuseAlphaDither | 8 | A high-quality dither. |
Color matching versus dithering preference:
Constant | Value | Description |
---|---|---|
PreferDither | 64 | (default when converting to a pixmap) - Always dither 32-bit images when the image is converted to 8 bits. |
AvoidDither | 128 | (default when converting for the purpose of saving to file) - Dither 32-bit images only if the image has more than 256 colors and it is being converted to 8 bits. |
Enum Constant Summary | |
---|---|
AlphaDither_Mask
Internal. |
|
AutoColor
(default) - If the image has depth 1 and contains only black and white pixels, the pixmap becomes monochrome. |
|
AvoidDither
(default when converting for the purpose of saving to file) - Dither 32-bit images only if the image has more than 256 colors and it is being converted to 8 bits. |
|
ColorMode_Mask
Internal. |
|
DiffuseAlphaDither
A high-quality dither. |
|
Dither_Mask
Internal. |
|
DitherMode_Mask
Internal. |
|
MonoOnly
The pixmap becomes monochrome. |
|
OrderedAlphaDither
A faster, more ordered dither. |
|
OrderedDither
A faster, more ordered dither. |
|
PreferDither
(default when converting to a pixmap) - Always dither 32-bit images when the image is converted to 8 bits. |
|
ThresholdDither
No dithering; closest color is used. |
Method Summary | |
---|---|
static Qt.ImageConversionFlags |
createQFlags(Qt.ImageConversionFlag... values)
|
static Qt.ImageConversionFlag |
resolve(int value)
|
int |
value()
|
static Qt.ImageConversionFlag |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Qt.ImageConversionFlag[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Qt.ImageConversionFlag ColorMode_Mask
public static final Qt.ImageConversionFlag AutoColor
(default) - If the image has depth 1 and contains only black and white pixels, the pixmap becomes monochrome.
public static final Qt.ImageConversionFlag MonoOnly
The pixmap becomes monochrome. If necessary, it is dithered using the chosen dithering algorithm.
public static final Qt.ImageConversionFlag AlphaDither_Mask
public static final Qt.ImageConversionFlag OrderedAlphaDither
A faster, more ordered dither.
public static final Qt.ImageConversionFlag DiffuseAlphaDither
A high-quality dither.
public static final Qt.ImageConversionFlag Dither_Mask
public static final Qt.ImageConversionFlag OrderedDither
A faster, more ordered dither.
public static final Qt.ImageConversionFlag ThresholdDither
No dithering; closest color is used.
public static final Qt.ImageConversionFlag DitherMode_Mask
public static final Qt.ImageConversionFlag PreferDither
(default when converting to a pixmap) - Always dither 32-bit images when the image is converted to 8 bits.
public static final Qt.ImageConversionFlag AvoidDither
(default when converting for the purpose of saving to file) - Dither 32-bit images only if the image has more than 256 colors and it is being converted to 8 bits.
Method Detail |
---|
public static final Qt.ImageConversionFlag[] values()
for(Qt.ImageConversionFlag c : Qt.ImageConversionFlag.values()) System.out.println(c);
public static Qt.ImageConversionFlag valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic int value()
value
in interface QtEnumerator
public static Qt.ImageConversionFlags createQFlags(Qt.ImageConversionFlag... values)
public static Qt.ImageConversionFlag resolve(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |