summaryrefslogtreecommitdiff
path: root/bitmap.h
diff options
context:
space:
mode:
authoranbr <vdr07@deltab.de>2010-10-31 10:19:39 +0100
committeranbr <vdr07@deltab.de>2010-10-31 10:19:39 +0100
commit25177cb4765a03da7fab10c500097910e13924e6 (patch)
tree488e54bdf7f851dcddf44e05bebc4cc48130b376 /bitmap.h
parent16745cec0de781245650aa6332c97ae9a8db8644 (diff)
downloadvdr-plugin-targavfd-25177cb4765a03da7fab10c500097910e13924e6.tar.gz
vdr-plugin-targavfd-25177cb4765a03da7fab10c500097910e13924e6.tar.bz2
Support spectrum analyzer visualization (need span-plugin)0.0.6
Diffstat (limited to 'bitmap.h')
-rw-r--r--bitmap.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/bitmap.h b/bitmap.h
index 6f4691e..e39d199 100644
--- a/bitmap.h
+++ b/bitmap.h
@@ -21,8 +21,17 @@ class cVFDBitmap {
uchar *bitmap;
protected:
cVFDBitmap();
+
+ inline void sort(int& x,int& y) {
+ if(x<y) return;
+ int t = x;
+ x = y;
+ y = t;
+ };
+ bool HLine(int x1, int y, int x2);
+ bool VLine(int x, int y1, int y2);
public:
- cVFDBitmap( int w, int h );
+ cVFDBitmap(int w,int h);
virtual ~cVFDBitmap();
cVFDBitmap& operator = (const cVFDBitmap& x);
@@ -31,7 +40,9 @@ public:
void clear();
int Height() const { return height; }
int Width() const { return width; }
+
bool SetPixel(int x, int y);
+ bool Rectangle(int x1, int y1, int x2, int y2, bool filled);
uchar * getBitmap() const { return bitmap; };
};