diff options
author | Gunnar Sletta <gunnar@trolltech.com> | 2009-10-22 08:55:26 (GMT) |
---|---|---|
committer | Gunnar Sletta <gunnar@trolltech.com> | 2009-10-22 08:55:26 (GMT) |
commit | a7f377e8a20ee35d8bda55b2b13c9607f9ddfb3a (patch) | |
tree | e6c54f8ce9f05af8fca027f11073b30d1ad5e02d /src | |
parent | 03b19d156948e561c45724524467cc26bb7c4055 (diff) | |
download | Qt-a7f377e8a20ee35d8bda55b2b13c9607f9ddfb3a.zip Qt-a7f377e8a20ee35d8bda55b2b13c9607f9ddfb3a.tar.gz Qt-a7f377e8a20ee35d8bda55b2b13c9607f9ddfb3a.tar.bz2 |
updated documentation for QPixmap::fromImage()
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/image/qpixmap.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gui/image/qpixmap.cpp b/src/gui/image/qpixmap.cpp index f94552d..a3b7516 100644 --- a/src/gui/image/qpixmap.cpp +++ b/src/gui/image/qpixmap.cpp @@ -470,9 +470,11 @@ QPixmap::operator QVariant() const conversion fails. If the pixmap has 1-bit depth, the returned image will also be 1 - bit deep. If the pixmap has 2- to 8-bit depth, the returned image - has 8-bit depth. If the pixmap has greater than 8-bit depth, the - returned image has 32-bit depth. + bit deep. Images with more bits will be returned in a format + closely represents the underlying system. Usually this will be + QImage::Format_ARGB32_Premultiplied for pixmaps with an alpha and + QImage::Format_RGB32 or QImage::Format_RGB16 for pixmaps without + alpha. Note that for the moment, alpha masks on monochrome images are ignored. @@ -1704,8 +1706,8 @@ QPixmap QPixmap::transformed(const QMatrix &matrix, Qt::TransformationMode mode) In addition, on Symbian, the QPixmap class supports conversion to and from CFbsBitmap: the toSymbianCFbsBitmap() function creates - CFbsBitmap equivalent to the QPixmap, based on given mode and returns - a CFbsBitmap object. The fromSymbianCFbsBitmap() function returns a + CFbsBitmap equivalent to the QPixmap, based on given mode and returns + a CFbsBitmap object. The fromSymbianCFbsBitmap() function returns a QPixmap that is equivalent to the given bitmap and given mode. \section1 Pixmap Transformations |