Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide2.QtGui »

Classe « QPixmap »

Informations générales

Héritage

builtins.object
    Object
        QPaintDevice
            QPixmap

Définition

class QPixmap(QPaintDevice):

Description [extrait de QPixmap.__doc__]

QPixmap(self)
QPixmap(self, arg__1: PySide2.QtCore.QSize)
QPixmap(self, arg__1: PySide2.QtGui.QPixmap)
QPixmap(self, fileName: str, format: typing.Union[bytes, NoneType] = None, flags: PySide2.QtCore.Qt.ImageConversionFlags = PySide2.QtCore.Qt.ImageConversionFlag.AutoColor)
QPixmap(self, image: PySide2.QtGui.QImage)
QPixmap(self, w: int, h: int)
QPixmap(self, xpm: typing.Sequence[str])

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]
__init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
PdmDepthPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDepth
PdmDevicePixelRatioPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDevicePixelRatio
PdmDevicePixelRatioScaledPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDevicePixelRatioScaled
PdmDpiXPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDpiX
PdmDpiYPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmDpiY
PdmHeightPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmHeight
PdmHeightMMPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmHeightMM
PdmNumColorsPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmNumColors
PdmPhysicalDpiXPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmPhysicalDpiX
PdmPhysicalDpiYPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmPhysicalDpiY
PdmWidthPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmWidth
PdmWidthMMPySide2.QtGui.QPaintDevice.PaintDeviceMetric.PdmWidthMM

Attributs statiques hérités de la classe QPaintDevice

painters

Liste des opérateurs

Signature de l'opérateur Description
__lshift__(self, arg__1: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream __lshift__(self, arg__1: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream [extrait de __lshift__.__doc__]
__rlshift__(self, value) Return value<<self. [extrait de __rlshift__.__doc__]
__rrshift__(self, value) Return value>>self. [extrait de __rrshift__.__doc__]
__rshift__(self, arg__1: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream __rshift__(self, arg__1: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream [extrait de __rshift__.__doc__]

Opérateurs hérités de la classe object

__eq__, __ge__, __gt__, __le__, __lt__, __ne__

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__bool__(self) self != 0 [extrait de __bool__.__doc__]
__copy__(self) __copy__(self) [extrait de __copy__.__doc__]
__delattr__(self, name) Implement delattr(self, name). [extrait de __delattr__.__doc__]
__repr__(self) Return repr(self). [extrait de __repr__.__doc__]
__setattr__(self, name, value) Implement setattr(self, name, value). [extrait de __setattr__.__doc__]
cacheKey(self) -> int cacheKey(self) -> int [extrait de cacheKey.__doc__]
convertFromImage(self, img: PySide2.QtGui.QImage, flags: PySide2.QtCore.Qt.ImageConversionFlags = PySide2.QtCore.Qt.ImageConversionFlag.AutoColor) -> bool convertFromImage(self, img: PySide2.QtGui.QImage, flags: PySide2.QtCore.Qt.ImageConversionFlags = PySide2.QtCore.Qt.ImageConversionFlag.AutoColor) -> bool [extrait de convertFromImage.__doc__]
copy copy(self, rect: PySide2.QtCore.QRect = Default(QRect)) -> PySide2.QtGui.QPixmap [extrait de copy.__doc__]
createHeuristicMask(self, clipTight: bool = True) -> PySide2.QtGui.QBitmap createHeuristicMask(self, clipTight: bool = True) -> PySide2.QtGui.QBitmap [extrait de createHeuristicMask.__doc__]
createMaskFromColor(self, maskColor: PySide2.QtGui.QColor, mode: PySide2.QtCore.Qt.MaskMode = PySide2.QtCore.Qt.MaskMode.MaskInColor) -> PySide2.QtGui.QBitmap createMaskFromColor(self, maskColor: PySide2.QtGui.QColor, mode: PySide2.QtCore.Qt.MaskMode = PySide2.QtCore.Qt.MaskMode.MaskInColor) -> PySide2.QtGui.QBitmap [extrait de createMaskFromColor.__doc__]
defaultDepth() -> int defaultDepth() -> int [extrait de defaultDepth.__doc__]
depth(self) -> int depth(self) -> int [extrait de depth.__doc__]
devicePixelRatio(self) -> float devicePixelRatio(self) -> float [extrait de devicePixelRatio.__doc__]
devType(self) -> int devType(self) -> int [extrait de devType.__doc__]
fill fill(self, device: PySide2.QtGui.QPaintDevice, ofs: PySide2.QtCore.QPoint) [extrait de fill.__doc__]
fromImage(image: PySide2.QtGui.QImage, flags: PySide2.QtCore.Qt.ImageConversionFlags = PySide2.QtCore.Qt.ImageConversionFlag.AutoColor) -> PySide2.QtGui.QPixmap fromImage(image: PySide2.QtGui.QImage, flags: PySide2.QtCore.Qt.ImageConversionFlags = PySide2.QtCore.Qt.ImageConversionFlag.AutoColor) -> PySide2.QtGui.QPixmap [extrait de fromImage.__doc__]
fromImageInPlace(image: PySide2.QtGui.QImage, flags: PySide2.QtCore.Qt.ImageConversionFlags = PySide2.QtCore.Qt.ImageConversionFlag.AutoColor) -> PySide2.QtGui.QPixmap fromImageInPlace(image: PySide2.QtGui.QImage, flags: PySide2.QtCore.Qt.ImageConversionFlags = PySide2.QtCore.Qt.ImageConversionFlag.AutoColor) -> PySide2.QtGui.QPixmap [extrait de fromImageInPlace.__doc__]
fromImageReader(imageReader: PySide2.QtGui.QImageReader, flags: PySide2.QtCore.Qt.ImageConversionFlags = PySide2.QtCore.Qt.ImageConversionFlag.AutoColor) -> PySide2.QtGui.QPixmap fromImageReader(imageReader: PySide2.QtGui.QImageReader, flags: PySide2.QtCore.Qt.ImageConversionFlags = PySide2.QtCore.Qt.ImageConversionFlag.AutoColor) -> PySide2.QtGui.QPixmap [extrait de fromImageReader.__doc__]
grabWidget grabWidget(widget: PySide2.QtCore.QObject, rect: PySide2.QtCore.QRect) -> PySide2.QtGui.QPixmap [extrait de grabWidget.__doc__]
grabWindow(arg__1: int, x: int = 0, y: int = 0, w: int = -1, h: int = -1) -> PySide2.QtGui.QPixmap grabWindow(arg__1: int, x: int = 0, y: int = 0, w: int = -1, h: int = -1) -> PySide2.QtGui.QPixmap [extrait de grabWindow.__doc__]
hasAlpha(self) -> bool hasAlpha(self) -> bool [extrait de hasAlpha.__doc__]
hasAlphaChannel(self) -> bool hasAlphaChannel(self) -> bool [extrait de hasAlphaChannel.__doc__]
height(self) -> int height(self) -> int [extrait de height.__doc__]
isNull(self) -> bool isNull(self) -> bool [extrait de isNull.__doc__]
isQBitmap(self) -> bool isQBitmap(self) -> bool [extrait de isQBitmap.__doc__]
load(self, fileName: str, format: typing.Union[bytes, NoneType] = None, flags: PySide2.QtCore.Qt.ImageConversionFlags = PySide2.QtCore.Qt.ImageConversionFlag.AutoColor) -> bool load(self, fileName: str, format: typing.Union[bytes, NoneType] = None, flags: PySide2.QtCore.Qt.ImageConversionFlags = PySide2.QtCore.Qt.ImageConversionFlag.AutoColor) -> bool [extrait de load.__doc__]
loadFromData loadFromData(self, buf: bytes, len: int, format: typing.Union[bytes, NoneType] = None, flags: PySide2.QtCore.Qt.ImageConversionFlags = PySide2.QtCore.Qt.ImageConversionFlag.AutoColor) -> bool [extrait de loadFromData.__doc__]
mask(self) -> PySide2.QtGui.QBitmap mask(self) -> PySide2.QtGui.QBitmap [extrait de mask.__doc__]
metric(self, arg__1: PySide2.QtGui.QPaintDevice.PaintDeviceMetric) -> int metric(self, arg__1: PySide2.QtGui.QPaintDevice.PaintDeviceMetric) -> int [extrait de metric.__doc__]
paintEngine(self) -> PySide2.QtGui.QPaintEngine paintEngine(self) -> PySide2.QtGui.QPaintEngine [extrait de paintEngine.__doc__]
rect(self) -> PySide2.QtCore.QRect rect(self) -> PySide2.QtCore.QRect [extrait de rect.__doc__]
save save(self, device: PySide2.QtCore.QIODevice, format: typing.Union[bytes, NoneType] = None, quality: int = -1) -> bool [extrait de save.__doc__]
scaled scaled(self, s: PySide2.QtCore.QSize, aspectMode: PySide2.QtCore.Qt.AspectRatioMode = PySide2.QtCore.Qt.AspectRatioMode.IgnoreAspectRatio, mode: PySide2.QtCore.Qt.TransformationMode = PySide2.QtCore.Qt.TransformationMode.FastTransformation) -> PySide2.QtGui.QPixmap [extrait de scaled.__doc__]
scaledToHeight(self, h: int, mode: PySide2.QtCore.Qt.TransformationMode = PySide2.QtCore.Qt.TransformationMode.FastTransformation) -> PySide2.QtGui.QPixmap scaledToHeight(self, h: int, mode: PySide2.QtCore.Qt.TransformationMode = PySide2.QtCore.Qt.TransformationMode.FastTransformation) -> PySide2.QtGui.QPixmap [extrait de scaledToHeight.__doc__]
scaledToWidth(self, w: int, mode: PySide2.QtCore.Qt.TransformationMode = PySide2.QtCore.Qt.TransformationMode.FastTransformation) -> PySide2.QtGui.QPixmap scaledToWidth(self, w: int, mode: PySide2.QtCore.Qt.TransformationMode = PySide2.QtCore.Qt.TransformationMode.FastTransformation) -> PySide2.QtGui.QPixmap [extrait de scaledToWidth.__doc__]
scroll scroll(self, dx: int, dy: int, rect: PySide2.QtCore.QRect, exposed: typing.Union[PySide2.QtGui.QRegion, NoneType] = None) [extrait de scroll.__doc__]
setDevicePixelRatio(self, scaleFactor: float) setDevicePixelRatio(self, scaleFactor: float) [extrait de setDevicePixelRatio.__doc__]
setMask(self, arg__1: PySide2.QtGui.QBitmap) setMask(self, arg__1: PySide2.QtGui.QBitmap) [extrait de setMask.__doc__]
size(self) -> PySide2.QtCore.QSize size(self) -> PySide2.QtCore.QSize [extrait de size.__doc__]
swap(self, other: PySide2.QtGui.QPixmap) swap(self, other: PySide2.QtGui.QPixmap) [extrait de swap.__doc__]
toImage(self) -> PySide2.QtGui.QImage toImage(self) -> PySide2.QtGui.QImage [extrait de toImage.__doc__]
transformed transformed(self, arg__1: PySide2.QtGui.QMatrix, mode: PySide2.QtCore.Qt.TransformationMode = PySide2.QtCore.Qt.TransformationMode.FastTransformation) -> PySide2.QtGui.QPixmap [extrait de transformed.__doc__]
trueMatrix trueMatrix(m: PySide2.QtGui.QMatrix, w: int, h: int) -> PySide2.QtGui.QMatrix [extrait de trueMatrix.__doc__]
width(self) -> int width(self) -> int [extrait de width.__doc__]

Méthodes héritées de la classe QPaintDevice

__init_subclass__, __subclasshook__, colorCount, devicePixelRatioF, devicePixelRatioFScale, heightMM, initPainter, logicalDpiX, logicalDpiY, PaintDeviceMetric, paintingActive, physicalDpiX, physicalDpiY, redirected, sharedPainter, widthMM

Méthodes héritées de la classe Object

__init_subclass__, __subclasshook__

Méthodes héritées de la classe object

__dir__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __sizeof__, __str__