/[projet1]/public/pc/tools/osdk/main/pictconv/includes/getpixel.h
Defence Force logotype

Contents of /public/pc/tools/osdk/main/pictconv/includes/getpixel.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 879 - (show annotations)
Tue Sep 25 23:37:04 2012 UTC (7 years, 4 months ago) by mmu_man
File MIME type: text/plain
File size: 758 byte(s)
Fix "no new line at end of file" warning.

1
2 #ifndef GET_PIXEL_H
3 #define GET_PIXEL_H
4
5
6 class RgbColor
7 {
8 public:
9 RgbColor() { m_red=0;m_green=0;m_blue=0;}
10 RgbColor(const RgbColor& rgb) { m_red=rgb.m_red;m_green=rgb.m_green;m_blue=rgb.m_blue;}
11 RgbColor(unsigned char red,unsigned char green,unsigned char blue) { m_red=red;m_green=green;m_blue=blue;}
12
13 bool operator< ( const RgbColor& rhs ) const { return (m_red<rhs.m_red) && (m_green<rhs.m_green) && (m_blue<rhs.m_blue); }
14
15 bool operator== ( const RgbColor& rhs ) const { return (m_red==rhs.m_red) && (m_green==rhs.m_green) && (m_blue==rhs.m_blue) ; }
16 bool operator!= ( const RgbColor& rhs ) const { return !(*this==rhs) ; }
17
18 public:
19 unsigned char m_red;
20 unsigned char m_green;
21 unsigned char m_blue;
22 };
23
24
25 #endif

  ViewVC Help
Powered by ViewVC 1.1.26