diff options
author | aavit <qt-info@nokia.com> | 2010-03-04 12:34:27 (GMT) |
---|---|---|
committer | aavit <qt-info@nokia.com> | 2010-03-04 13:03:09 (GMT) |
commit | 7b923d14c0e8d8f84c71e8d636a0632f4566f00a (patch) | |
tree | af0244b1d039526749c39b4dcf565bbebbfa4e41 /src/gui/image/qimage.h | |
parent | e53480370409b96d24d3f53513e8b2019a398e70 (diff) | |
download | Qt-7b923d14c0e8d8f84c71e8d636a0632f4566f00a.zip Qt-7b923d14c0e8d8f84c71e8d636a0632f4566f00a.tar.gz Qt-7b923d14c0e8d8f84c71e8d636a0632f4566f00a.tar.bz2 |
Added QImage::bitPlaneCount().
When the image format contains unused bits (e.g. Format_RGB32),
depth() does not give the true number of bits of color information
per pixel. This new function does.
Task-number: QTBUG-7982
Reviewed-by: Trond
Diffstat (limited to 'src/gui/image/qimage.h')
-rw-r--r-- | src/gui/image/qimage.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/image/qimage.h b/src/gui/image/qimage.h index dd13782..896061f 100644 --- a/src/gui/image/qimage.h +++ b/src/gui/image/qimage.h @@ -169,6 +169,7 @@ public: QT_DEPRECATED int numColors() const; #endif int colorCount() const; + int bitPlaneCount() const; QRgb color(int i) const; void setColor(int i, QRgb c); |