|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Enum
com.trolltech.qt.gui.QImageIOHandler.ImageOption
public static final class 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.
Field Summary | |
---|---|
static QImageIOHandler.ImageOption |
Animation
Image formats that support animation return true for this value in supportsOption() ; otherwise, false is returned. |
static QImageIOHandler.ImageOption |
BackgroundColor
Certain image formats allow the background color to be specified. |
static QImageIOHandler.ImageOption |
ClipRect
The clip rect, or ROI (Region Of Interest). |
static QImageIOHandler.ImageOption |
CompressionRatio
The compression ratio of the image data. |
static QImageIOHandler.ImageOption |
Description
The image description. |
static QImageIOHandler.ImageOption |
Endianness
The endianness of the image. |
static QImageIOHandler.ImageOption |
Gamma
The gamma level of the image. |
static QImageIOHandler.ImageOption |
IncrementalReading
A handler that supports this option is expected to read the image in several passes, as if it was an animation. |
static QImageIOHandler.ImageOption |
Name
The name of the image. |
static QImageIOHandler.ImageOption |
Quality
The quality level of the image. |
static QImageIOHandler.ImageOption |
ScaledClipRect
The scaled clip rect (or ROI, Region Of Interest) of the image. |
static QImageIOHandler.ImageOption |
ScaledSize
The scaled size of the image. |
static QImageIOHandler.ImageOption |
Size
The original size of an image. |
static QImageIOHandler.ImageOption |
SubType
The subtype of the image. |
Method Summary | |
---|---|
static QImageIOHandler.ImageOption |
resolve(int value)
|
int |
value()
This function should return an integer value for the enum values of the enumeration that implements this interface. |
static QImageIOHandler.ImageOption |
valueOf(java.lang.String name)
|
static QImageIOHandler.ImageOption[] |
values()
|
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final QImageIOHandler.ImageOption Size
option()
as a QSize
.
public static final QImageIOHandler.ImageOption ClipRect
QRect
area from the original image in read()
, before any other transformation is applied.
public static final QImageIOHandler.ImageOption Description
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
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
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
public static final QImageIOHandler.ImageOption Gamma
public static final QImageIOHandler.ImageOption Quality
public static final QImageIOHandler.ImageOption Name
public static final QImageIOHandler.ImageOption SubType
public static final QImageIOHandler.ImageOption IncrementalReading
QImageReader
will treat the image as an animation.
public static final QImageIOHandler.ImageOption Endianness
public static final QImageIOHandler.ImageOption Animation
supportsOption()
; otherwise, false is returned.
public static final QImageIOHandler.ImageOption BackgroundColor
BackgroundColor
initializes the background color to this option (a QColor
) when reading an image.
Method Detail |
---|
public static QImageIOHandler.ImageOption[] values()
public static QImageIOHandler.ImageOption valueOf(java.lang.String name)
public int value()
value
in interface QtEnumerator
public static QImageIOHandler.ImageOption resolve(int value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |