PythonQt.QtGui.QBitmap · declarations 001
Back to PythonQt.QtGui.QBitmap
cacheKey
cacheKey() -> int
X.cacheKey() -> int
clear
clear() -> None
X.clear()
Supplemental documentation: Qt 5 reference:
void QBitmap::clear()
Clears the bitmap, setting all its bits to Qt::color0.
Upstream PySide2 reference signatures (binding differences may apply):
clear(self) -> None
Source: https://doc.qt.io/archives/qt-5.15/qbitmap.html#clear
convertFromImage
convertFromImage(img: Any, arg1: flags) -> bool
X.convertFromImage(img, flags) -> bool
copy
copy(x: Any, y: Any, width: Any, height: Any) -> Any
X.copy(x, y, width, height) -> PythonQt.QtGui.QPixmap
createHeuristicMask
createHeuristicMask(clipTight: Any) -> Any
X.createHeuristicMask(clipTight) -> PythonQt.QtGui.QBitmap
createMaskFromColor
createMaskFromColor(maskColor: Any, mode: Any) -> Any
X.createMaskFromColor(maskColor, mode) -> PythonQt.QtGui.QBitmap
defaultDepth
defaultDepth() -> int
X.defaultDepth() -> int
fill
fill(device: Any, xofs: Any, yofs: Any) -> Any
X.fill(device, xofs, yofs)
fromImage
fromImage(image: Any, arg1: flags) -> Any
X.fromImage(image, flags) -> PythonQt.QtGui.QBitmap
Supplemental documentation: Qt 5 reference:
[static] QBitmap QBitmap::fromImage(const QImage \&image, Qt::ImageConversionFlags flags \= Qt::AutoColor)
Returns a copy of the given image converted to a bitmap using the specified image conversion flags.
See also fromData().
[static] QBitmap QBitmap::fromImage(QImage \&\&image, Qt::ImageConversionFlags flags \= Qt::AutoColor)
This is an overloaded function.
Returns a copy of the given image converted to a bitmap using the specified image conversion flags.
This function was introduced in Qt 5.12.
See also fromData().
Upstream PySide2 reference signatures (binding differences may apply):
fromImage(image: PySide2.QtGui.QImage, flags: PySide2.QtCore.Qt.ImageConversionFlags=...) -> PySide2.QtGui.QBitmap
fromImage(image: PySide2.QtGui.QImage, flags: PySide2.QtCore.Qt.ImageConversionFlags=...) -> PySide2.QtGui.QPixmap
Source: https://doc.qt.io/archives/qt-5.15/qbitmap.html#fromImage
fromImageReader
fromImageReader(imageReader: Any, arg1: flags) -> Any
X.fromImageReader(imageReader, flags) -> PythonQt.QtGui.QPixmap
grabWidget
grabWidget(widget: Any, x: Any, y: Any, w: Any, h: Any) -> Any
X.grabWidget(widget, x, y, w, h) -> PythonQt.QtGui.QPixmap
grabWindow
grabWindow(arg__1: Any, x: Any, y: Any, w: Any, h: Any) -> Any
X.grabWindow(arg__1, x, y, w, h) -> PythonQt.QtGui.QPixmap
hasAlpha
hasAlpha() -> bool
X.hasAlpha() -> bool
hasAlphaChannel
hasAlphaChannel() -> bool
X.hasAlphaChannel() -> bool
height
height() -> int
X.height() -> int
isNull
isNull() -> bool
X.isNull() -> bool
isQBitmap
isQBitmap() -> bool
X.isQBitmap() -> bool
load
load(fileName: Any, format: Any, arg2: flags) -> bool
X.load(fileName, format, flags) -> bool
loadFromData
loadFromData(data: Any, format: Any, arg2: flags) -> bool
X.loadFromData(data, format, flags) -> bool
mask
mask() -> Any
X.mask() -> PythonQt.QtGui.QBitmap
rect
rect() -> Any
X.rect() -> PythonQt.QtCore.QRect
save
save(device: Any, format: Any, quality: Any) -> bool
X.save(device, format, quality) -> bool
scaled
scaled(w: Any, h: Any, aspectMode: Any, mode: Any) -> Any
X.scaled(w, h, aspectMode, mode) -> PythonQt.QtGui.QPixmap
scaledToHeight
scaledToHeight(h: Any, mode: Any) -> Any
X.scaledToHeight(h, mode) -> PythonQt.QtGui.QPixmap
scaledToWidth
scaledToWidth(w: Any, mode: Any) -> Any
X.scaledToWidth(w, mode) -> PythonQt.QtGui.QPixmap
scroll
scroll(dx: Any, dy: Any, x: Any, y: Any, width: Any, height: Any, exposed: Any) -> Any
X.scroll(dx, dy, x, y, width, height, exposed)
setDevicePixelRatio
setDevicePixelRatio(scaleFactor: Any) -> Any
X.setDevicePixelRatio(scaleFactor)
size
size() -> Any
X.size() -> PythonQt.QtCore.QSize
swap
swap(other: Any) -> None
X.swap(other)
Supplemental documentation: Qt 5 reference:
void QBitmap::swap(QBitmap \&other)
Swaps bitmap other with this bitmap. This operation is very fast and never fails.
This function was introduced in Qt 4.8.
Upstream PySide2 reference signatures (binding differences may apply):
swap(self, other: PySide2.QtGui.QBitmap) -> None
swap(self, other: PySide2.QtGui.QPixmap) -> None
Source: https://doc.qt.io/archives/qt-5.15/qbitmap.html#swap
toImage
toImage() -> Any
X.toImage() -> PythonQt.QtGui.QImage
transformed
transformed(arg__1: Any, mode: Any) -> Any
X.transformed(arg__1, mode) -> PythonQt.QtGui.QBitmap
Supplemental documentation: Qt 5 reference:
QBitmap QBitmap::transformed(const QTransform \&matrix) const
Returns a copy of this bitmap, transformed according to the given matrix.
See also QPixmap::transformed().
Upstream PySide2 reference signatures (binding differences may apply):
transformed(self, arg__1: PySide2.QtGui.QMatrix) -> PySide2.QtGui.QBitmap
transformed(self, arg__1: PySide2.QtGui.QMatrix, mode: PySide2.QtCore.Qt.TransformationMode=...) -> PySide2.QtGui.QPixmap
transformed(self, matrix: PySide2.QtGui.QTransform) -> PySide2.QtGui.QBitmap
Source: https://doc.qt.io/archives/qt-5.15/qbitmap.html#transformed
trueMatrix
trueMatrix(m: Any, w: Any, h: Any) -> Any
X.trueMatrix(m, w, h) -> PythonQt.QtGui.QMatrix
width
width() -> int
X.width() -> int