00001 #ifndef _ICC_H_
00002 #define _ICC_H_
00003
00004 #include "GDom.h"
00005 #include "GVariant.h"
00006
00007 class GIccProfile : public GDom
00008 {
00009 class GIccProfilePrivate *d;
00010
00011 public:
00012 GIccProfile(char *file = 0);
00013 ~GIccProfile();
00014
00015
00016 bool CreateNamed(char *name);
00017 bool Open(char *file);
00018 bool Open(GStream *stream);
00019 bool Save(char *file);
00020 bool Save(GStream *stream);
00021
00022
00023 char *GetName();
00024 char *GetError();
00025
00026
00027 bool Convert(COLOUR *Out32, COLOUR In32, GIccProfile *Profile = 0);
00028 bool Convert(GSurface *Dest, GSurface *Src, GIccProfile *Profile = 0);
00029
00030
00031 bool GetVariant(const char *Name, GVariant &Value, char *Array = 0);
00032 };
00033
00034 #endif