00001 00002 #ifndef __XBITMAP_IMAGE_H__ 00003 #define __XBITMAP_IMAGE_H__ 00004 00005 #include "LgiLinux.h" 00006 00007 class XBitmapImage : public XObject 00008 { 00009 friend class XPainter; 00010 00011 XImage *Img; 00012 int Bits; 00013 00014 public: 00015 enum BlitOp 00016 { 00017 ColorOnly 00018 }; 00019 00020 XBitmapImage(); 00021 ~XBitmapImage(); 00022 00023 XImage *GetImage() { return Img; } 00024 00025 bool create(int x, int y, int bits); 00026 uchar *scanLine(int y); 00027 int bytesPerLine(); 00028 int getBits(); 00029 }; 00030 00031 typedef XBitmapImage *OsBitmap; 00032 00033 00034 #endif