summaryrefslogtreecommitdiffstats
path: root/src/gui/image/qimage.h
diff options
context:
space:
mode:
authoraavit <qt-info@nokia.com>2010-03-04 13:34:27 +0100
committeraavit <qt-info@nokia.com>2010-03-04 14:03:09 +0100
commit7b923d14c0e8d8f84c71e8d636a0632f4566f00a (patch)
treeaf0244b1d039526749c39b4dcf565bbebbfa4e41 /src/gui/image/qimage.h
parente53480370409b96d24d3f53513e8b2019a398e70 (diff)
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/image/qimage.h b/src/gui/image/qimage.h
index dd13782304..896061ffc0 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);