- 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 enum QImage::Formatstatic enum
Java wrapper for Qt enum QImage::InvertModeNested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
Nested classes/interfaces inherited from interface io.qt.gui.QPaintDevice
QPaintDevice.Impl, QPaintDevice.MemberAccess, QPaintDevice.PaintDeviceMetric
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
ModifierConstructorDescriptionQImage()
See QImage::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) protected
Constructor for internal use only.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 int
final ByteBuffer
bits()
final byte[]
bytes()
final long
final long
cacheKey()
clone()
final int
color
(int i) final int
final QColorSpace
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<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<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<Integer> colorTable, Qt.ImageConversionFlags flags) 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()
final QSizeF
final double
final double
See QPaintDevice::static double
final int
final int
boolean
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.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()
final int
height()
final int
heightMM()
See QPaintDevice::protected void
initPainter
(QPainter painter) 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
final boolean
final boolean
isNull()
final boolean
final boolean
Overloaded function forload(java.lang.String, java.lang.String)
withformat = null
.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
See QPaintDevice::final int
See QPaintDevice::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
See QPaintDevice::final int
See QPaintDevice::final int
See QPaintDevice::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) final boolean
final void
rgbSwap()
final QImage
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 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 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<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
final QSize
size()
final long
protected final QImage
smoothScaled
(int w, int h) final void
final String
text()
Overloaded function fortext(java.lang.String)
withkey = ""
.final String
final QStringList
textKeys()
static QImage.Format
toImageFormat
(QPixelFormat format) static QPixelFormat
toPixelFormat
(QImage.Format format) toString()
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()
See QPaintDevice::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
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
QImage
-
QImage
-
-
Method Details
-
allGray
-
applyColorTransform
-
bitPlaneCount
-
bits
-
bytesPerLine
-
cacheKey
-
color
-
colorCount
- Specified by:
colorCount
in interfaceQPaintDevice
-
colorSpace
-
colorTable
-
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<Integer> colorTable, Qt.ImageConversionFlag... flags) Overloaded function for
convertToFormat(io.qt.gui.QImage.Format, java.util.Collection, io.qt.core.Qt.ImageConversionFlags)
. -
convertToFormat
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<Integer> colorTable, Qt.ImageConversionFlags flags) -
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
-
deviceIndependentSize
-
devicePixelRatio
- Specified by:
devicePixelRatio
in interfaceQPaintDevice
-
devicePixelRatioF
See QPaintDevice::
- Specified by:
devicePixelRatioF
in interfaceQPaintDevice
-
dotsPerMeterX
-
dotsPerMeterY
-
fill
-
fill
-
fill
-
format
-
hasAlphaChannel
-
height
- Specified by:
height
in interfaceQPaintDevice
-
heightMM
See QPaintDevice::
- 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
-
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
See QPaintDevice::
- Specified by:
logicalDpiX
in interfaceQPaintDevice
-
logicalDpiY
See QPaintDevice::
- 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
-
readFrom
-
paintingActive
See QPaintDevice::
- Specified by:
paintingActive
in interfaceQPaintDevice
-
physicalDpiX
See QPaintDevice::
- Specified by:
physicalDpiX
in interfaceQPaintDevice
-
physicalDpiY
See QPaintDevice::
- 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
-
swap
-
text
Overloaded function for
text(java.lang.String)
withkey = ""
. -
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
See QPaintDevice::
- Specified by:
widthMM
in interfaceQPaintDevice
-
initPainter
-
metric
-
paintEngine
- Specified by:
paintEngine
in interfaceQPaintDevice
-
redirected
-
devicePixelRatioFScale
public static double 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
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
toString
-
clone
-