summaryrefslogtreecommitdiff
path: root/bitmap.h
blob: a5e986cb189189e4fc38ab20a4b5eacf228d8945 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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