|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<QImageIOHandler.ImageOption>
com.trolltech.qt.gui.QImageIOHandler.ImageOption
public static enum QImageIOHandler.ImageOption
This enum describes the different options supported by QImageIOHandler. Some options are used to query an image for properties, and others are used to toggle the way in which an image should be written.
Enum Constant Summary | |
---|---|
Animation
Image formats that support animation return true for this value in supportsOption; otherwise, false is returned. |
|
BackgroundColor
Certain image formats allow the background color to be specified. |
|
ClipRect
The clip rect, or ROI (Region Of Interest). |
|
CompressionRatio
The compression ratio of the image data. |
|
Description
The image description. |
|
Endianness
The endianness of the image. |
|
Gamma
The gamma level of the image. |
|
IncrementalReading
A handler that supports this option is expected to read the image in several passes, as if it was an animation. |
|
Name
The name of the image. |
|
Quality
The quality level of the image. |
|
ScaledClipRect
The scaled clip rect (or ROI, Region Of Interest) of the image. |
|
ScaledSize
The scaled size of the image. |
|
Size
The original size of an image. |
|
SubType
The subtype of the image. |
Method Summary | |
---|---|
static QImageIOHandler.ImageOption |
resolve(int value)
|
int |
value()
|
static QImageIOHandler.ImageOption |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static QImageIOHandler.ImageOption[] |
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 QImageIOHandler.ImageOption Size
The original size of an image. A handler that supports this option is expected to read the size of the image from the image metadata, and return this size from option as a QSize.
public static final QImageIOHandler.ImageOption ClipRect
The clip rect, or ROI (Region Of Interest). A handler that supports this option is expected to only read the provided QRect area from the original image in read, before any other transformation is applied.
public static final QImageIOHandler.ImageOption Description
The image description. Some image formats, such as GIF and PNG, allow embedding of text or comments into the image data (e.g., for storing copyright information). It's common that the text is stored in key-value pairs, but some formats store all text in one continuous block. QImageIOHandler returns the text as one QString, where keys and values are separated by a ':', and keys-value pairs are separated by two newlines (\n\n). For example, "Title: Sunset\n\nAuthor: Jim Smith\nSarah Jones\n\n". Formats that store text in a single block can use "Description" as the key.
public static final QImageIOHandler.ImageOption ScaledClipRect
The scaled clip rect (or ROI, Region Of Interest) of the image. A handler that supports this option is expected to apply the provided clip rect (a QRect), after applying any scaling (ScaleSize) or regular clipping (ClipRect). If the handler does not support this option, QImageReader will apply the scaled clip rect after the image has been read.
public static final QImageIOHandler.ImageOption ScaledSize
The scaled size of the image. A handler that supports this option is expected to scale the image to the provided size (a QSize), after applying any clip rect transformation (ClipRect). If the handler does not support this option, QImageReader will perform the scaling after the image has been read.
public static final QImageIOHandler.ImageOption CompressionRatio
The compression ratio of the image data. A handler that supports this option is expected to set its compression rate depending on the value of this option (an int) when writing.
public static final QImageIOHandler.ImageOption Gamma
The gamma level of the image. A handler that supports this option is expected to set the image gamma level depending on the value of this option (a float) when writing.
public static final QImageIOHandler.ImageOption Quality
The quality level of the image. A handler that supports this option is expected to set the image quality level depending on the value of this option (an int) when writing.
public static final QImageIOHandler.ImageOption Name
The name of the image. A handler that supports this option is expected to read the name from the image metadata and return this as a QString, or when writing an image it is expected to store the name in the image metadata.
public static final QImageIOHandler.ImageOption SubType
The subtype of the image. A handler that supports this option can use the subtype value to help when reading and writing images. For example, a PPM handler may have a subtype value of "ppm" or "ppmraw".
public static final QImageIOHandler.ImageOption IncrementalReading
A handler that supports this option is expected to read the image in several passes, as if it was an animation. QImageReader will treat the image as an animation.
public static final QImageIOHandler.ImageOption Endianness
The endianness of the image. Certain image formats can be stored as BigEndian or LittleEndian. A handler that supports Endianness uses the value of this option to determine how the image should be stored.
public static final QImageIOHandler.ImageOption Animation
Image formats that support animation return true for this value in supportsOption; otherwise, false is returned.
public static final QImageIOHandler.ImageOption BackgroundColor
Certain image formats allow the background color to be specified. A handler that supports BackgroundColor initializes the background color to this option (a QColor) when reading an image.
Method Detail |
---|
public static final QImageIOHandler.ImageOption[] values()
for(QImageIOHandler.ImageOption c : QImageIOHandler.ImageOption.values()) System.out.println(c);
public static QImageIOHandler.ImageOption 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 QImageIOHandler.ImageOption resolve(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |