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 « QImage »

Informations générales

Héritage

builtins.object
    Object
        QPaintDevice
            QImage

Définition

class QImage(QPaintDevice):

Description [extrait de QImage.__doc__]

QImage(self)
QImage(self, arg__1: PySide2.QtGui.QImage)
QImage(self, arg__1: str, arg__2: int, arg__3: int, arg__4: PySide2.QtGui.QImage.Format)
QImage(self, arg__1: str, arg__2: int, arg__3: int, arg__4: int, arg__5: PySide2.QtGui.QImage.Format)
QImage(self, data: bytes, width: int, height: int, bytesPerLine: int, format: PySide2.QtGui.QImage.Format, cleanupFunction: typing.Union[typing.Callable, NoneType] = None, cleanupInfo: typing.Union[int, NoneType] = None)
QImage(self, data: bytes, width: int, height: int, format: PySide2.QtGui.QImage.Format, cleanupFunction: typing.Union[typing.Callable, NoneType] = None, cleanupInfo: typing.Union[int, NoneType] = None)
QImage(self, fileName: str, format: typing.Union[bytes, NoneType] = None)
QImage(self, size: PySide2.QtCore.QSize, format: PySide2.QtGui.QImage.Format)
QImage(self, width: int, height: int, format: PySide2.QtGui.QImage.Format)
QImage(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
Format_A2BGR30_PremultipliedPySide2.QtGui.QImage.Format.Format_A2BGR30_Premultiplied
Format_A2RGB30_PremultipliedPySide2.QtGui.QImage.Format.Format_A2RGB30_Premultiplied
Format_Alpha8PySide2.QtGui.QImage.Format.Format_Alpha8
Format_ARGB32PySide2.QtGui.QImage.Format.Format_ARGB32
Format_ARGB32_PremultipliedPySide2.QtGui.QImage.Format.Format_ARGB32_Premultiplied
Format_ARGB4444_PremultipliedPySide2.QtGui.QImage.Format.Format_ARGB4444_Premultiplied
Format_ARGB6666_PremultipliedPySide2.QtGui.QImage.Format.Format_ARGB6666_Premultiplied
Format_ARGB8555_PremultipliedPySide2.QtGui.QImage.Format.Format_ARGB8555_Premultiplied
Format_ARGB8565_PremultipliedPySide2.QtGui.QImage.Format.Format_ARGB8565_Premultiplied
Format_BGR30PySide2.QtGui.QImage.Format.Format_BGR30
Format_BGR888PySide2.QtGui.QImage.Format.Format_BGR888
Format_Grayscale16PySide2.QtGui.QImage.Format.Format_Grayscale16
Format_Grayscale8PySide2.QtGui.QImage.Format.Format_Grayscale8
Format_Indexed8PySide2.QtGui.QImage.Format.Format_Indexed8
Format_InvalidPySide2.QtGui.QImage.Format.Format_Invalid
Format_MonoPySide2.QtGui.QImage.Format.Format_Mono
Format_MonoLSBPySide2.QtGui.QImage.Format.Format_MonoLSB
Format_RGB16PySide2.QtGui.QImage.Format.Format_RGB16
Format_RGB30PySide2.QtGui.QImage.Format.Format_RGB30
Format_RGB32PySide2.QtGui.QImage.Format.Format_RGB32
Format_RGB444PySide2.QtGui.QImage.Format.Format_RGB444
Format_RGB555PySide2.QtGui.QImage.Format.Format_RGB555
Format_RGB666PySide2.QtGui.QImage.Format.Format_RGB666
Format_RGB888PySide2.QtGui.QImage.Format.Format_RGB888
Format_RGBA64PySide2.QtGui.QImage.Format.Format_RGBA64
Format_RGBA64_PremultipliedPySide2.QtGui.QImage.Format.Format_RGBA64_Premultiplied
Format_RGBA8888PySide2.QtGui.QImage.Format.Format_RGBA8888
Format_RGBA8888_PremultipliedPySide2.QtGui.QImage.Format.Format_RGBA8888_Premultiplied
Format_RGBX64PySide2.QtGui.QImage.Format.Format_RGBX64
Format_RGBX8888PySide2.QtGui.QImage.Format.Format_RGBX8888
InvertRgbPySide2.QtGui.QImage.InvertMode.InvertRgb
InvertRgbaPySide2.QtGui.QImage.InvertMode.InvertRgba
NImageFormatsPySide2.QtGui.QImage.Format.NImageFormats
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
__eq__(self, value) Return self==value. [extrait de __eq__.__doc__]
__ge__(self, value) Return self>=value. [extrait de __ge__.__doc__]
__gt__(self, value) Return self>value. [extrait de __gt__.__doc__]
__le__(self, value) Return self<=value. [extrait de __le__.__doc__]
__lshift__(self, arg__1: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream __lshift__(self, arg__1: PySide2.QtCore.QDataStream) -> PySide2.QtCore.QDataStream [extrait de __lshift__.__doc__]
__lt__(self, value) Return self<value. [extrait de __lt__.__doc__]
__ne__(self, value) Return self!=value. [extrait de __ne__.__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__]

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__]
allGray(self) -> bool allGray(self) -> bool [extrait de allGray.__doc__]
alphaChannel(self) -> PySide2.QtGui.QImage alphaChannel(self) -> PySide2.QtGui.QImage [extrait de alphaChannel.__doc__]
bitPlaneCount(self) -> int bitPlaneCount(self) -> int [extrait de bitPlaneCount.__doc__]
bits(self) -> bytes bits(self) -> bytes [extrait de bits.__doc__]
byteCount(self) -> int byteCount(self) -> int [extrait de byteCount.__doc__]
bytesPerLine(self) -> int bytesPerLine(self) -> int [extrait de bytesPerLine.__doc__]
cacheKey(self) -> int cacheKey(self) -> int [extrait de cacheKey.__doc__]
color(self, i: int) -> int color(self, i: int) -> int [extrait de color.__doc__]
colorCount(self) -> int colorCount(self) -> int [extrait de colorCount.__doc__]
colorSpace(self) -> PySide2.QtGui.QColorSpace colorSpace(self) -> PySide2.QtGui.QColorSpace [extrait de colorSpace.__doc__]
colorTable(self) -> typing.List[int] colorTable(self) -> typing.List[int] [extrait de colorTable.__doc__]
constBits(self) -> bytes constBits(self) -> bytes [extrait de constBits.__doc__]
constScanLine(self, arg__1: int) -> bytes constScanLine(self, arg__1: int) -> bytes [extrait de constScanLine.__doc__]
convertedToColorSpace(self, arg__1: PySide2.QtGui.QColorSpace) -> PySide2.QtGui.QImage convertedToColorSpace(self, arg__1: PySide2.QtGui.QColorSpace) -> PySide2.QtGui.QImage [extrait de convertedToColorSpace.__doc__]
convertTo(self, f: PySide2.QtGui.QImage.Format, flags: PySide2.QtCore.Qt.ImageConversionFlags = PySide2.QtCore.Qt.ImageConversionFlag.AutoColor) convertTo(self, f: PySide2.QtGui.QImage.Format, flags: PySide2.QtCore.Qt.ImageConversionFlags = PySide2.QtCore.Qt.ImageConversionFlag.AutoColor) [extrait de convertTo.__doc__]
convertToColorSpace(self, arg__1: PySide2.QtGui.QColorSpace) convertToColorSpace(self, arg__1: PySide2.QtGui.QColorSpace) [extrait de convertToColorSpace.__doc__]
convertToFormat convertToFormat(self, f: PySide2.QtGui.QImage.Format, colorTable: typing.List[int], flags: PySide2.QtCore.Qt.ImageConversionFlags = PySide2.QtCore.Qt.ImageConversionFlag.AutoColor) -> PySide2.QtGui.QImage [extrait de convertToFormat.__doc__]
convertToFormat_helper(self, format: PySide2.QtGui.QImage.Format, flags: PySide2.QtCore.Qt.ImageConversionFlags) -> PySide2.QtGui.QImage convertToFormat_helper(self, format: PySide2.QtGui.QImage.Format, flags: PySide2.QtCore.Qt.ImageConversionFlags) -> PySide2.QtGui.QImage [extrait de convertToFormat_helper.__doc__]
convertToFormat_inplace(self, format: PySide2.QtGui.QImage.Format, flags: PySide2.QtCore.Qt.ImageConversionFlags) -> bool convertToFormat_inplace(self, format: PySide2.QtGui.QImage.Format, flags: PySide2.QtCore.Qt.ImageConversionFlags) -> bool [extrait de convertToFormat_inplace.__doc__]
copy copy(self, rect: PySide2.QtCore.QRect = Default(QRect)) -> PySide2.QtGui.QImage [extrait de copy.__doc__]
createAlphaMask(self, flags: PySide2.QtCore.Qt.ImageConversionFlags = PySide2.QtCore.Qt.ImageConversionFlag.AutoColor) -> PySide2.QtGui.QImage createAlphaMask(self, flags: PySide2.QtCore.Qt.ImageConversionFlags = PySide2.QtCore.Qt.ImageConversionFlag.AutoColor) -> PySide2.QtGui.QImage [extrait de createAlphaMask.__doc__]
createHeuristicMask(self, clipTight: bool = True) -> PySide2.QtGui.QImage createHeuristicMask(self, clipTight: bool = True) -> PySide2.QtGui.QImage [extrait de createHeuristicMask.__doc__]
createMaskFromColor(self, color: int, mode: PySide2.QtCore.Qt.MaskMode = PySide2.QtCore.Qt.MaskMode.MaskInColor) -> PySide2.QtGui.QImage createMaskFromColor(self, color: int, mode: PySide2.QtCore.Qt.MaskMode = PySide2.QtCore.Qt.MaskMode.MaskInColor) -> PySide2.QtGui.QImage [extrait de createMaskFromColor.__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__]
dotsPerMeterX(self) -> int dotsPerMeterX(self) -> int [extrait de dotsPerMeterX.__doc__]
dotsPerMeterY(self) -> int dotsPerMeterY(self) -> int [extrait de dotsPerMeterY.__doc__]
fill fill(self, color: PySide2.QtCore.Qt.GlobalColor) [extrait de fill.__doc__]
Format
format(self) -> PySide2.QtGui.QImage.Format format(self) -> PySide2.QtGui.QImage.Format [extrait de format.__doc__]
fromData(data: PySide2.QtCore.QByteArray, format: typing.Union[bytes, NoneType] = None) -> PySide2.QtGui.QImage fromData(data: PySide2.QtCore.QByteArray, format: typing.Union[bytes, NoneType] = None) -> PySide2.QtGui.QImage [extrait de fromData.__doc__]
hasAlphaChannel(self) -> bool hasAlphaChannel(self) -> bool [extrait de hasAlphaChannel.__doc__]
height(self) -> int height(self) -> int [extrait de height.__doc__]
InvertMode
invertPixels(self, mode: PySide2.QtGui.QImage.InvertMode = PySide2.QtGui.QImage.InvertMode.InvertRgb) invertPixels(self, mode: PySide2.QtGui.QImage.InvertMode = PySide2.QtGui.QImage.InvertMode.InvertRgb) [extrait de invertPixels.__doc__]
isGrayscale(self) -> bool isGrayscale(self) -> bool [extrait de isGrayscale.__doc__]
isNull(self) -> bool isNull(self) -> bool [extrait de isNull.__doc__]
load load(self, device: PySide2.QtCore.QIODevice, format: bytes) -> bool [extrait de load.__doc__]
loadFromData(self, data: PySide2.QtCore.QByteArray, aformat: typing.Union[bytes, NoneType] = None) -> bool loadFromData(self, data: PySide2.QtCore.QByteArray, aformat: typing.Union[bytes, NoneType] = None) -> bool [extrait de loadFromData.__doc__]
metric(self, metric: PySide2.QtGui.QPaintDevice.PaintDeviceMetric) -> int metric(self, metric: PySide2.QtGui.QPaintDevice.PaintDeviceMetric) -> int [extrait de metric.__doc__]
mirrored(self, horizontally: bool = False, vertically: bool = True) -> PySide2.QtGui.QImage mirrored(self, horizontally: bool = False, vertically: bool = True) -> PySide2.QtGui.QImage [extrait de mirrored.__doc__]
mirrored_helper(self, horizontal: bool, vertical: bool) -> PySide2.QtGui.QImage mirrored_helper(self, horizontal: bool, vertical: bool) -> PySide2.QtGui.QImage [extrait de mirrored_helper.__doc__]
mirrored_inplace(self, horizontal: bool, vertical: bool) mirrored_inplace(self, horizontal: bool, vertical: bool) [extrait de mirrored_inplace.__doc__]
offset(self) -> PySide2.QtCore.QPoint offset(self) -> PySide2.QtCore.QPoint [extrait de offset.__doc__]
paintEngine(self) -> PySide2.QtGui.QPaintEngine paintEngine(self) -> PySide2.QtGui.QPaintEngine [extrait de paintEngine.__doc__]
pixel pixel(self, pt: PySide2.QtCore.QPoint) -> int [extrait de pixel.__doc__]
pixelColor pixelColor(self, pt: PySide2.QtCore.QPoint) -> PySide2.QtGui.QColor [extrait de pixelColor.__doc__]
pixelFormat(self) -> PySide2.QtGui.QPixelFormat pixelFormat(self) -> PySide2.QtGui.QPixelFormat [extrait de pixelFormat.__doc__]
pixelIndex pixelIndex(self, pt: PySide2.QtCore.QPoint) -> int [extrait de pixelIndex.__doc__]
rect(self) -> PySide2.QtCore.QRect rect(self) -> PySide2.QtCore.QRect [extrait de rect.__doc__]
reinterpretAsFormat(self, f: PySide2.QtGui.QImage.Format) -> bool reinterpretAsFormat(self, f: PySide2.QtGui.QImage.Format) -> bool [extrait de reinterpretAsFormat.__doc__]
rgbSwapped(self) -> PySide2.QtGui.QImage rgbSwapped(self) -> PySide2.QtGui.QImage [extrait de rgbSwapped.__doc__]
rgbSwapped_helper(self) -> PySide2.QtGui.QImage rgbSwapped_helper(self) -> PySide2.QtGui.QImage [extrait de rgbSwapped_helper.__doc__]
rgbSwapped_inplace(self) rgbSwapped_inplace(self) [extrait de rgbSwapped_inplace.__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.QImage [extrait de scaled.__doc__]
scaledToHeight(self, h: int, mode: PySide2.QtCore.Qt.TransformationMode = PySide2.QtCore.Qt.TransformationMode.FastTransformation) -> PySide2.QtGui.QImage scaledToHeight(self, h: int, mode: PySide2.QtCore.Qt.TransformationMode = PySide2.QtCore.Qt.TransformationMode.FastTransformation) -> PySide2.QtGui.QImage [extrait de scaledToHeight.__doc__]
scaledToWidth(self, w: int, mode: PySide2.QtCore.Qt.TransformationMode = PySide2.QtCore.Qt.TransformationMode.FastTransformation) -> PySide2.QtGui.QImage scaledToWidth(self, w: int, mode: PySide2.QtCore.Qt.TransformationMode = PySide2.QtCore.Qt.TransformationMode.FastTransformation) -> PySide2.QtGui.QImage [extrait de scaledToWidth.__doc__]
scanLine(self, arg__1: int) -> bytes scanLine(self, arg__1: int) -> bytes [extrait de scanLine.__doc__]
setAlphaChannel(self, alphaChannel: PySide2.QtGui.QImage) setAlphaChannel(self, alphaChannel: PySide2.QtGui.QImage) [extrait de setAlphaChannel.__doc__]
setColor(self, i: int, c: int) setColor(self, i: int, c: int) [extrait de setColor.__doc__]
setColorCount(self, arg__1: int) setColorCount(self, arg__1: int) [extrait de setColorCount.__doc__]
setColorSpace(self, arg__1: PySide2.QtGui.QColorSpace) setColorSpace(self, arg__1: PySide2.QtGui.QColorSpace) [extrait de setColorSpace.__doc__]
setColorTable(self, colors: typing.List[int]) setColorTable(self, colors: typing.List[int]) [extrait de setColorTable.__doc__]
setDevicePixelRatio(self, scaleFactor: float) setDevicePixelRatio(self, scaleFactor: float) [extrait de setDevicePixelRatio.__doc__]
setDotsPerMeterX(self, arg__1: int) setDotsPerMeterX(self, arg__1: int) [extrait de setDotsPerMeterX.__doc__]
setDotsPerMeterY(self, arg__1: int) setDotsPerMeterY(self, arg__1: int) [extrait de setDotsPerMeterY.__doc__]
setOffset(self, arg__1: PySide2.QtCore.QPoint) setOffset(self, arg__1: PySide2.QtCore.QPoint) [extrait de setOffset.__doc__]
setPixel setPixel(self, pt: PySide2.QtCore.QPoint, index_or_rgb: int) [extrait de setPixel.__doc__]
setPixelColor setPixelColor(self, pt: PySide2.QtCore.QPoint, c: PySide2.QtGui.QColor) [extrait de setPixelColor.__doc__]
setText(self, key: str, value: str) setText(self, key: str, value: str) [extrait de setText.__doc__]
size(self) -> PySide2.QtCore.QSize size(self) -> PySide2.QtCore.QSize [extrait de size.__doc__]
sizeInBytes(self) -> int sizeInBytes(self) -> int [extrait de sizeInBytes.__doc__]
smoothScaled(self, w: int, h: int) -> PySide2.QtGui.QImage smoothScaled(self, w: int, h: int) -> PySide2.QtGui.QImage [extrait de smoothScaled.__doc__]
swap(self, other: PySide2.QtGui.QImage) swap(self, other: PySide2.QtGui.QImage) [extrait de swap.__doc__]
text(self, key: str = '') -> str text(self, key: str = '') -> str [extrait de text.__doc__]
textKeys(self) -> typing.List[str] textKeys(self) -> typing.List[str] [extrait de textKeys.__doc__]
toImageFormat(format: PySide2.QtGui.QPixelFormat) -> PySide2.QtGui.QImage.Format toImageFormat(format: PySide2.QtGui.QPixelFormat) -> PySide2.QtGui.QImage.Format [extrait de toImageFormat.__doc__]
toPixelFormat(format: PySide2.QtGui.QImage.Format) -> PySide2.QtGui.QPixelFormat toPixelFormat(format: PySide2.QtGui.QImage.Format) -> PySide2.QtGui.QPixelFormat [extrait de toPixelFormat.__doc__]
transformed transformed(self, matrix: PySide2.QtGui.QMatrix, mode: PySide2.QtCore.Qt.TransformationMode = PySide2.QtCore.Qt.TransformationMode.FastTransformation) -> PySide2.QtGui.QImage [extrait de transformed.__doc__]
trueMatrix trueMatrix(arg__1: PySide2.QtGui.QMatrix, w: int, h: int) -> PySide2.QtGui.QMatrix [extrait de trueMatrix.__doc__]
valid valid(self, pt: PySide2.QtCore.QPoint) -> bool [extrait de valid.__doc__]
width(self) -> int width(self) -> int [extrait de width.__doc__]

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

__init_subclass__, __subclasshook__, 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__