- 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's 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) Overloaded constructor forQImage(java.lang.String, java.lang.String)
withformat = null
.protected
Constructor for internal use only.QImage
(Buffer data, int width, int height, QImage.Format format) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
allGray()
final QImage
Deprecated.Use convertToFormat(QImage::Format_Alpha8)final void
applyColorTransform
(QColorTransform transform) final void
final int
final ByteBuffer
bits()
final int
Deprecated.UsesizeInBytes()
insteadfinal byte []
bytes()
final int
final long
cacheKey()
clone()
final int
color
(int i) final int
final QColorSpace
final QVector<@QtPrimitiveType Integer>
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) protected final QImage
convertToFormat_helper
(QImage.Format format, Qt.ImageConversionFlag ... flags) Overloaded function forconvertToFormat_helper(io.qt.gui.QImage.Format, io.qt.core.Qt.ImageConversionFlags)
.protected final QImage
convertToFormat_helper
(QImage.Format format, Qt.ImageConversionFlags flags) protected final boolean
convertToFormat_inplace
(QImage.Format format, Qt.ImageConversionFlag ... flags) Overloaded function forconvertToFormat_inplace(io.qt.gui.QImage.Format, io.qt.core.Qt.ImageConversionFlags)
.protected final boolean
convertToFormat_inplace
(QImage.Format format, 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 double
final double
static double
final int
final int
boolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.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) final boolean
int
hashCode()
final int
height()
final int
heightMM()
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
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)
withaformat = null
.final boolean
loadFromData
(QByteArray data, String aformat) 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) protected final QImage
mirrored_helper
(boolean horizontal, boolean vertical) protected final void
mirrored_inplace
(boolean horizontal, boolean vertical) 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) final boolean
final QImage
protected final QImage
protected final void
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
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()
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
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
QImage
-
QImage
-
-
Method Details
-
allGray
-
alphaChannel
Deprecated.Use convertToFormat(QImage::Format_Alpha8) -
applyColorTransform
-
bitPlaneCount
-
bits
-
byteCount
Deprecated.UsesizeInBytes()
instead -
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<@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) -
convertToFormat_helper
@QtUninvokable protected final QImage convertToFormat_helper(QImage.Format format, Qt.ImageConversionFlag ... flags) Overloaded function for
convertToFormat_helper(io.qt.gui.QImage.Format, io.qt.core.Qt.ImageConversionFlags)
. -
convertToFormat_helper
@QtUninvokable protected final QImage convertToFormat_helper(QImage.Format format, Qt.ImageConversionFlags flags) -
convertToFormat_inplace
@QtUninvokable protected final boolean convertToFormat_inplace(QImage.Format format, Qt.ImageConversionFlag ... flags) Overloaded function for
convertToFormat_inplace(io.qt.gui.QImage.Format, io.qt.core.Qt.ImageConversionFlags)
. -
convertToFormat_inplace
@QtUninvokable protected final boolean convertToFormat_inplace(QImage.Format format, Qt.ImageConversionFlags flags) -
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
-
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
-
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.QByteArray, java.lang.String)
withaformat = 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
-
mirrored
Overloaded function for
mirrored(boolean, boolean)
withvertically = true
. -
mirrored
-
mirrored
-
mirrored_helper
-
mirrored_inplace
-
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
-
rgbSwapped
-
rgbSwapped_helper
-
rgbSwapped_inplace
-
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 = (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
-
metric
-
paintEngine
- Specified by:
paintEngine
in interfaceQPaintDevice
-
redirected
-
devicePixelRatioFScale
public static double devicePixelRatioFScale() -
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 the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
toString
-
clone
-