|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<QImage.Format>
com.trolltech.qt.gui.QImage.Format
public static enum QImage.Format
The following image formats are available in all versions of Qt.
Constant | Value | Description |
---|---|---|
Format_Invalid | 0 | The image is invalid. |
Format_Mono | 1 | The image is stored using 1-bit per pixel. Bytes are packed with the most significant bit (MSB) first. |
Format_MonoLSB | 2 | The image is stored using 1-bit per pixel. Bytes are packed with the less significant bit (LSB) first. |
Format_Indexed8 | 3 | The image is stored using 8-bit indexes into a colormap. |
Format_RGB32 | 4 | The image is stored using a 32-bit RGB format (0xffRRGGBB). |
Format_ARGB32 | 5 | The image is stored using a 32-bit ARGB format (0xAARRGGBB). |
Format_ARGB32_Premultiplied | 6 | The image is stored using a premultiplied 32-bit ARGB format (0xAARRGGBB), i.e. the red, green, and blue channels are multiplied by the alpha component divided by 255. (If RR, GG, or BB has a higher value than the alpha channel, the results are undefined.) Certain operations (such as image composition using alpha blending) are faster using premultiplied ARGB32 than with plain ARGB32. |
The following image format is specific to Qtopia Core:
Constant | Value | Description |
---|---|---|
Format_RGB16 | 7 | The image is stored using a 16-bit RGB format (5-6-5). |
Enum Constant Summary | |
---|---|
Format_ARGB32
The image is stored using a 32-bit ARGB format (0xAARRGGBB). |
|
Format_ARGB32_Premultiplied
The image is stored using a premultiplied 32-bit ARGB format (0xAARRGGBB), i.e. the red, green, and blue channels are multiplied by the alpha component divided by 255. |
|
Format_Indexed8
The image is stored using 8-bit indexes into a colormap. |
|
Format_Invalid
The image is invalid. |
|
Format_Mono
The image is stored using 1-bit per pixel. |
|
Format_MonoLSB
The image is stored using 1-bit per pixel. |
|
Format_RGB16
The image is stored using a 16-bit RGB format (5-6-5). |
|
Format_RGB32
The image is stored using a 32-bit RGB format (0xffRRGGBB). |
|
NImageFormats
Internal. |
Method Summary | |
---|---|
static QImage.Format |
resolve(int value)
|
int |
value()
This function should return an integer value for the enum values of the enumeration that implements this interface. |
static QImage.Format |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static QImage.Format[] |
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 QImage.Format Format_Invalid
The image is invalid.
public static final QImage.Format Format_Mono
The image is stored using 1-bit per pixel. Bytes are packed with the most significant bit (MSB) first.
public static final QImage.Format Format_MonoLSB
The image is stored using 1-bit per pixel. Bytes are packed with the less significant bit (LSB) first.
public static final QImage.Format Format_Indexed8
The image is stored using 8-bit indexes into a colormap.
public static final QImage.Format Format_RGB32
The image is stored using a 32-bit RGB format (0xffRRGGBB).
public static final QImage.Format Format_ARGB32
The image is stored using a 32-bit ARGB format (0xAARRGGBB).
public static final QImage.Format Format_ARGB32_Premultiplied
The image is stored using a premultiplied 32-bit ARGB format (0xAARRGGBB), i.e. the red, green, and blue channels are multiplied by the alpha component divided by 255. (If RR, GG, or BB has a higher value than the alpha channel, the results are undefined.) Certain operations (such as image composition using alpha blending) are faster using premultiplied ARGB32 than with plain ARGB32.
public static final QImage.Format Format_RGB16
The image is stored using a 16-bit RGB format (5-6-5).
public static final QImage.Format NImageFormats
Method Detail |
---|
public static final QImage.Format[] values()
for(QImage.Format c : QImage.Format.values()) System.out.println(c);
public static QImage.Format 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()
QtEnumerator
value
in interface QtEnumerator
public static QImage.Format resolve(int value)
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |