00001
00002
00003
00004
00005
00006
00007
00008
00009 #ifndef zz_image_color_h
00010 #define zz_image_color_h
00011
00012 #include <zz_export.h>
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 class ZZ_API CzzImageColor
00028 {
00029 public:
00030
00031
00032
00033
00034
00035
00036
00037
00038 CzzImageColor( void );
00039
00040
00041
00042
00043
00044 CzzImageColor( int r, int g, int b );
00045
00046
00047
00048
00049
00050 CzzImageColor( const CzzImageColor& obj );
00051
00052
00053 const CzzImageColor& operator=( const CzzImageColor& obj );
00054
00055
00056 virtual ~CzzImageColor();
00057
00058
00059 int getRed( void ) const;
00060
00061
00062 int getGreen( void ) const;
00063
00064
00065 int getBlue( void ) const;
00066
00067
00068 static CzzImageColor white( void );
00069
00070
00071 static CzzImageColor black( void );
00072
00073
00074 static CzzImageColor blue( void );
00075
00076
00077 static CzzImageColor red( void );
00078
00079
00080 static CzzImageColor green( void );
00081
00082
00083 static CzzImageColor yellow( void );
00084
00085 private:
00086 int m_R;
00087 int m_G;
00088 int m_B;
00089 };
00090
00091 #endif // zz_image_color_h
00092
00093