inet/zz_image_color.h

Go to the documentation of this file.
00001 /* libzzinet
00002  *
00003  * This program is distributed under the GNU General Public License, version 2.
00004  * A copy of this license is included with this source.
00005  *
00006  * Copyright 2000-2006, Toni Thomsson <toni@tonjac.org> 
00007 */
00008 
00009 #ifndef zz_image_color_h
00010 #define zz_image_color_h
00011 
00012 #include <zz_export.h>
00013 
00014 /*
00015         Description:
00016         GIF färg
00017 
00018         Library:
00019         libgd.a libzzinet.a (HPUX) libgd.lib libzzinet.lib (win32)
00020 
00021         Platform:
00022     HPUX, win32
00023 
00024         Author:
00025         Toni Thomsson, toni@tonjac.org
00026 */
00027 class ZZ_API CzzImageColor
00028 {
00029 public:
00030 
00031         /*
00032                 Description:
00033                 Skapar en färg
00034 
00035                 Remarks:
00036                 Defaultkonstruktor = svart färg
00037         */
00038     CzzImageColor( void );
00039 
00040         /*
00041                 Remarks:
00042                 Skapar en färg mha. RGB
00043         */
00044     CzzImageColor( int r, int g, int b );
00045 
00046         /*
00047                 Remarks:
00048                 Kopieringskonstruktor
00049         */
00050     CzzImageColor( const CzzImageColor& obj );
00051     
00052         // Description: Tilldelningsoperator
00053     const CzzImageColor& operator=( const CzzImageColor& obj );
00054 
00055         // Description: Destruktor
00056     virtual ~CzzImageColor();
00057 
00058         // Description: Andel röd (RGB)
00059     int getRed( void ) const;
00060 
00061         // Description: Andel grön (RGB)
00062     int getGreen( void ) const;
00063 
00064         // Description: Andel blå (RGB)
00065     int getBlue( void ) const;
00066 
00067         // Description: vit färg
00068     static CzzImageColor white( void );
00069 
00070         // Description: svart färg
00071     static CzzImageColor black( void );
00072 
00073         // Description: blå färg
00074     static CzzImageColor blue( void );
00075 
00076         // Description: röd färg
00077     static CzzImageColor red( void );
00078 
00079         // Description: grön färg
00080     static CzzImageColor green( void );
00081 
00082         // Description: gul färg        
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 

Generated on Thu Sep 21 21:45:42 2006 for tonjac.org MINI/C++ library by  doxygen 1.4.6-NO