- All Implemented Interfaces:
QPaintDevice
,QtObjectInterface
,Cloneable
public class QImage extends QtObject implements QPaintDevice, 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
Nested Classes Modifier and Type Class Description static class
QImage.Format
Java wrapper for Qt enum QImage::Formatstatic class
QImage.InvertMode
Java wrapper for Qt enum QImage::InvertModeNested classes/interfaces inherited from interface io.qt.gui.QPaintDevice
QPaintDevice.Impl, QPaintDevice.MemberAccess, QPaintDevice.PaintDeviceMetric
-
Field Summary
Fields Modifier and Type Field Description static QMetaObject
staticMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
Constructors Modifier Constructor Description QImage()
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)
QImage(QImage arg__1)
protected
QImage(QtObject.QPrivateConstructor p)
Constructor for internal use only.QImage(String fileName)
Overloaded constructor forQImage(java.lang.String, java.lang.String)
withformat = null
.QImage(String[] xpm)
QImage(String fileName, String format)
QImage(Buffer data, int width, int height, QImage.Format format)
-
Method Summary
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class.
-
-
Constructor Details
-
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
@QtUninvokable public final QImage convertToFormat(QImage.Format f, Collection<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<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
-
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.QByteArray, java.lang.String)
withaformat = 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
-
sharedPainter
-
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 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
-