/[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 1260 - (show annotations)
Sat Feb 14 20:26:49 2015 UTC (4 years, 7 months ago) by dbug
File MIME type: text/plain
File size: 793 byte(s)
PictConv 0.21
- Added support for 32bit picture, to handle things like masking/opacity in the picture formats
- The -a1 mode will generate bytes with null value for blocks of 6 pixels with transparent alpha values (only active in monochrome or AIC conversion modes)
- Added the -f7 conversion mode for Oric pictures using the AIC coloring method.

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 unsigned char m_alpha;
23 };
24
25
26 #endif

  ViewVC Help
Powered by ViewVC 1.1.26