java.lang.Object
io.qt.QtObject
io.qt.gui.QImageWriter
- All Implemented Interfaces:
QtObjectInterface
Format independent interface for writing images to files or other devices
Java wrapper for Qt class QImageWriter
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQImageWriter::ImageWriterError
-
Constructor Summary
ConstructorDescriptionQImageWriter
(QIODevice device, byte [] format) Overloaded constructor forQImageWriter(io.qt.core.QIODevice, io.qt.core.QByteArray)
.QImageWriter
(QIODevice device, QByteArray format) QImageWriter
(String fileName) Overloaded constructor forQImageWriter(java.lang.String, io.qt.core.QByteArray)
withformat = new io.qt.core.QByteArray()
.QImageWriter
(String fileName, byte [] format) Overloaded constructor forQImageWriter(java.lang.String, io.qt.core.QByteArray)
.QImageWriter
(String fileName, QByteArray format) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
canWrite()
final int
final QIODevice
device()
error()
final String
final String
fileName()
final QByteArray
format()
final float
gamma()
static QList<QByteArray>
imageFormatsForMimeType
(byte [] mimeType) Overloaded function forimageFormatsForMimeType(io.qt.core.QByteArray)
.static QList<QByteArray>
imageFormatsForMimeType
(QByteArray mimeType) final boolean
final boolean
final int
quality()
final void
setCompression
(int compression) 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
setGamma
(float gamma) final void
setOptimizedWrite
(boolean optimize) final void
setProgressiveScanWrite
(boolean progressive) final void
setQuality
(int quality) final void
setSubType
(byte [] type) Overloaded function forsetSubType(io.qt.core.QByteArray)
.final void
setSubType
(QByteArray type) final void
final void
setTransformation
(QImageIOHandler.Transformation ... orientation) Overloaded function forsetTransformation(io.qt.gui.QImageIOHandler.Transformations)
.final void
setTransformation
(QImageIOHandler.Transformations orientation) final QByteArray
subType()
static QList<QByteArray>
static QList<QByteArray>
final QList<QByteArray>
final boolean
final boolean
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Constructor Details
-
QImageWriter
public QImageWriter() -
QImageWriter
- Parameters:
device
-format
-
-
QImageWriter
- Parameters:
fileName
-format
-
-
QImageWriter
Overloaded constructor for
QImageWriter(io.qt.core.QIODevice, io.qt.core.QByteArray)
. -
QImageWriter
Overloaded constructor for
QImageWriter(java.lang.String, io.qt.core.QByteArray)
withformat = new io.qt.core.QByteArray()
. -
QImageWriter
Overloaded constructor for
QImageWriter(java.lang.String, io.qt.core.QByteArray)
.
-
-
Method Details
-
canWrite
- Returns:
-
compression
- Returns:
-
device
- Returns:
-
error
- Returns:
-
errorString
- Returns:
-
fileName
- Returns:
-
format
- Returns:
-
gamma
- Returns:
-
optimizedWrite
- Returns:
- Since:
- This function was introduced in Qt 5.5.
-
progressiveScanWrite
- Returns:
- Since:
- This function was introduced in Qt 5.5.
-
quality
- Returns:
-
setCompression
- Parameters:
compression
-
-
setDevice
- Parameters:
device
-
-
setFileName
- Parameters:
fileName
-
-
setFormat
- Parameters:
format
-
-
setGamma
- Parameters:
gamma
-
-
setOptimizedWrite
- Parameters:
optimize
-- Since:
- This function was introduced in Qt 5.5.
-
setProgressiveScanWrite
- Parameters:
progressive
-- Since:
- This function was introduced in Qt 5.5.
-
setQuality
- Parameters:
quality
-
-
setSubType
- Parameters:
type
-- Since:
- This function was introduced in Qt 5.4.
-
setText
- Parameters:
key
-text
-- Since:
- This function was introduced in Qt 4.1.
-
setTransformation
- Parameters:
orientation
-- Since:
- This function was introduced in Qt 5.5.
-
subType
- Returns:
- Since:
- This function was introduced in Qt 5.4.
-
supportedSubTypes
- Returns:
- Since:
- This function was introduced in Qt 5.4.
-
supportsOption
- Parameters:
option
-- Returns:
- Since:
- This function was introduced in Qt 4.2.
-
transformation
- Returns:
- Since:
- This function was introduced in Qt 5.5.
-
write
- Parameters:
image
-- Returns:
-
imageFormatsForMimeType
- Parameters:
mimeType
-- Returns:
- Since:
- This function was introduced in Qt 5.12.
-
supportedImageFormats
- Returns:
-
supportedMimeTypes
- Returns:
-
setFormat
Overloaded function for
setFormat(io.qt.core.QByteArray)
. -
setSubType
Overloaded function for
setSubType(io.qt.core.QByteArray)
. -
setTransformation
Overloaded function for
setTransformation(io.qt.gui.QImageIOHandler.Transformations)
. -
imageFormatsForMimeType
Overloaded function for
imageFormatsForMimeType(io.qt.core.QByteArray)
.
-