- 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 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 QImage
final void
applyColorTransform
(QColorTransform transform) final void
final int
final ByteBuffer
bits()
final int
final byte []
bytes()
final int
final long
cacheKey()
clone()
Creates and returns a copy of this object.final int
color
(int i) final int
final QColorSpace
final QVector
<@QtPrimitiveType Integer> final QImage
convertedToColorSpace
(QColorSpace arg__1) final QImage
Overloaded function forconvertedToColorSpace(io.qt.gui.QColorSpace)
.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 void
Overloaded function forconvertToColorSpace(io.qt.gui.QColorSpace)
.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, QVector<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() final double
final double
static double
SeeQPaintDevice::
devicePixelRatioFScale() final int
final int
final boolean
boolean
final void
fill
(int pixel) final void
fill
(Qt.GlobalColor color) final void
final void
Overloaded function forfill(io.qt.gui.QColor)
.final void
Overloaded function forfill(io.qt.gui.QColor)
.final QImage.Format
format()
static QImage
fromData
(byte [] data) Overloaded function forfromData(byte[], java.lang.String)
withformat = null
.static QImage
Overloaded function forfromData(io.qt.core.QByteArray, java.lang.String)
.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
(ByteBuffer data) Overloaded function forfromData(java.nio.ByteBuffer, java.lang.String)
withformat = null
.static QImage
fromData
(ByteBuffer 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
final boolean
Overloaded function forload(java.lang.String, java.lang.String)
withformat = null
.final boolean
final boolean
loadFromData
(byte [] data) Overloaded function forloadFromData(byte[], java.lang.String)
withaformat = null
.final boolean
loadFromData
(byte [] data, String aformat) Overloaded function forloadFromData(io.qt.core.QByteArray, java.lang.String)
.final boolean
loadFromData
(QByteArray data) Overloaded function forloadFromData(io.qt.core.QByteArray, java.lang.String)
withaformat = null
.final boolean
loadFromData
(QByteArray data, String aformat) final boolean
loadFromData
(ByteBuffer buf) Overloaded function forloadFromData(java.nio.ByteBuffer, java.lang.String)
withformat = null
.final boolean
loadFromData
(ByteBuffer buf, String format) final int
final int
protected int
metric
(QPaintDevice.PaintDeviceMetric metric) 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) Seeoperator>>(QDataStream&,
QImage&) final QRect
rect()
protected QPaintDevice
redirected
(QPoint offset) SeeQPaintDevice::
redirected(QPoint*)const final boolean
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
Overloaded function forsetColorSpace(io.qt.gui.QColorSpace)
.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, Qt.GlobalColor c) Overloaded function forsetPixelColor(int, int, io.qt.gui.QColor)
.final void
setPixelColor
(int x, int y, QColor c) final void
setPixelColor
(int x, int y, QRgba64 c) Overloaded function forsetPixelColor(int, int, io.qt.gui.QColor)
.final void
setPixelColor
(int x, int y, String c) Overloaded function forsetPixelColor(int, int, io.qt.gui.QColor)
.final void
setPixelColor
(QPoint pt, Qt.GlobalColor c) Overloaded function forsetPixelColor(io.qt.core.QPoint, io.qt.gui.QColor)
.final void
setPixelColor
(QPoint pt, QColor c) final void
setPixelColor
(QPoint pt, QRgba64 c) Overloaded function forsetPixelColor(io.qt.core.QPoint, io.qt.gui.QColor)
.final void
setPixelColor
(QPoint pt, String c) Overloaded function forsetPixelColor(io.qt.core.QPoint, io.qt.gui.QColor)
.final void
protected QPainter
SeeQPaintDevice::
sharedPainter()const 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 = (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) Seeoperator<<(QDataStream&,
QImage) 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
-
QImage
-
QImage
-
QImage
-
QImage
-
QImage
Overloaded constructor for
QImage(java.lang.String, java.lang.String)
withformat = null
.
-
-
Method Details
-
allGray
-
alphaChannel
-
applyColorTransform
-
bitPlaneCount
-
bits
-
byteCount
-
bytesPerLine
-
cacheKey
-
color
-
colorCount
- Specified by:
colorCount
in interfaceQPaintDevice
-
colorSpace
-
colorTable
-
bytes
-
convertTo
-
convertToColorSpace
-
convertToFormat
@QtUninvokable public final QImage convertToFormat(QImage.Format f, Collection<@QtPrimitiveType Integer> colorTable, Qt.ImageConversionFlags flags) See
QImage::
convertToFormat(QImage::Format, QVector<QRgb>, Qt::ImageConversionFlags)const -
convertToFormat
-
convertedToColorSpace
-
copy
-
copy
-
createAlphaMask
-
createHeuristicMask
-
createMaskFromColor
-
depth
- Specified by:
depth
in interfaceQPaintDevice
-
detach
See
QImage::
detach() -
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
-
isDetached
See
QImage::
isDetached()const -
isGrayscale
-
isNull
-
load
-
load
-
loadFromData
-
loadFromData
-
logicalDpiX
- Specified by:
logicalDpiX
in interfaceQPaintDevice
-
logicalDpiY
- Specified by:
logicalDpiY
in interfaceQPaintDevice
-
mirrored
-
offset
-
writeTo
See
operator<<(QDataStream&,
QImage) -
assign
-
equals
-
readFrom
See
operator>>(QDataStream&,
QImage&) -
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
-
rgbSwapped
-
save
-
save
-
scaled
@QtUninvokable public final QImage scaled(QSize s, Qt.AspectRatioMode aspectMode, Qt.TransformationMode mode) -
scaled
@QtUninvokable public final QImage scaled(int w, int h, Qt.AspectRatioMode aspectMode, Qt.TransformationMode mode) -
scaledToHeight
-
scaledToWidth
-
scanLine
-
setAlphaChannel
-
setColor
-
setColorCount
-
setColorSpace
-
setColorTable
-
setDevicePixelRatio
-
setDotsPerMeterX
-
setDotsPerMeterY
-
setOffset
-
setPixel
-
setPixel
-
setPixelColor
-
setPixelColor
-
setText
-
size
-
sizeInBytes
-
smoothScaled
-
swap
-
text
-
textKeys
-
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
-
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.
-
convertTo
Overloaded function for
convertTo(io.qt.gui.QImage.Format, io.qt.core.Qt.ImageConversionFlags)
withflags = new io.qt.core.Qt.ImageConversionFlags(0)
. -
convertTo
Overloaded function for
convertTo(io.qt.gui.QImage.Format, io.qt.core.Qt.ImageConversionFlags)
. -
convertToColorSpace
Overloaded function for
convertToColorSpace(io.qt.gui.QColorSpace)
. -
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.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, io.qt.core.Qt.ImageConversionFlags)
withflags = new io.qt.core.Qt.ImageConversionFlags(0)
. -
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)
. -
convertedToColorSpace
Overloaded function for
convertedToColorSpace(io.qt.gui.QColorSpace)
. -
copy
Overloaded function for
copy(io.qt.core.QRect)
withrect = new io.qt.core.QRect()
. -
createAlphaMask
Overloaded function for
createAlphaMask(io.qt.core.Qt.ImageConversionFlags)
withflags = new io.qt.core.Qt.ImageConversionFlags(0)
. -
createAlphaMask
Overloaded function for
createAlphaMask(io.qt.core.Qt.ImageConversionFlags)
. -
createHeuristicMask
Overloaded function for
createHeuristicMask(boolean)
withclipTight = true
. -
createMaskFromColor
Overloaded function for
createMaskFromColor(int, io.qt.core.Qt.MaskMode)
withmode = io.qt.core.Qt.MaskMode.MaskInColor
. -
fill
Overloaded function for
fill(io.qt.gui.QColor)
. -
fill
Overloaded function for
fill(io.qt.gui.QColor)
. -
invertPixels
Overloaded function for
invertPixels(io.qt.gui.QImage.InvertMode)
witharg__1 = io.qt.gui.QImage.InvertMode.InvertRgb
. -
load
Overloaded function for
load(java.lang.String, java.lang.String)
withformat = null
. -
loadFromData
Overloaded function for
loadFromData(io.qt.core.QByteArray, java.lang.String)
withaformat = null
. -
loadFromData
Overloaded function for
loadFromData(byte[], java.lang.String)
withaformat = null
. -
loadFromData
Overloaded function for
loadFromData(io.qt.core.QByteArray, java.lang.String)
. -
loadFromData
Overloaded function for
loadFromData(java.nio.ByteBuffer, java.lang.String)
withformat = null
. -
mirrored
Overloaded function for
mirrored(boolean, boolean)
withvertically = true
. -
mirrored
-
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
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
-
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
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
-
scaledToHeight
Overloaded function for
scaledToHeight(int, io.qt.core.Qt.TransformationMode)
withmode = io.qt.core.Qt.TransformationMode.FastTransformation
. -
scaledToWidth
Overloaded function for
scaledToWidth(int, io.qt.core.Qt.TransformationMode)
withmode = io.qt.core.Qt.TransformationMode.FastTransformation
. -
setColorSpace
Overloaded function for
setColorSpace(io.qt.gui.QColorSpace)
. -
setPixelColor
Overloaded function for
setPixelColor(io.qt.core.QPoint, io.qt.gui.QColor)
. -
setPixelColor
Overloaded function for
setPixelColor(io.qt.core.QPoint, io.qt.gui.QColor)
. -
setPixelColor
Overloaded function for
setPixelColor(io.qt.core.QPoint, io.qt.gui.QColor)
. -
setPixelColor
Overloaded function for
setPixelColor(int, int, io.qt.gui.QColor)
. -
setPixelColor
Overloaded function for
setPixelColor(int, int, io.qt.gui.QColor)
. -
setPixelColor
Overloaded function for
setPixelColor(int, int, io.qt.gui.QColor)
. -
text
Overloaded function for
text(java.lang.String)
withkey = (String)null
. -
transformed
Overloaded function for
transformed(io.qt.gui.QTransform, io.qt.core.Qt.TransformationMode)
withmode = io.qt.core.Qt.TransformationMode.FastTransformation
. -
fromData
Overloaded function for
fromData(io.qt.core.QByteArray, java.lang.String)
withformat = null
. -
fromData
Overloaded function for
fromData(byte[], java.lang.String)
withformat = null
. -
fromData
Overloaded function for
fromData(io.qt.core.QByteArray, java.lang.String)
. -
fromData
Overloaded function for
fromData(java.nio.ByteBuffer, java.lang.String)
withformat = null
.
-