diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2011-08-11 21:32:53 +0930 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2011-08-21 23:19:05 +0200 |
commit | 4f2d774826bf7bb7b3825e02c5ca4c2928643950 (patch) | |
tree | 3295cc52a48271739ed32a88bda1025bfee8125f /goo/PNGWriter.h | |
parent | 1091f47310bf0fc71bac5dd4ec81dad50b2f2537 (diff) |
png: add support for embedding ICC profile
Diffstat (limited to 'goo/PNGWriter.h')
-rw-r--r-- | goo/PNGWriter.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/goo/PNGWriter.h b/goo/PNGWriter.h index 9f13ca2f..1f0eee15 100644 --- a/goo/PNGWriter.h +++ b/goo/PNGWriter.h @@ -36,6 +36,10 @@ class PNGWriter : public ImgWriter PNGWriter(Format format = RGB); ~PNGWriter(); + + void setICCProfile(const char *name, unsigned char *data, int size); + void setSRGBProfile(); + bool init(FILE *f, int width, int height, int hDPI, int vDPI); @@ -48,6 +52,10 @@ class PNGWriter : public ImgWriter Format format; png_structp png_ptr; png_infop info_ptr; + unsigned char *icc_data; + int icc_data_size; + char *icc_name; + bool sRGB_profile; }; #endif |