diff options
author | andreas <andreas@deltab.de> | 2009-05-22 11:38:22 +0200 |
---|---|---|
committer | andreas <andreas@deltab.de> | 2009-05-22 11:38:22 +0200 |
commit | 54e2650e953c0725e5d14509f79cdd203d7d4db4 (patch) | |
tree | b1d55fe1977e032ad1b3f73a7502745454601463 /bitmap.h | |
download | vdr-plugin-imonlcd-54e2650e953c0725e5d14509f79cdd203d7d4db4.tar.gz vdr-plugin-imonlcd-54e2650e953c0725e5d14509f79cdd203d7d4db4.tar.bz2 |
initial import
Diffstat (limited to 'bitmap.h')
-rw-r--r-- | bitmap.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/bitmap.h b/bitmap.h new file mode 100644 index 0000000..a5e986c --- /dev/null +++ b/bitmap.h @@ -0,0 +1,37 @@ +/* + * iMON LCD plugin to VDR (C++) + * + * (C) 2009 Andreas Brachold <vdr07 AT deltab de> + * + * This code is distributed under the terms and conditions of the + * GNU GENERAL PUBLIC LICENSE. See the file COPYING for details. + * + */ + +#ifndef __IMON_BITMAP_H___ +#define __IMON_BITMAP_H___ + +class ciMonBitmap { + int height; + int width; + unsigned int bytesPerLine; + uchar *bitmap; +protected: + ciMonBitmap(); +public: + ciMonBitmap( int w, int h ); + + virtual ~ciMonBitmap(); + ciMonBitmap& operator = (const ciMonBitmap& x); + bool operator == (const ciMonBitmap& x) const; + + void clear(); + int Height() const { return height; } + int Width() const { return width; } + bool SetPixel(int x, int y); + + uchar * getBitmap() const { return bitmap; }; +}; + + +#endif |