- All Implemented Interfaces:
QPaintDevice
,QtObjectInterface
,Cloneable
Hardware-independent image representation that allows direct access to the pixel data, and can be used as a paint device
Java wrapper for Qt class QImage
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQImage::Format
static enum
Java wrapper for Qt enumQImage::InvertMode
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
Nested classes/interfaces inherited from interface io.qt.gui.QPaintDevice
QPaintDevice.PaintDeviceMetric
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
ConstructorDescriptionQImage()
SeeQImage::
QImage() QImage
(byte[] data, int width, int height, QImage.Format format) QImage
(int width, int height, QImage.Format format) QImage
(QSize size, QImage.Format format) Overloaded constructor forQImage(java.lang.String, java.lang.String)
withformat = null
.QImage
(Buffer data, int width, int height, QImage.Format format) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
allGray()
final void
applyColorTransform
(QColorTransform transform) final void
final int
final ByteBuffer
bits()
final byte []
bytes()
final long
final long
cacheKey()
clone()
Creates and returns a copy of this object.final int
color
(int i) final int
final QColorSpace
final QList<@QtPrimitiveType Integer>
final QImage
colorTransformed
(QColorTransform transform) final QImage
Overloaded function forconvertedTo(io.qt.gui.QImage.Format, io.qt.core.Qt.ImageConversionFlags)
withflags = new io.qt.core.Qt.ImageConversionFlags(0)
.final QImage
convertedTo
(QImage.Format f, Qt.ImageConversionFlag ... flags) Overloaded function forconvertedTo(io.qt.gui.QImage.Format, io.qt.core.Qt.ImageConversionFlags)
.final QImage
convertedTo
(QImage.Format f, Qt.ImageConversionFlags flags) final QImage
convertedToColorSpace
(QColorSpace arg__1) final void
Overloaded function forconvertTo(io.qt.gui.QImage.Format, io.qt.core.Qt.ImageConversionFlags)
withflags = new io.qt.core.Qt.ImageConversionFlags(0)
.final void
convertTo
(QImage.Format f, Qt.ImageConversionFlag ... flags) Overloaded function forconvertTo(io.qt.gui.QImage.Format, io.qt.core.Qt.ImageConversionFlags)
.final void
convertTo
(QImage.Format f, Qt.ImageConversionFlags flags) final void
convertToColorSpace
(QColorSpace arg__1) final QImage
Overloaded function forconvertToFormat(io.qt.gui.QImage.Format, io.qt.core.Qt.ImageConversionFlags)
withflags = new io.qt.core.Qt.ImageConversionFlags(0)
.final QImage
convertToFormat
(QImage.Format f, Qt.ImageConversionFlag ... flags) Overloaded function forconvertToFormat(io.qt.gui.QImage.Format, io.qt.core.Qt.ImageConversionFlags)
.final QImage
final QImage
convertToFormat
(QImage.Format f, Collection<@QtPrimitiveType Integer> colorTable) Overloaded function forconvertToFormat(io.qt.gui.QImage.Format, java.util.Collection, io.qt.core.Qt.ImageConversionFlags)
withflags = new io.qt.core.Qt.ImageConversionFlags(0)
.final QImage
convertToFormat
(QImage.Format f, Collection<@QtPrimitiveType Integer> colorTable, Qt.ImageConversionFlag ... flags) Overloaded function forconvertToFormat(io.qt.gui.QImage.Format, java.util.Collection, io.qt.core.Qt.ImageConversionFlags)
.final QImage
convertToFormat
(QImage.Format f, Collection<@QtPrimitiveType Integer> colorTable, Qt.ImageConversionFlags flags) SeeQImage::
convertToFormat(QImage::Format, QList<QRgb>, Qt::ImageConversionFlags)const final QImage
copy()
Overloaded function forcopy(io.qt.core.QRect)
withrect = new io.qt.core.QRect()
.final QImage
copy
(int x, int y, int w, int h) final QImage
final QImage
Overloaded function forcreateAlphaMask(io.qt.core.Qt.ImageConversionFlags)
withflags = new io.qt.core.Qt.ImageConversionFlags(0)
.final QImage
createAlphaMask
(Qt.ImageConversionFlag ... flags) Overloaded function forcreateAlphaMask(io.qt.core.Qt.ImageConversionFlags)
.final QImage
final QImage
Overloaded function forcreateHeuristicMask(boolean)
withclipTight = true
.final QImage
createHeuristicMask
(boolean clipTight) final QImage
createMaskFromColor
(int color) Overloaded function forcreateMaskFromColor(int, io.qt.core.Qt.MaskMode)
withmode = io.qt.core.Qt.MaskMode.MaskInColor
.final QImage
createMaskFromColor
(int color, Qt.MaskMode mode) final int
depth()
final void
detach()
SeeQImage::
detach() protected final void
Overloaded function fordetachMetadata(boolean)
withinvalidateCache = false
.protected final void
detachMetadata
(boolean invalidateCache) SeeQImage::
detachMetadata(bool) final QSizeF
final double
final double
static double
SeeQPaintDevice::
devicePixelRatioFScale() final int
final int
boolean
final void
fill
(int pixel) final void
fill
(Qt.GlobalColor color) final void
final QImage.Format
format()
static QImage
fromData
(byte[] data) Overloaded function forfromData(byte[], java.lang.String)
withformat = null
.static QImage
static QImage
fromData
(QByteArray data) Overloaded function forfromData(io.qt.core.QByteArray, java.lang.String)
withformat = null
.static QImage
fromData
(QByteArray data, String format) static QImage
fromData
(QByteArrayView data) Overloaded function forfromData(io.qt.core.QByteArrayView, java.lang.String)
withformat = null
.static QImage
fromData
(QByteArrayView data, String format) final boolean
int
hashCode()
Returns the objects's hash code computed byqHash(QImage)
.final int
height()
final int
heightMM()
protected void
initPainter
(QPainter painter) SeeQPaintDevice::
initPainter(QPainter*)const final void
Overloaded function forinvertPixels(io.qt.gui.QImage.InvertMode)
witharg__1 = io.qt.gui.QImage.InvertMode.InvertRgb
.final void
invertPixels
(QImage.InvertMode arg__1) final boolean
SeeQImage::
isDetached()const final boolean
final boolean
isNull()
final boolean
Overloaded function forload(java.lang.String, java.lang.String)
withformat = null
.final boolean
final boolean
final boolean
loadFromData
(byte[] buf) Overloaded function forloadFromData(byte[], java.lang.String)
withformat = null
.final boolean
loadFromData
(byte[] buf, String format) final boolean
loadFromData
(QByteArray data) Overloaded function forloadFromData(io.qt.core.QByteArray, java.lang.String)
withformat = null
.final boolean
loadFromData
(QByteArray data, String format) final boolean
loadFromData
(QByteArrayView data) Overloaded function forloadFromData(io.qt.core.QByteArrayView, java.lang.String)
withformat = null
.final boolean
loadFromData
(QByteArrayView data, String format) final int
final int
protected int
metric
(QPaintDevice.PaintDeviceMetric metric) final void
mirror()
Overloaded function formirror(boolean, boolean)
final void
mirror
(boolean horizontally) Overloaded function formirror(boolean, boolean)
withvertically = true
.final void
mirror
(boolean horizontally, boolean vertically) final QImage
mirrored()
Overloaded function formirrored(boolean, boolean)
final QImage
mirrored
(boolean horizontally) Overloaded function formirrored(boolean, boolean)
withvertically = true
.final QImage
mirrored
(boolean horizontally, boolean vertically) final QPoint
offset()
final boolean
final int
final int
final int
pixel
(int x, int y) final int
final QColor
pixelColor
(int x, int y) final QColor
pixelColor
(QPoint pt) final QPixelFormat
final int
pixelIndex
(int x, int y) final int
pixelIndex
(QPoint pt) void
readFrom
(QDataStream arg__1) final QRect
rect()
protected QPaintDevice
redirected
(QPoint offset) SeeQPaintDevice::
redirected(QPoint*)const final boolean
final void
rgbSwap()
final QImage
final boolean
Overloaded function forsave(java.lang.String, java.lang.String, int)
final boolean
Overloaded function forsave(java.lang.String, java.lang.String, int)
withquality = -1
.final boolean
final boolean
Overloaded function forsave(io.qt.core.QIODevice, java.lang.String, int)
final boolean
Overloaded function forsave(io.qt.core.QIODevice, java.lang.String, int)
withquality = -1
.final boolean
final QImage
scaled
(int w, int h) Overloaded function forscaled(int, int, io.qt.core.Qt.AspectRatioMode, io.qt.core.Qt.TransformationMode)
final QImage
scaled
(int w, int h, Qt.AspectRatioMode aspectMode) Overloaded function forscaled(int, int, io.qt.core.Qt.AspectRatioMode, io.qt.core.Qt.TransformationMode)
withmode = io.qt.core.Qt.TransformationMode.FastTransformation
.final QImage
scaled
(int w, int h, Qt.AspectRatioMode aspectMode, Qt.TransformationMode mode) final QImage
Overloaded function forscaled(io.qt.core.QSize, io.qt.core.Qt.AspectRatioMode, io.qt.core.Qt.TransformationMode)
final QImage
scaled
(QSize s, Qt.AspectRatioMode aspectMode) Overloaded function forscaled(io.qt.core.QSize, io.qt.core.Qt.AspectRatioMode, io.qt.core.Qt.TransformationMode)
withmode = io.qt.core.Qt.TransformationMode.FastTransformation
.final QImage
scaled
(QSize s, Qt.AspectRatioMode aspectMode, Qt.TransformationMode mode) final QImage
scaledToHeight
(int h) Overloaded function forscaledToHeight(int, io.qt.core.Qt.TransformationMode)
withmode = io.qt.core.Qt.TransformationMode.FastTransformation
.final QImage
scaledToHeight
(int h, Qt.TransformationMode mode) final QImage
scaledToWidth
(int w) Overloaded function forscaledToWidth(int, io.qt.core.Qt.TransformationMode)
withmode = io.qt.core.Qt.TransformationMode.FastTransformation
.final QImage
scaledToWidth
(int w, Qt.TransformationMode mode) final ByteBuffer
scanLine
(int arg__1) final void
setAlphaChannel
(QImage alphaChannel) final void
setColor
(int i, int c) final void
setColorCount
(int arg__1) final void
setColorSpace
(QColorSpace arg__1) final void
setColorTable
(Collection<@QtPrimitiveType Integer> colors) final void
setDevicePixelRatio
(double scaleFactor) final void
setDotsPerMeterX
(int arg__1) final void
setDotsPerMeterY
(int arg__1) final void
final void
setPixel
(int x, int y, int index_or_rgb) final void
final void
setPixelColor
(int x, int y, QColor c) final void
setPixelColor
(QPoint pt, QColor c) final void
protected QPainter
SeeQPaintDevice::
sharedPainter()const final QSize
size()
final long
protected final QImage
smoothScaled
(int w, int h) SeeQImage::
smoothScaled(int, int)const final void
final String
text()
Overloaded function fortext(java.lang.String)
withkey = (String)null
.final String
final QStringList
textKeys()
static QImage.Format
toImageFormat
(QPixelFormat format) static QPixelFormat
toPixelFormat
(QImage.Format format) toString()
Seeoperator<<(QDebug,
QImage) final QImage
transformed
(QTransform matrix) Overloaded function fortransformed(io.qt.gui.QTransform, io.qt.core.Qt.TransformationMode)
withmode = io.qt.core.Qt.TransformationMode.FastTransformation
.final QImage
transformed
(QTransform matrix, Qt.TransformationMode mode) static QTransform
trueMatrix
(QTransform arg__1, int w, int h) final boolean
valid
(int x, int y) final boolean
final int
width()
final int
widthMM()
void
writeTo
(QDataStream arg__1) Methods inherited from class io.qt.QtObject
dispose, isDisposed
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.qt.QtObjectInterface
dispose, isDisposed
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class.
-
-
Constructor Details
-
QImage
public QImage()See
QImage::
QImage() -
QImage
-
QImage
-
QImage
Overloaded constructor for
QImage(java.lang.String, java.lang.String)
withformat = null
. -
QImage
-
QImage
-
QImage
-
QImage
-
QImage
-
-
Method Details
-
allGray
-
applyColorTransform
-
bitPlaneCount
-
bits
-
bytesPerLine
-
cacheKey
-
color
-
colorCount
- Specified by:
colorCount
in interfaceQPaintDevice
-
colorSpace
-
colorTable
-
colorTransformed
-
bytes
-
convertTo
Overloaded function for
convertTo(io.qt.gui.QImage.Format, io.qt.core.Qt.ImageConversionFlags)
. -
convertTo
Overloaded function for
convertTo(io.qt.gui.QImage.Format, io.qt.core.Qt.ImageConversionFlags)
withflags = new io.qt.core.Qt.ImageConversionFlags(0)
. -
convertTo
-
convertToColorSpace
-
convertToFormat
@QtUninvokable public final QImage convertToFormat(QImage.Format f, Qt.ImageConversionFlag ... flags) Overloaded function for
convertToFormat(io.qt.gui.QImage.Format, io.qt.core.Qt.ImageConversionFlags)
. -
convertToFormat
Overloaded function for
convertToFormat(io.qt.gui.QImage.Format, io.qt.core.Qt.ImageConversionFlags)
withflags = new io.qt.core.Qt.ImageConversionFlags(0)
. -
convertToFormat
-
convertToFormat
@QtUninvokable public final QImage convertToFormat(QImage.Format f, Collection<@QtPrimitiveType Integer> colorTable, Qt.ImageConversionFlag ... flags) Overloaded function for
convertToFormat(io.qt.gui.QImage.Format, java.util.Collection, io.qt.core.Qt.ImageConversionFlags)
. -
convertToFormat
@QtUninvokable public final QImage convertToFormat(QImage.Format f, Collection<@QtPrimitiveType Integer> colorTable) Overloaded function for
convertToFormat(io.qt.gui.QImage.Format, java.util.Collection, io.qt.core.Qt.ImageConversionFlags)
withflags = new io.qt.core.Qt.ImageConversionFlags(0)
. -
convertToFormat
@QtUninvokable public final QImage convertToFormat(QImage.Format f, Collection<@QtPrimitiveType Integer> colorTable, Qt.ImageConversionFlags flags) See
QImage::
convertToFormat(QImage::Format, QList<QRgb>, Qt::ImageConversionFlags)const -
convertedTo
Overloaded function for
convertedTo(io.qt.gui.QImage.Format, io.qt.core.Qt.ImageConversionFlags)
. -
convertedTo
Overloaded function for
convertedTo(io.qt.gui.QImage.Format, io.qt.core.Qt.ImageConversionFlags)
withflags = new io.qt.core.Qt.ImageConversionFlags(0)
. -
convertedTo
-
convertedToColorSpace
-
copy
Overloaded function for
copy(io.qt.core.QRect)
withrect = new io.qt.core.QRect()
. -
copy
-
copy
-
createAlphaMask
Overloaded function for
createAlphaMask(io.qt.core.Qt.ImageConversionFlags)
. -
createAlphaMask
Overloaded function for
createAlphaMask(io.qt.core.Qt.ImageConversionFlags)
withflags = new io.qt.core.Qt.ImageConversionFlags(0)
. -
createAlphaMask
-
createHeuristicMask
Overloaded function for
createHeuristicMask(boolean)
withclipTight = true
. -
createHeuristicMask
-
createMaskFromColor
Overloaded function for
createMaskFromColor(int, io.qt.core.Qt.MaskMode)
withmode = io.qt.core.Qt.MaskMode.MaskInColor
. -
createMaskFromColor
-
depth
- Specified by:
depth
in interfaceQPaintDevice
-
detach
See
QImage::
detach() -
detachMetadata
Overloaded function for
detachMetadata(boolean)
withinvalidateCache = false
. -
detachMetadata
See
QImage::
detachMetadata(bool) -
deviceIndependentSize
-
devicePixelRatio
- Specified by:
devicePixelRatio
in interfaceQPaintDevice
-
devicePixelRatioF
- Specified by:
devicePixelRatioF
in interfaceQPaintDevice
-
dotsPerMeterX
-
dotsPerMeterY
-
fill
-
fill
-
fill
-
format
-
hasAlphaChannel
-
height
- Specified by:
height
in interfaceQPaintDevice
-
heightMM
- Specified by:
heightMM
in interfaceQPaintDevice
-
invertPixels
Overloaded function for
invertPixels(io.qt.gui.QImage.InvertMode)
witharg__1 = io.qt.gui.QImage.InvertMode.InvertRgb
. -
invertPixels
-
isDetached
See
QImage::
isDetached()const -
isGrayscale
-
isNull
-
load
-
load
Overloaded function for
load(java.lang.String, java.lang.String)
withformat = null
. -
load
-
loadFromData
Overloaded function for
loadFromData(io.qt.core.QByteArrayView, java.lang.String)
withformat = null
. -
loadFromData
-
loadFromData
Overloaded function for
loadFromData(io.qt.core.QByteArray, java.lang.String)
withformat = null
. -
loadFromData
-
loadFromData
Overloaded function for
loadFromData(byte[], java.lang.String)
withformat = null
. -
loadFromData
-
logicalDpiX
- Specified by:
logicalDpiX
in interfaceQPaintDevice
-
logicalDpiY
- Specified by:
logicalDpiY
in interfaceQPaintDevice
-
mirror
Overloaded function for
mirror(boolean, boolean)
withvertically = true
. -
mirror
-
mirror
-
mirrored
Overloaded function for
mirrored(boolean, boolean)
withvertically = true
. -
mirrored
-
mirrored
-
offset
-
writeTo
-
assign
-
readFrom
-
paintingActive
- Specified by:
paintingActive
in interfaceQPaintDevice
-
physicalDpiX
- Specified by:
physicalDpiX
in interfaceQPaintDevice
-
physicalDpiY
- Specified by:
physicalDpiY
in interfaceQPaintDevice
-
pixel
-
pixel
-
pixelColor
-
pixelColor
-
pixelFormat
-
pixelIndex
-
pixelIndex
-
rect
-
reinterpretAsFormat
-
rgbSwap
-
rgbSwapped
-
save
Overloaded function for
save(io.qt.core.QIODevice, java.lang.String, int)
withquality = -1
. -
save
Overloaded function for
save(io.qt.core.QIODevice, java.lang.String, int)
with:
format = null
quality = -1
-
save
-
save
Overloaded function for
save(java.lang.String, java.lang.String, int)
withquality = -1
. -
save
Overloaded function for
save(java.lang.String, java.lang.String, int)
with:
format = null
quality = -1
-
save
-
scaled
Overloaded function for
scaled(io.qt.core.QSize, io.qt.core.Qt.AspectRatioMode, io.qt.core.Qt.TransformationMode)
withmode = io.qt.core.Qt.TransformationMode.FastTransformation
. -
scaled
Overloaded function for
scaled(io.qt.core.QSize, io.qt.core.Qt.AspectRatioMode, io.qt.core.Qt.TransformationMode)
with:
aspectMode = io.qt.core.Qt.AspectRatioMode.IgnoreAspectRatio
mode = io.qt.core.Qt.TransformationMode.FastTransformation
-
scaled
@QtUninvokable public final QImage scaled(QSize s, Qt.AspectRatioMode aspectMode, Qt.TransformationMode mode) -
scaled
Overloaded function for
scaled(int, int, io.qt.core.Qt.AspectRatioMode, io.qt.core.Qt.TransformationMode)
withmode = io.qt.core.Qt.TransformationMode.FastTransformation
. -
scaled
Overloaded function for
scaled(int, int, io.qt.core.Qt.AspectRatioMode, io.qt.core.Qt.TransformationMode)
with:
aspectMode = io.qt.core.Qt.AspectRatioMode.IgnoreAspectRatio
mode = io.qt.core.Qt.TransformationMode.FastTransformation
-
scaled
@QtUninvokable public final QImage scaled(int w, int h, Qt.AspectRatioMode aspectMode, Qt.TransformationMode mode) -
scaledToHeight
Overloaded function for
scaledToHeight(int, io.qt.core.Qt.TransformationMode)
withmode = io.qt.core.Qt.TransformationMode.FastTransformation
. -
scaledToHeight
-
scaledToWidth
Overloaded function for
scaledToWidth(int, io.qt.core.Qt.TransformationMode)
withmode = io.qt.core.Qt.TransformationMode.FastTransformation
. -
scaledToWidth
-
scanLine
-
setAlphaChannel
-
setColor
-
setColorCount
-
setColorSpace
-
setColorTable
-
setDevicePixelRatio
-
setDotsPerMeterX
-
setDotsPerMeterY
-
setOffset
-
setPixel
-
setPixel
-
setPixelColor
-
setPixelColor
-
setText
-
size
-
sizeInBytes
-
smoothScaled
See
QImage::
smoothScaled(int, int)const -
swap
-
text
Overloaded function for
text(java.lang.String)
withkey = (String)null
. -
text
-
textKeys
-
transformed
Overloaded function for
transformed(io.qt.gui.QTransform, io.qt.core.Qt.TransformationMode)
withmode = io.qt.core.Qt.TransformationMode.FastTransformation
. -
transformed
-
valid
-
valid
-
width
- Specified by:
width
in interfaceQPaintDevice
-
widthMM
- Specified by:
widthMM
in interfaceQPaintDevice
-
initPainter
See
QPaintDevice::
initPainter(QPainter*)const -
metric
-
paintEngine
- Specified by:
paintEngine
in interfaceQPaintDevice
-
redirected
See
QPaintDevice::
redirected(QPoint*)const -
devicePixelRatioFScale
public static double devicePixelRatioFScale()See
QPaintDevice::
devicePixelRatioFScale() -
fromData
Overloaded function for
fromData(io.qt.core.QByteArrayView, java.lang.String)
withformat = null
. -
fromData
-
fromData
Overloaded function for
fromData(io.qt.core.QByteArray, java.lang.String)
withformat = null
. -
fromData
-
fromData
Overloaded function for
fromData(byte[], java.lang.String)
withformat = null
. -
fromData
-
toImageFormat
-
toPixelFormat
-
trueMatrix
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QImage)
. -
toString
See
operator<<(QDebug,
QImage) -
clone
Creates and returns a copy of this object.
-