summaryrefslogtreecommitdiffstats
path: root/src/image.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/image.h')
-rw-r--r--src/image.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/image.h b/src/image.h
index 6946811..ee0dd9e 100644
--- a/src/image.h
+++ b/src/image.h
@@ -49,4 +49,21 @@ class Image
uchar *data;
};
+class ColoredImage
+{
+ public:
+ ColoredImage(int width,int height,
+ const uchar *greyLevels,const uchar *alphaLevels,
+ int saturation,int hue,int gamma);
+ ~ColoredImage();
+ bool save(const char *fileName);
+ static void hsl2rgb(double h,double s,double l,
+ double *pRed,double *pGreen,double *pBlue);
+ private:
+ int m_width;
+ int m_height;
+ uchar *m_data;
+ bool m_hasAlpha;
+};
+
#endif