summaryrefslogtreecommitdiff
path: root/bitmap.h
diff options
context:
space:
mode:
authoranbr <vdr07@deltab.de>2010-04-29 20:16:56 +0200
committeranbr <vdr07@deltab.de>2010-04-29 20:16:56 +0200
commitabf620e610be57231b2fc0d3859581ba600662c0 (patch)
treec85b841a26dfb80866322c8ba482b0d57d964a0b /bitmap.h
downloadvdr-plugin-targavfd-abf620e610be57231b2fc0d3859581ba600662c0.tar.gz
vdr-plugin-targavfd-abf620e610be57231b2fc0d3859581ba600662c0.tar.bz2
initial import0.0.3
Diffstat (limited to 'bitmap.h')
-rw-r--r--bitmap.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/bitmap.h b/bitmap.h
new file mode 100644
index 0000000..6f4691e
--- /dev/null
+++ b/bitmap.h
@@ -0,0 +1,41 @@
+/*
+ * targavfd plugin for VDR (C++)
+ *
+ * (C) 2010 Andreas Brachold <vdr07 AT deltab de>
+ *
+ * This targavfd plugin is free software: you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as published
+ * by the Free Software Foundation, version 3 of the License.
+ *
+ * See the files README and COPYING for details.
+ *
+ */
+
+#ifndef __VFD_BITMAP_H___
+#define __VFD_BITMAP_H___
+
+class cVFDBitmap {
+ int height;
+ int width;
+ unsigned int bytesPerLine;
+ uchar *bitmap;
+protected:
+ cVFDBitmap();
+public:
+ cVFDBitmap( int w, int h );
+
+ virtual ~cVFDBitmap();
+ cVFDBitmap& operator = (const cVFDBitmap& x);
+ bool operator == (const cVFDBitmap& 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
+