Home
·
All Classes
·
Modules
QImage Class Reference
[
QtGui
module]
Inherits
QPaintDevice
.
Types
enum
Format
{ Format_Invalid, Format_Mono, Format_MonoLSB, Format_Indexed8, ..., Format_ARGB4444_Premultiplied }
enum
InvertMode
{ InvertRgb, InvertRgba }
Methods
__init__
(
self
)
__init__
(
self
, QSize, Format)
__init__
(
self
, int, int, Format)
__init__
(
self
, str, int, int, Format)
__init__
(
self
, sip.voidptr, int, int, Format)
__init__
(
self
, str, int, int, int, Format)
__init__
(
self
, sip.voidptr, int, int, int, Format)
__init__
(
self
, list-of-str
xpm
)
__init__
(
self
, QString, str
format
= None)
__init__
(
self
, QImage)
__init__
(
self
, QVariant
variant
)
bool
allGray
(
self
)
QImage
alphaChannel
(
self
)
int
bitPlaneCount
(
self
)
sip.voidptr
bits
(
self
)
int
byteCount
(
self
)
int
bytesPerLine
(
self
)
int
cacheKey
(
self
)
int
color
(
self
, int)
int
colorCount
(
self
)
list-of-int
colorTable
(
self
)
QImage
convertToFormat
(
self
, Format, Qt.ImageConversionFlags
flags
= Qt.AutoColor)
QImage
convertToFormat
(
self
, Format, list-of-int, Qt.ImageConversionFlags
flags
= Qt.AutoColor)
QImage
copy
(
self
, QRect
rect
= QRect())
QImage
copy
(
self
, int, int, int, int)
QImage
createAlphaMask
(
self
, Qt.ImageConversionFlags
flags
= Qt.AutoColor)
QImage
createHeuristicMask
(
self
, bool
clipTight
= True)
QImage
createMaskFromColor
(
self
, int, Qt.MaskMode
mode
= Qt.MaskInColor)
int
depth
(
self
)
detach
(
self
)
int
devType
(
self
)
int
dotsPerMeterX
(
self
)
int
dotsPerMeterY
(
self
)
fill
(
self
, int)
Format
format
(
self
)
bool
hasAlphaChannel
(
self
)
int
height
(
self
)
invertPixels
(
self
, InvertMode
mode
= QImage.InvertRgb)
bool
isDetached
(
self
)
bool
isGrayscale
(
self
)
bool
isNull
(
self
)
bool
load
(
self
, QIODevice, str)
bool
load
(
self
, QString, str
format
= None)
bool
loadFromData
(
self
, str, str
format
= None)
bool
loadFromData
(
self
, QByteArray, str
format
= None)
int
metric
(
self
, QPaintDevice.PaintDeviceMetric)
QImage
mirrored
(
self
, bool
horizontal
= False, bool
vertical
= True)
int
numBytes
(
self
)
int
numColors
(
self
)
QPoint
offset
(
self
)
QPaintEngine
paintEngine
(
self
)
int
pixel
(
self
, QPoint)
int
pixel
(
self
, int, int)
int
pixelIndex
(
self
, QPoint)
int
pixelIndex
(
self
, int, int)
QRect
rect
(
self
)
QImage
rgbSwapped
(
self
)
bool
save
(
self
, QString, str
format
= None, int
quality
= -1)
bool
save
(
self
, QIODevice, str
format
= None, int
quality
= -1)
QImage
scaled
(
self
, int, int, Qt.AspectRatioMode
aspectRatioMode
= Qt.IgnoreAspectRatio, Qt.TransformationMode
transformMode
= Qt.FastTransformation)
QImage
scaled
(
self
, QSize, Qt.AspectRatioMode
aspectRatioMode
= Qt.IgnoreAspectRatio, Qt.TransformationMode
transformMode
= Qt.FastTransformation)
QImage
scaledToHeight
(
self
, int, Qt.TransformationMode
mode
= Qt.FastTransformation)
QImage
scaledToWidth
(
self
, int, Qt.TransformationMode
mode
= Qt.FastTransformation)
sip.voidptr
scanLine
(
self
, int)
int
serialNumber
(
self
)
setAlphaChannel
(
self
, QImage)
setColor
(
self
, int, int)
setColorCount
(
self
, int)
setColorTable
(
self
, list-of-int)
setDotsPerMeterX
(
self
, int)
setDotsPerMeterY
(
self
, int)
setNumColors
(
self
, int)
setOffset
(
self
, QPoint)
setPixel
(
self
, QPoint, int)
setPixel
(
self
, int, int, int)
setText
(
self
, QString, QString)
QSize
size
(
self
)
QString
text
(
self
, QString
key
= QString())
QStringList
textKeys
(
self
)
QImage
transformed
(
self
, QMatrix, Qt.TransformationMode
mode
= Qt.FastTransformation)
QImage
transformed
(
self
, QTransform, Qt.TransformationMode
mode
= Qt.FastTransformation)
bool
valid
(
self
, QPoint)
bool
valid
(
self
, int, int)
int
width
(
self
)
Static Methods
QImage
fromData
(str, str
format
= None)
QImage
fromData
(QByteArray, str
format
= None)
QMatrix
trueMatrix
(QMatrix, int, int)
QTransform
trueMatrix
(QTransform, int, int)
Special Methods
bool
__eq__
(
self
, QImage)
bool
__ne__
(
self
, QImage)
Detailed Description
Type Documentation
QImage.Format
QImage.InvertMode
Method Documentation
QImage.__init__ (
self
)
QImage.__init__ (
self
,
QSize
,
Format
)
QImage.__init__ (
self
, int, int,
Format
)
QImage.__init__ (
self
, str, int, int,
Format
)
QImage.__init__ (
self
, sip.voidptr, int, int,
Format
)
QImage.__init__ (
self
, str, int, int, int,
Format
)
QImage.__init__ (
self
, sip.voidptr, int, int, int,
Format
)
QImage.__init__ (
self
, list-of-str
xpm
)
QImage.__init__ (
self
, QString, str
format
= None)
QImage.__init__ (
self
,
QImage
)
QImage.__init__ (
self
, QVariant
variant
)
bool QImage.allGray (
self
)
QImage
QImage.alphaChannel (
self
)
int QImage.bitPlaneCount (
self
)
sip.voidptr QImage.bits (
self
)
int QImage.byteCount (
self
)
int QImage.bytesPerLine (
self
)
int QImage.cacheKey (
self
)
int QImage.color (
self
, int)
int QImage.colorCount (
self
)
list-of-int QImage.colorTable (
self
)
QImage
QImage.convertToFormat (
self
,
Format
,
Qt.ImageConversionFlags
flags
= Qt.AutoColor)
QImage
QImage.convertToFormat (
self
,
Format
, list-of-int,
Qt.ImageConversionFlags
flags
= Qt.AutoColor)
QImage
QImage.copy (
self
,
QRect
rect
= QRect())
QImage
QImage.copy (
self
, int, int, int, int)
QImage
QImage.createAlphaMask (
self
,
Qt.ImageConversionFlags
flags
= Qt.AutoColor)
QImage
QImage.createHeuristicMask (
self
, bool
clipTight
= True)
QImage
QImage.createMaskFromColor (
self
, int,
Qt.MaskMode
mode
= Qt.MaskInColor)
int QImage.depth (
self
)
QImage.detach (
self
)
int QImage.devType (
self
)
int QImage.dotsPerMeterX (
self
)
int QImage.dotsPerMeterY (
self
)
QImage.fill (
self
, int)
Format
QImage.format (
self
)
QImage
QImage.fromData (str, str
format
= None)
QImage
QImage.fromData (
QByteArray
, str
format
= None)
bool QImage.hasAlphaChannel (
self
)
int QImage.height (
self
)
QImage.invertPixels (
self
,
InvertMode
mode
= QImage.InvertRgb)
bool QImage.isDetached (
self
)
bool QImage.isGrayscale (
self
)
bool QImage.isNull (
self
)
bool QImage.load (
self
,
QIODevice
, str)
bool QImage.load (
self
, QString, str
format
= None)
bool QImage.loadFromData (
self
, str, str
format
= None)
bool QImage.loadFromData (
self
,
QByteArray
, str
format
= None)
int QImage.metric (
self
,
QPaintDevice.PaintDeviceMetric
)
QImage
QImage.mirrored (
self
, bool
horizontal
= False, bool
vertical
= True)
int QImage.numBytes (
self
)
int QImage.numColors (
self
)
QPoint
QImage.offset (
self
)
QPaintEngine
QImage.paintEngine (
self
)
int QImage.pixel (
self
,
QPoint
)
int QImage.pixel (
self
, int, int)
int QImage.pixelIndex (
self
,
QPoint
)
int QImage.pixelIndex (
self
, int, int)
QRect
QImage.rect (
self
)
QImage
QImage.rgbSwapped (
self
)
bool QImage.save (
self
, QString, str
format
= None, int
quality
= -1)
bool QImage.save (
self
,
QIODevice
, str
format
= None, int
quality
= -1)
QImage
QImage.scaled (
self
, int, int,
Qt.AspectRatioMode
aspectRatioMode
= Qt.IgnoreAspectRatio,
Qt.TransformationMode
transformMode
= Qt.FastTransformation)
QImage
QImage.scaled (
self
,
QSize
,
Qt.AspectRatioMode
aspectRatioMode
= Qt.IgnoreAspectRatio,
Qt.TransformationMode
transformMode
= Qt.FastTransformation)
QImage
QImage.scaledToHeight (
self
, int,
Qt.TransformationMode
mode
= Qt.FastTransformation)
QImage
QImage.scaledToWidth (
self
, int,
Qt.TransformationMode
mode
= Qt.FastTransformation)
sip.voidptr QImage.scanLine (
self
, int)
int QImage.serialNumber (
self
)
QImage.setAlphaChannel (
self
,
QImage
)
QImage.setColor (
self
, int, int)
QImage.setColorCount (
self
, int)
QImage.setColorTable (
self
, list-of-int)
QImage.setDotsPerMeterX (
self
, int)
QImage.setDotsPerMeterY (
self
, int)
QImage.setNumColors (
self
, int)
QImage.setOffset (
self
,
QPoint
)
QImage.setPixel (
self
,
QPoint
, int)
QImage.setPixel (
self
, int, int, int)
QImage.setText (
self
, QString, QString)
QSize
QImage.size (
self
)
QString QImage.text (
self
, QString
key
= QString())
QStringList QImage.textKeys (
self
)
QImage
QImage.transformed (
self
,
QMatrix
,
Qt.TransformationMode
mode
= Qt.FastTransformation)
QImage
QImage.transformed (
self
,
QTransform
,
Qt.TransformationMode
mode
= Qt.FastTransformation)
QMatrix
QImage.trueMatrix (
QMatrix
, int, int)
QTransform
QImage.trueMatrix (
QTransform
, int, int)
bool QImage.valid (
self
,
QPoint
)
bool QImage.valid (
self
, int, int)
int QImage.width (
self
)
bool QImage.__eq__ (
self
,
QImage
)
bool QImage.__ne__ (
self
,
QImage
)
PyQt 4.8 for X11
Copyright ©
Riverbank Computing Ltd
and
Nokia
2010
Qt 4.7.0