- All Implemented Interfaces:
QPaintDevice
,QtObjectInterface
,Cloneable
- Direct Known Subclasses:
QBitmap
Off-screen image representation that can be used as a paint device
Java wrapper for Qt class QPixmap
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
Nested classes/interfaces inherited from interface io.qt.gui.QPaintDevice
QPaintDevice.PaintDeviceMetric
-
Constructor Summary
ConstructorDescriptionQPixmap()
QPixmap
(int w, int h) Overloaded constructor forQPixmap(java.lang.String, java.lang.String, io.qt.core.Qt.ImageConversionFlags)
Overloaded constructor forQPixmap(java.lang.String, java.lang.String, io.qt.core.Qt.ImageConversionFlags)
withflags = new io.qt.core.Qt.ImageConversionFlags(0)
.QPixmap
(String fileName, String format, Qt.ImageConversionFlag ... flags) Overloaded constructor forQPixmap(java.lang.String, java.lang.String, io.qt.core.Qt.ImageConversionFlags)
.QPixmap
(String fileName, String format, Qt.ImageConversionFlags flags) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
final long
cacheKey()
clone()
Creates and returns a copy of this object.final int
final boolean
convertFromImage
(QImage img) Overloaded function forconvertFromImage(io.qt.gui.QImage, io.qt.core.Qt.ImageConversionFlags)
withflags = new io.qt.core.Qt.ImageConversionFlags(0)
.final boolean
convertFromImage
(QImage img, Qt.ImageConversionFlag ... flags) Overloaded function forconvertFromImage(io.qt.gui.QImage, io.qt.core.Qt.ImageConversionFlags)
.final boolean
convertFromImage
(QImage img, Qt.ImageConversionFlags flags) final QPixmap
copy()
Overloaded function forcopy(io.qt.core.QRect)
withrect = new io.qt.core.QRect()
.final QPixmap
copy
(int x, int y, int width, int height) final QPixmap
final QBitmap
Overloaded function forcreateHeuristicMask(boolean)
withclipTight = true
.final QBitmap
createHeuristicMask
(boolean clipTight) final QBitmap
createMaskFromColor
(QColor maskColor) Overloaded function forcreateMaskFromColor(io.qt.gui.QColor, io.qt.core.Qt.MaskMode)
withmode = io.qt.core.Qt.MaskMode.MaskInColor
.final QBitmap
createMaskFromColor
(QColor maskColor, Qt.MaskMode mode) static int
final int
depth()
final void
detach()
final QSizeF
final double
final double
static double
SeeQPaintDevice::
devicePixelRatioFScale() boolean
Checks for equality by checking object's hash code.final void
fill()
Overloaded function forfill(io.qt.gui.QColor)
withfillColor = new io.qt.gui.QColor(io.qt.core.Qt.GlobalColor.white)
.final void
static QPixmap
Overloaded function forfromImage(io.qt.gui.QImage, io.qt.core.Qt.ImageConversionFlags)
withflags = new io.qt.core.Qt.ImageConversionFlags(0)
.static QPixmap
fromImage
(QImage image, Qt.ImageConversionFlag ... flags) Overloaded function forfromImage(io.qt.gui.QImage, io.qt.core.Qt.ImageConversionFlags)
.static QPixmap
fromImage
(QImage image, Qt.ImageConversionFlags flags) static QPixmap
fromImageReader
(QImageReader imageReader) Overloaded function forfromImageReader(io.qt.gui.QImageReader, io.qt.core.Qt.ImageConversionFlags)
withflags = new io.qt.core.Qt.ImageConversionFlags(0)
.static QPixmap
fromImageReader
(QImageReader imageReader, Qt.ImageConversionFlag ... flags) Overloaded function forfromImageReader(io.qt.gui.QImageReader, io.qt.core.Qt.ImageConversionFlags)
.static QPixmap
fromImageReader
(QImageReader imageReader, Qt.ImageConversionFlags flags) final boolean
hasAlpha()
final boolean
int
hashCode()
Returns the objects's hash code computed byqHash(QPixmap)
.final int
height()
final int
heightMM()
protected void
initPainter
(QPainter painter) SeeQPaintDevice::
initPainter(QPainter*)const final boolean
SeeQPixmap::
isDetached()const final boolean
isNull()
final boolean
final boolean
Overloaded function forload(java.lang.String, java.lang.String, io.qt.core.Qt.ImageConversionFlags)
final boolean
Overloaded function forload(java.lang.String, java.lang.String, io.qt.core.Qt.ImageConversionFlags)
withflags = new io.qt.core.Qt.ImageConversionFlags(0)
.final boolean
load
(String fileName, String format, Qt.ImageConversionFlag ... flags) Overloaded function forload(java.lang.String, java.lang.String, io.qt.core.Qt.ImageConversionFlags)
.final boolean
load
(String fileName, String format, Qt.ImageConversionFlags flags) final boolean
loadFromData
(byte[] buf) Overloaded function forloadFromData(byte[], java.lang.String, io.qt.core.Qt.ImageConversionFlags)
final boolean
loadFromData
(byte[] buf, String format) Overloaded function forloadFromData(byte[], java.lang.String, io.qt.core.Qt.ImageConversionFlags)
withflags = new io.qt.core.Qt.ImageConversionFlags(0)
.final boolean
loadFromData
(byte[] buf, String format, Qt.ImageConversionFlag ... flags) Overloaded function forloadFromData(byte[], java.lang.String, io.qt.core.Qt.ImageConversionFlags)
.final boolean
loadFromData
(byte[] buf, String format, Qt.ImageConversionFlags flags) final boolean
loadFromData
(QByteArray data) Overloaded function forloadFromData(io.qt.core.QByteArray, java.lang.String, io.qt.core.Qt.ImageConversionFlags)
final boolean
loadFromData
(QByteArray data, String format) Overloaded function forloadFromData(io.qt.core.QByteArray, java.lang.String, io.qt.core.Qt.ImageConversionFlags)
withflags = new io.qt.core.Qt.ImageConversionFlags(0)
.final boolean
loadFromData
(QByteArray data, String format, Qt.ImageConversionFlag ... flags) Overloaded function forloadFromData(io.qt.core.QByteArray, java.lang.String, io.qt.core.Qt.ImageConversionFlags)
.final boolean
loadFromData
(QByteArray data, String format, Qt.ImageConversionFlags flags) final int
final int
final QBitmap
mask()
protected int
metric
(QPaintDevice.PaintDeviceMetric arg__1) final boolean
not()
final boolean
final int
final int
void
readFrom
(QDataStream arg__1) final QRect
rect()
protected QPaintDevice
redirected
(QPoint offset) SeeQPaintDevice::
redirected(QPoint*)const 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 QPixmap
scaled
(int w, int h) Overloaded function forscaled(int, int, io.qt.core.Qt.AspectRatioMode, io.qt.core.Qt.TransformationMode)
final QPixmap
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 QPixmap
scaled
(int w, int h, Qt.AspectRatioMode aspectMode, Qt.TransformationMode mode) final QPixmap
Overloaded function forscaled(io.qt.core.QSize, io.qt.core.Qt.AspectRatioMode, io.qt.core.Qt.TransformationMode)
final QPixmap
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 QPixmap
scaled
(QSize s, Qt.AspectRatioMode aspectMode, Qt.TransformationMode mode) final QPixmap
scaledToHeight
(int h) Overloaded function forscaledToHeight(int, io.qt.core.Qt.TransformationMode)
withmode = io.qt.core.Qt.TransformationMode.FastTransformation
.final QPixmap
scaledToHeight
(int h, Qt.TransformationMode mode) final QPixmap
scaledToWidth
(int w) Overloaded function forscaledToWidth(int, io.qt.core.Qt.TransformationMode)
withmode = io.qt.core.Qt.TransformationMode.FastTransformation
.final QPixmap
scaledToWidth
(int w, Qt.TransformationMode mode) final void
scroll
(int dx, int dy, int x, int y, int width, int height) Overloaded function forscroll(int, int, int, int, int, int, io.qt.gui.QRegion)
withexposed = null
.final void
final void
Overloaded function forscroll(int, int, io.qt.core.QRect, io.qt.gui.QRegion)
withexposed = null
.final void
final void
setDevicePixelRatio
(double scaleFactor) final void
protected QPainter
SeeQPaintDevice::
sharedPainter()const final QSize
size()
final void
final QImage
toImage()
toString()
Seeoperator<<(QDebug,
QPixmap) final QPixmap
transformed
(QTransform arg__1, Qt.TransformationMode mode) static QTransform
trueMatrix
(QTransform m, int w, int h) 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
-
Constructor Details
-
QPixmap
public QPixmap() -
QPixmap
-
QPixmap
-
QPixmap
Overloaded constructor for
QPixmap(java.lang.String, java.lang.String, io.qt.core.Qt.ImageConversionFlags)
. -
QPixmap
Overloaded constructor for
QPixmap(java.lang.String, java.lang.String, io.qt.core.Qt.ImageConversionFlags)
withflags = new io.qt.core.Qt.ImageConversionFlags(0)
. -
QPixmap
Overloaded constructor for
QPixmap(java.lang.String, java.lang.String, io.qt.core.Qt.ImageConversionFlags)
with:
format = null
flags = new io.qt.core.Qt.ImageConversionFlags(0)
-
QPixmap
-
QPixmap
-
QPixmap
public QPixmap(int w, int h)
-
-
Method Details
-
cacheKey
-
colorCount
- Specified by:
colorCount
in interfaceQPaintDevice
-
convertFromImage
Overloaded function for
convertFromImage(io.qt.gui.QImage, io.qt.core.Qt.ImageConversionFlags)
. -
convertFromImage
Overloaded function for
convertFromImage(io.qt.gui.QImage, io.qt.core.Qt.ImageConversionFlags)
withflags = new io.qt.core.Qt.ImageConversionFlags(0)
. -
convertFromImage
-
copy
Overloaded function for
copy(io.qt.core.QRect)
withrect = new io.qt.core.QRect()
. -
copy
-
copy
-
createHeuristicMask
Overloaded function for
createHeuristicMask(boolean)
withclipTight = true
. -
createHeuristicMask
-
createMaskFromColor
Overloaded function for
createMaskFromColor(io.qt.gui.QColor, 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
- Specified by:
devicePixelRatioF
in interfaceQPaintDevice
-
fill
Overloaded function for
fill(io.qt.gui.QColor)
withfillColor = new io.qt.gui.QColor(io.qt.core.Qt.GlobalColor.white)
. -
fill
-
hasAlpha
-
hasAlphaChannel
-
height
- Specified by:
height
in interfaceQPaintDevice
-
heightMM
- Specified by:
heightMM
in interfaceQPaintDevice
-
isDetached
See
QPixmap::
isDetached()const -
isNull
-
isQBitmap
-
load
@QtUninvokable public final boolean load(String fileName, String format, Qt.ImageConversionFlag ... flags) Overloaded function for
load(java.lang.String, java.lang.String, io.qt.core.Qt.ImageConversionFlags)
. -
load
Overloaded function for
load(java.lang.String, java.lang.String, io.qt.core.Qt.ImageConversionFlags)
withflags = new io.qt.core.Qt.ImageConversionFlags(0)
. -
load
Overloaded function for
load(java.lang.String, java.lang.String, io.qt.core.Qt.ImageConversionFlags)
with:
format = null
flags = new io.qt.core.Qt.ImageConversionFlags(0)
-
load
@QtUninvokable public final boolean load(String fileName, String format, Qt.ImageConversionFlags flags) -
loadFromData
@QtUninvokable public final boolean loadFromData(QByteArray data, String format, Qt.ImageConversionFlag ... flags) Overloaded function for
loadFromData(io.qt.core.QByteArray, java.lang.String, io.qt.core.Qt.ImageConversionFlags)
. -
loadFromData
Overloaded function for
loadFromData(io.qt.core.QByteArray, java.lang.String, io.qt.core.Qt.ImageConversionFlags)
withflags = new io.qt.core.Qt.ImageConversionFlags(0)
. -
loadFromData
Overloaded function for
loadFromData(io.qt.core.QByteArray, java.lang.String, io.qt.core.Qt.ImageConversionFlags)
with:
format = null
flags = new io.qt.core.Qt.ImageConversionFlags(0)
-
loadFromData
@QtUninvokable public final boolean loadFromData(QByteArray data, String format, Qt.ImageConversionFlags flags) -
loadFromData
@QtUninvokable public final boolean loadFromData(byte[] buf, String format, Qt.ImageConversionFlag ... flags) Overloaded function for
loadFromData(byte[], java.lang.String, io.qt.core.Qt.ImageConversionFlags)
. -
loadFromData
Overloaded function for
loadFromData(byte[], java.lang.String, io.qt.core.Qt.ImageConversionFlags)
withflags = new io.qt.core.Qt.ImageConversionFlags(0)
. -
loadFromData
Overloaded function for
loadFromData(byte[], java.lang.String, io.qt.core.Qt.ImageConversionFlags)
with:
format = null
flags = new io.qt.core.Qt.ImageConversionFlags(0)
-
loadFromData
@QtUninvokable public final boolean loadFromData(byte[] buf, String format, Qt.ImageConversionFlags flags) -
logicalDpiX
- Specified by:
logicalDpiX
in interfaceQPaintDevice
-
logicalDpiY
- Specified by:
logicalDpiY
in interfaceQPaintDevice
-
mask
-
not
-
writeTo
-
assign
-
readFrom
-
paintingActive
- Specified by:
paintingActive
in interfaceQPaintDevice
-
physicalDpiX
- Specified by:
physicalDpiX
in interfaceQPaintDevice
-
physicalDpiY
- Specified by:
physicalDpiY
in interfaceQPaintDevice
-
rect
-
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 QPixmap 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 QPixmap 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
-
scroll
Overloaded function for
scroll(int, int, io.qt.core.QRect, io.qt.gui.QRegion)
withexposed = null
. -
scroll
-
scroll
Overloaded function for
scroll(int, int, int, int, int, int, io.qt.gui.QRegion)
withexposed = null
. -
scroll
@QtUninvokable public final void scroll(int dx, int dy, int x, int y, int width, int height, QRegion exposed) -
setDevicePixelRatio
-
setMask
-
size
-
swap
-
toImage
-
transformed
-
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 -
defaultDepth
public static int defaultDepth() -
devicePixelRatioFScale
public static double devicePixelRatioFScale()See
QPaintDevice::
devicePixelRatioFScale() -
fromImage
Overloaded function for
fromImage(io.qt.gui.QImage, io.qt.core.Qt.ImageConversionFlags)
. -
fromImage
Overloaded function for
fromImage(io.qt.gui.QImage, io.qt.core.Qt.ImageConversionFlags)
withflags = new io.qt.core.Qt.ImageConversionFlags(0)
. -
fromImage
-
fromImageReader
Overloaded function for
fromImageReader(io.qt.gui.QImageReader, io.qt.core.Qt.ImageConversionFlags)
. -
fromImageReader
Overloaded function for
fromImageReader(io.qt.gui.QImageReader, io.qt.core.Qt.ImageConversionFlags)
withflags = new io.qt.core.Qt.ImageConversionFlags(0)
. -
fromImageReader
-
trueMatrix
-
equals
Checks for equality by checking object's hash code. -
hashCode
Returns the objects's hash code computed byqHash(QPixmap)
. -
toString
See
operator<<(QDebug,
QPixmap) -
clone
Creates and returns a copy of this object.
-