From e0139718bbe1317a46bf841870847159959840e5 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Wed, 27 May 2015 18:08:43 +0200 Subject: 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 --- src/gui/image/qimagereader.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui/image/qimagereader.h') 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 supportedSubTypes() const; -- cgit v1.2.3