23 #include "wxgis/display/display.h"
25 #define ChannelType unsigned char
38 wxGISColor(ChannelType red, ChannelType green, ChannelType blue, ChannelType alpha = wxALPHA_OPAQUE);
41 wxColour GetColour()
const;
43 double GetRed()
const;
44 double GetBlue()
const;
45 double GetGreen()
const;
46 double GetAlpha()
const;
47 ChannelType Red()
const;
48 ChannelType Blue()
const;
49 ChannelType Green()
const;
50 ChannelType Alpha()
const;
51 static wxGISColor MakeRandom(ChannelType low = 205);
52 void Set (ChannelType red, ChannelType green, ChannelType blue, ChannelType alpha = wxALPHA_OPAQUE);
53 virtual wxString GetAsString(
long nFlags = wxC2S_NAME|wxC2S_CSS_SYNTAX)
const;
54 virtual void SetFromString(
const wxString &sColorTxt);
55 virtual void SetAlpha(ChannelType alpha);
56 virtual void SetRed(ChannelType red);
57 virtual void SetGreen(ChannelType green);
58 virtual void SetBlue(ChannelType blue);
60 virtual void SetValues(ChannelType red, ChannelType green, ChannelType blue, ChannelType alpha);