Home
·
All Classes
·
Modules
QPixmap Class Reference
[
QtGui
module]
Inherits
QPaintDevice
.
Inherited by
QBitmap
.
Types
enum
ShareMode
{ ImplicitlyShared, ExplicitlyShared }
Methods
__init__
(
self
)
__init__
(
self
, int, int)
__init__
(
self
, QSize)
__init__
(
self
, QString, str
format
= None, Qt.ImageConversionFlags
flags
= Qt.AutoColor)
__init__
(
self
, list-of-str)
__init__
(
self
, QPixmap)
__init__
(
self
, QVariant
variant
)
QPixmap
alphaChannel
(
self
)
int
cacheKey
(
self
)
bool
convertFromImage
(
self
, QImage
img
, Qt.ImageConversionFlags
flags
= Qt.AutoColor)
QPixmap
copy
(
self
, QRect
rect
= QRect())
QPixmap
copy
(
self
, int, int, int, int)
QBitmap
createHeuristicMask
(
self
, bool
clipTight
= True)
QBitmap
createMaskFromColor
(
self
, QColor, Qt.MaskMode)
QBitmap
createMaskFromColor
(
self
, QColor)
int
depth
(
self
)
detach
(
self
)
int
devType
(
self
)
fill
(
self
, QColor
color
= Qt.white)
fill
(
self
, QWidget, QPoint)
fill
(
self
, QWidget, int, int)
int
handle
(
self
)
bool
hasAlpha
(
self
)
bool
hasAlphaChannel
(
self
)
int
height
(
self
)
bool
isNull
(
self
)
bool
isQBitmap
(
self
)
bool
load
(
self
, QString, str
format
= None, Qt.ImageConversionFlags
flags
= Qt.AutoColor)
bool
loadFromData
(
self
, str, str
format
= None, Qt.ImageConversionFlags
flags
= Qt.AutoColor)
bool
loadFromData
(
self
, QByteArray, str
format
= None, Qt.ImageConversionFlags
flags
= Qt.AutoColor)
QBitmap
mask
(
self
)
int
metric
(
self
, QPaintDevice.PaintDeviceMetric)
QPaintEngine
paintEngine
(
self
)
QRect
rect
(
self
)
bool
save
(
self
, QString, str
format
= None, int
quality
= -1)
bool
save
(
self
, QIODevice, str
format
= None, int
quality
= -1)
QPixmap
scaled
(
self
, int, int, Qt.AspectRatioMode
aspectRatioMode
= Qt.IgnoreAspectRatio, Qt.TransformationMode
transformMode
= Qt.FastTransformation)
QPixmap
scaled
(
self
, QSize, Qt.AspectRatioMode
aspectRatioMode
= Qt.IgnoreAspectRatio, Qt.TransformationMode
transformMode
= Qt.FastTransformation)
QPixmap
scaledToHeight
(
self
, int, Qt.TransformationMode
mode
= Qt.FastTransformation)
QPixmap
scaledToWidth
(
self
, int, Qt.TransformationMode
mode
= Qt.FastTransformation)
QRegion
exposed
scroll
(
self
, int, int, QRect)
QRegion
exposed
scroll
(
self
, int, int, int, int, int, int)
int
serialNumber
(
self
)
setAlphaChannel
(
self
, QPixmap)
setMask
(
self
, QBitmap)
QSize
size
(
self
)
QImage
toImage
(
self
)
QPixmap
transformed
(
self
, QMatrix, Qt.TransformationMode
mode
= Qt.FastTransformation)
QPixmap
transformed
(
self
, QTransform, Qt.TransformationMode
mode
= Qt.FastTransformation)
int
width
(
self
)
QX11Info
x11Info
(
self
)
int
x11PictureHandle
(
self
)
Static Methods
int
defaultDepth
()
QPixmap
fromImage
(QImage, Qt.ImageConversionFlags
flags
= Qt.AutoColor)
QPixmap
fromImageReader
(QImageReader
imageReader
, Qt.ImageConversionFlags
flags
= Qt.AutoColor)
QPixmap
fromX11Pixmap
(int, ShareMode
mode
= QPixmap.ImplicitlyShared)
QPixmap
grabWidget
(QWidget, QRect)
QPixmap
grabWidget
(QWidget, int
x
= 0, int
y
= 0, int
width
= -1, int
height
= -1)
QPixmap
grabWindow
(int, int
x
= 0, int
y
= 0, int
width
= -1, int
height
= -1)
QMatrix
trueMatrix
(QMatrix, int, int)
QTransform
trueMatrix
(QTransform, int, int)
Detailed Description
Type Documentation
QPixmap.ShareMode
Method Documentation
QPixmap.__init__ (
self
)
QPixmap.__init__ (
self
, int, int)
QPixmap.__init__ (
self
,
QSize
)
QPixmap.__init__ (
self
, QString, str
format
= None,
Qt.ImageConversionFlags
flags
= Qt.AutoColor)
QPixmap.__init__ (
self
, list-of-str)
QPixmap.__init__ (
self
,
QPixmap
)
QPixmap.__init__ (
self
, QVariant
variant
)
QPixmap
QPixmap.alphaChannel (
self
)
int QPixmap.cacheKey (
self
)
bool QPixmap.convertFromImage (
self
,
QImage
img
,
Qt.ImageConversionFlags
flags
= Qt.AutoColor)
QPixmap
QPixmap.copy (
self
,
QRect
rect
= QRect())
QPixmap
QPixmap.copy (
self
, int, int, int, int)
QBitmap
QPixmap.createHeuristicMask (
self
, bool
clipTight
= True)
QBitmap
QPixmap.createMaskFromColor (
self
,
QColor
,
Qt.MaskMode
)
QBitmap
QPixmap.createMaskFromColor (
self
,
QColor
)
int QPixmap.defaultDepth ()
int QPixmap.depth (
self
)
QPixmap.detach (
self
)
int QPixmap.devType (
self
)
QPixmap.fill (
self
,
QColor
color
= Qt.white)
QPixmap.fill (
self
,
QWidget
,
QPoint
)
QPixmap.fill (
self
,
QWidget
, int, int)
QPixmap
QPixmap.fromImage (
QImage
,
Qt.ImageConversionFlags
flags
= Qt.AutoColor)
QPixmap
QPixmap.fromImageReader (
QImageReader
imageReader
,
Qt.ImageConversionFlags
flags
= Qt.AutoColor)
QPixmap
QPixmap.fromX11Pixmap (int,
ShareMode
mode
= QPixmap.ImplicitlyShared)
QPixmap
QPixmap.grabWidget (
QWidget
,
QRect
)
QPixmap
QPixmap.grabWidget (
QWidget
, int
x
= 0, int
y
= 0, int
width
= -1, int
height
= -1)
QPixmap
QPixmap.grabWindow (int, int
x
= 0, int
y
= 0, int
width
= -1, int
height
= -1)
int QPixmap.handle (
self
)
bool QPixmap.hasAlpha (
self
)
bool QPixmap.hasAlphaChannel (
self
)
int QPixmap.height (
self
)
bool QPixmap.isNull (
self
)
bool QPixmap.isQBitmap (
self
)
bool QPixmap.load (
self
, QString, str
format
= None,
Qt.ImageConversionFlags
flags
= Qt.AutoColor)
bool QPixmap.loadFromData (
self
, str, str
format
= None,
Qt.ImageConversionFlags
flags
= Qt.AutoColor)
bool QPixmap.loadFromData (
self
,
QByteArray
, str
format
= None,
Qt.ImageConversionFlags
flags
= Qt.AutoColor)
QBitmap
QPixmap.mask (
self
)
int QPixmap.metric (
self
,
QPaintDevice.PaintDeviceMetric
)
QPaintEngine
QPixmap.paintEngine (
self
)
QRect
QPixmap.rect (
self
)
bool QPixmap.save (
self
, QString, str
format
= None, int
quality
= -1)
bool QPixmap.save (
self
,
QIODevice
, str
format
= None, int
quality
= -1)
QPixmap
QPixmap.scaled (
self
, int, int,
Qt.AspectRatioMode
aspectRatioMode
= Qt.IgnoreAspectRatio,
Qt.TransformationMode
transformMode
= Qt.FastTransformation)
QPixmap
QPixmap.scaled (
self
,
QSize
,
Qt.AspectRatioMode
aspectRatioMode
= Qt.IgnoreAspectRatio,
Qt.TransformationMode
transformMode
= Qt.FastTransformation)
QPixmap
QPixmap.scaledToHeight (
self
, int,
Qt.TransformationMode
mode
= Qt.FastTransformation)
QPixmap
QPixmap.scaledToWidth (
self
, int,
Qt.TransformationMode
mode
= Qt.FastTransformation)
QRegion
exposed
QPixmap.scroll (
self
, int, int,
QRect
)
QRegion
exposed
QPixmap.scroll (
self
, int, int, int, int, int, int)
int QPixmap.serialNumber (
self
)
QPixmap.setAlphaChannel (
self
,
QPixmap
)
QPixmap.setMask (
self
,
QBitmap
)
QSize
QPixmap.size (
self
)
QImage
QPixmap.toImage (
self
)
QPixmap
QPixmap.transformed (
self
,
QMatrix
,
Qt.TransformationMode
mode
= Qt.FastTransformation)
QPixmap
QPixmap.transformed (
self
,
QTransform
,
Qt.TransformationMode
mode
= Qt.FastTransformation)
QMatrix
QPixmap.trueMatrix (
QMatrix
, int, int)
QTransform
QPixmap.trueMatrix (
QTransform
, int, int)
int QPixmap.width (
self
)
QX11Info
QPixmap.x11Info (
self
)
int QPixmap.x11PictureHandle (
self
)
PyQt 4.8 for X11
Copyright ©
Riverbank Computing Ltd
and
Nokia
2010
Qt 4.7.0