- All Implemented Interfaces:
QPaintDevice
,QtObjectInterface
,Cloneable
- Direct Known Subclasses:
QBitmap
public class QPixmap extends QtObject implements QPaintDevice, Cloneable
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 interface io.qt.gui.QPaintDevice
QPaintDevice.Impl, QPaintDevice.MemberAccess, QPaintDevice.PaintDeviceMetric
-
Constructor Summary
Constructors Modifier Constructor Description QPixmap()
QPixmap(int w, int h)
QPixmap(QSize arg__1)
QPixmap(QPixmap arg__1)
protected
QPixmap(QtObject.QPrivateConstructor p)
Constructor for internal use only.QPixmap(String fileName)
Overloaded constructor forQPixmap(java.lang.String, java.lang.String, io.qt.core.Qt.ImageConversionFlags)
QPixmap(String[] xpm)
QPixmap(String fileName, String format)
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
-
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) -
QPixmap
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
cacheKey
-
colorCount
See QPaintDevice::
- 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
-
devicePixelRatio
- Specified by:
devicePixelRatio
in interfaceQPaintDevice
-
devicePixelRatioF
See QPaintDevice::
- 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
See QPaintDevice::
- Specified by:
heightMM
in interfaceQPaintDevice
-
isDetached
-
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
See QPaintDevice::
- Specified by:
logicalDpiX
in interfaceQPaintDevice
-
logicalDpiY
See QPaintDevice::
- Specified by:
logicalDpiY
in interfaceQPaintDevice
-
mask
-
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
-
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
See QPaintDevice::
- Specified by:
widthMM
in interfaceQPaintDevice
-
initPainter
-
metric
-
paintEngine
- Specified by:
paintEngine
in interfaceQPaintDevice
-
redirected
-
sharedPainter
-
defaultDepth
public static int defaultDepth() -
devicePixelRatioFScale
public static double 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
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
-