java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.gui.QPixmap
io.qt.gui.QBitmap
- All Implemented Interfaces:
QPaintDevice
,QtObjectInterface
,Cloneable
public class QBitmap extends QPixmap implements Cloneable
Monochrome (1-bit depth) pixmaps
Java wrapper for Qt class QBitmap
-
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 QBitmap()
QBitmap(int w, int h)
QBitmap(QSize arg__1)
QBitmap(QPixmap arg__1)
Deprecated.Use fromPixmap instead.protected
QBitmap(QtObject.QPrivateConstructor p)
Constructor for internal use only.QBitmap(String fileName)
Overloaded constructor forQBitmap(java.lang.String, java.lang.String)
withformat = null
.QBitmap(String fileName, String format)
-
Method Summary
Modifier and Type Method Description void
clear()
See QBitmap::clear()QBitmap
clone()
static QBitmap
fromData(QSize size, byte[] bits)
Overloaded function forfromData(io.qt.core.QSize, byte[], io.qt.gui.QImage.Format)
withmonoFormat = io.qt.gui.QImage.Format.Format_MonoLSB
.static QBitmap
fromData(QSize size, byte[] bits, QImage.Format monoFormat)
static QBitmap
fromImage(QImage image, Qt.ImageConversionFlags flags)
static QBitmap
fromPixmap(QPixmap pixmap)
void
swap(QBitmap other)
QBitmap
transformed(QTransform matrix)
Methods inherited from class io.qt.gui.QPixmap
cacheKey, colorCount, convertFromImage, convertFromImage, convertFromImage, copy, copy, copy, createHeuristicMask, createHeuristicMask, createMaskFromColor, createMaskFromColor, defaultDepth, depth, detach, devicePixelRatio, devicePixelRatioF, devicePixelRatioFScale, equals, fill, fill, fromImage, fromImage, fromImageReader, fromImageReader, fromImageReader, hasAlpha, hasAlphaChannel, hashCode, height, heightMM, initPainter, isDetached, isNull, isQBitmap, load, load, load, load, loadFromData, loadFromData, loadFromData, loadFromData, loadFromData, loadFromData, loadFromData, loadFromData, logicalDpiX, logicalDpiY, mask, metric, paintEngine, paintingActive, physicalDpiX, physicalDpiY, readFrom, rect, redirected, save, save, save, save, save, save, scaled, scaled, scaled, scaled, scaled, scaled, scaledToHeight, scaledToHeight, scaledToWidth, scaledToWidth, scroll, scroll, scroll, scroll, setDevicePixelRatio, setMask, sharedPainter, size, swap, toImage, toString, transformed, trueMatrix, width, widthMM, writeTo
-
Constructor Details
-
QBitmap
public QBitmap() -
QBitmap
Deprecated.Use fromPixmap instead. -
QBitmap
-
QBitmap
Overloaded constructor for
QBitmap(java.lang.String, java.lang.String)
withformat = null
. -
QBitmap
-
QBitmap
public QBitmap(int w, int h) -
QBitmap
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
clear
See QBitmap::clear()
-
swap
-
transformed
-
fromData
Overloaded function for
fromData(io.qt.core.QSize, byte[], io.qt.gui.QImage.Format)
withmonoFormat = io.qt.gui.QImage.Format.Format_MonoLSB
. -
fromData
-
fromImage
-
fromPixmap
-
clone
-