- All Implemented Interfaces:
QtObjectInterface
Format independent interface for reading images from files or other devices
Java wrapper for Qt class QImageReader
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQImageReader::ImageReaderError
-
Constructor Summary
ConstructorDescriptionQImageReader
(QIODevice device) Overloaded constructor forQImageReader(io.qt.core.QIODevice, io.qt.core.QByteArray)
withformat = new io.qt.core.QByteArray()
.QImageReader
(QIODevice device, byte [] format) Overloaded constructor forQImageReader(io.qt.core.QIODevice, io.qt.core.QByteArray)
.QImageReader
(QIODevice device, QByteArray format) QImageReader
(String fileName) Overloaded constructor forQImageReader(java.lang.String, io.qt.core.QByteArray)
withformat = new io.qt.core.QByteArray()
.QImageReader
(String fileName, byte [] format) Overloaded constructor forQImageReader(java.lang.String, io.qt.core.QByteArray)
.QImageReader
(String fileName, QByteArray format) -
Method Summary
Modifier and TypeMethodDescriptionstatic int
final boolean
final boolean
final QColor
final boolean
canRead()
final QRect
clipRect()
final int
final QRect
final boolean
final QIODevice
device()
error()
final String
final String
fileName()
final QByteArray
format()
final int
final QImage.Format
static QByteArray
imageFormat
(QIODevice device) static QByteArray
imageFormat
(String fileName) static QList<QByteArray>
imageFormatsForMimeType
(byte [] mimeType) Overloaded function forimageFormatsForMimeType(io.qt.core.QByteArray)
.static QList<QByteArray>
imageFormatsForMimeType
(QByteArray mimeType) final boolean
jumpToImage
(int imageNumber) final boolean
final int
final int
final int
quality()
final QImage
read()
final QRect
final QSize
static void
setAllocationLimit
(int mbLimit) final void
setAutoDetectImageFormat
(boolean enabled) final void
setAutoTransform
(boolean enabled) final void
setBackgroundColor
(Qt.GlobalColor color) Overloaded function forsetBackgroundColor(io.qt.gui.QColor)
.final void
setBackgroundColor
(QColor color) final void
setBackgroundColor
(QRgba64 color) Overloaded function forsetBackgroundColor(io.qt.gui.QColor)
.final void
setBackgroundColor
(String color) Overloaded function forsetBackgroundColor(io.qt.gui.QColor)
.final void
setClipRect
(QRect rect) final void
setDecideFormatFromContent
(boolean ignored) final void
final void
setFileName
(String fileName) final void
setFormat
(byte [] format) Overloaded function forsetFormat(io.qt.core.QByteArray)
.final void
setFormat
(QByteArray format) final void
setQuality
(int quality) final void
setScaledClipRect
(QRect rect) final void
setScaledSize
(QSize size) final QSize
size()
final QByteArray
subType()
static QList<QByteArray>
static QList<QByteArray>
final QList<QByteArray>
final boolean
final boolean
final String
final QStringList
textKeys()
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QImageReader
public QImageReader() -
QImageReader
- Parameters:
device
-format
-
-
QImageReader
- Parameters:
fileName
-format
-
-
QImageReader
Overloaded constructor for
QImageReader(io.qt.core.QIODevice, io.qt.core.QByteArray)
withformat = new io.qt.core.QByteArray()
. -
QImageReader
Overloaded constructor for
QImageReader(io.qt.core.QIODevice, io.qt.core.QByteArray)
. -
QImageReader
Overloaded constructor for
QImageReader(java.lang.String, io.qt.core.QByteArray)
withformat = new io.qt.core.QByteArray()
. -
QImageReader
Overloaded constructor for
QImageReader(java.lang.String, io.qt.core.QByteArray)
.
-
-
Method Details
-
autoDetectImageFormat
- Returns:
-
autoTransform
- Returns:
-
backgroundColor
- Returns:
-
canRead
- Returns:
-
clipRect
- Returns:
-
currentImageNumber
- Returns:
-
currentImageRect
- Returns:
-
decideFormatFromContent
- Returns:
-
device
- Returns:
-
error
- Returns:
-
errorString
- Returns:
-
fileName
- Returns:
-
format
- Returns:
-
imageCount
- Returns:
-
imageFormat
- Returns:
-
jumpToImage
- Parameters:
imageNumber
-- Returns:
-
jumpToNextImage
- Returns:
-
loopCount
- Returns:
-
nextImageDelay
- Returns:
-
quality
- Returns:
-
read
- Returns:
-
scaledClipRect
- Returns:
-
scaledSize
- Returns:
-
setAutoDetectImageFormat
- Parameters:
enabled
-
-
setAutoTransform
- Parameters:
enabled
-
-
setBackgroundColor
- Parameters:
color
-
-
setClipRect
- Parameters:
rect
-
-
setDecideFormatFromContent
- Parameters:
ignored
-
-
setDevice
- Parameters:
device
-
-
setFileName
- Parameters:
fileName
-
-
setFormat
- Parameters:
format
-
-
setQuality
- Parameters:
quality
-
-
setScaledClipRect
- Parameters:
rect
-
-
setScaledSize
- Parameters:
size
-
-
size
- Returns:
-
subType
- Returns:
-
supportedSubTypes
- Returns:
-
supportsAnimation
- Returns:
-
supportsOption
- Parameters:
option
-- Returns:
-
text
- Parameters:
key
-- Returns:
-
textKeys
- Returns:
-
transformation
- Returns:
-
allocationLimit
public static int allocationLimit()- Returns:
- Since:
- This function was introduced in Qt 6.0.
-
imageFormat
- Parameters:
device
-- Returns:
-
imageFormat
- Parameters:
fileName
-- Returns:
-
imageFormatsForMimeType
- Parameters:
mimeType
-- Returns:
-
setAllocationLimit
public static void setAllocationLimit(int mbLimit) - Parameters:
mbLimit
-- Since:
- This function was introduced in Qt 6.0.
-
supportedImageFormats
- Returns:
-
supportedMimeTypes
- Returns:
-
setBackgroundColor
Overloaded function for
setBackgroundColor(io.qt.gui.QColor)
. -
setBackgroundColor
Overloaded function for
setBackgroundColor(io.qt.gui.QColor)
. -
setBackgroundColor
Overloaded function for
setBackgroundColor(io.qt.gui.QColor)
. -
setFormat
Overloaded function for
setFormat(io.qt.core.QByteArray)
. -
imageFormatsForMimeType
Overloaded function for
imageFormatsForMimeType(io.qt.core.QByteArray)
.
-