14 #include <tqdatastream.h>
21 void kimgio_pcx_read( TQImageIO * );
22 void kimgio_pcx_write( TQImageIO * );
30 RGB(
const TQRgb color )
47 void setColor(
int i,
const TQRgb color )
49 rgb[ i ] = RGB( color );
52 TQRgb color(
int i )
const
54 return tqRgb( rgb[ i ].r, rgb[ i ].g, rgb[ i ].b );
65 inline int width()
const {
return ( XMax-XMin ) + 1; }
66 inline int height()
const {
return ( YMax-YMin ) + 1; }
67 inline bool isCompressed()
const {
return ( Encoding==1 ); }
69 TQ_UINT8 Manufacturer;
92 TQ_UINT16 BytesPerLine;
95 TQ_UINT16 PaletteInfo;
97 TQ_UINT16 HScreenSize;
99 TQ_UINT16 VScreenSize;