diff options
author | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2015-05-27 18:08:43 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2015-06-22 12:22:37 +0000 |
commit | e0139718bbe1317a46bf841870847159959840e5 (patch) | |
tree | 4165dacff66ff9c0ae371eaafa396c8720c13762 /src/gui/image/qimagereader.h | |
parent | c29383769a7ce9e3c757f980bf856aa4d9caf887 (diff) |
Export gamma setting and metadata in QImageReader
The PNG image plugin has the capability of applying gamma correction
to read PNGs, but doesn't do so by default, and we export no way of
accessing this through the qimagereader API.
This patch adds the ability to read the PNG file gamma, and overriding
decoded gamma to get gamma correction.
Change-Id: Iaf9eaac0827516db6bc02247c58026270cd1f610
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/gui/image/qimagereader.h')
-rw-r--r-- | src/gui/image/qimagereader.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/image/qimagereader.h b/src/gui/image/qimagereader.h index 27a29bed49..6745c55b97 100644 --- a/src/gui/image/qimagereader.h +++ b/src/gui/image/qimagereader.h @@ -110,6 +110,9 @@ public: void setAutoTransform(bool enabled); bool autoTransform() const; + void setGamma(float gamma); + float gamma() const; + QByteArray subType() const; QList<QByteArray> supportedSubTypes() const; |