graphlcd-base/glcddrivers/image.h
author root@rika
Wed, 06 Feb 2008 17:32:55 +0000
changeset 4 df6a40031aa5
permissions -rw-r--r--
added graphlcd-base
root@4
     1
/*
root@4
     2
 * GraphLCD driver library
root@4
     3
 *
root@4
     4
 * image.h  -  Image output device
root@4
     5
 *             Output goes to a image file instead of LCD.
root@4
     6
 *
root@4
     7
 * This file is released under the GNU General Public License. Refer
root@4
     8
 * to the COPYING file distributed with this package.
root@4
     9
 *
root@4
    10
 * (c) 2004 Andreas Regel <andreas.regel AT powarman.de>
root@4
    11
 */
root@4
    12
root@4
    13
#ifndef _GLCDDRIVERS_IMAGE_H_
root@4
    14
#define _GLCDDRIVERS_IMAGE_H_
root@4
    15
root@4
    16
#include "driver.h"
root@4
    17
root@4
    18
root@4
    19
namespace GLCD
root@4
    20
{
root@4
    21
root@4
    22
class cDriverConfig;
root@4
    23
root@4
    24
class cDriverImage : public cDriver
root@4
    25
{
root@4
    26
private:
root@4
    27
    unsigned char * newLCD;
root@4
    28
    unsigned char * oldLCD;
root@4
    29
    cDriverConfig * config;
root@4
    30
    cDriverConfig * oldConfig;
root@4
    31
    int lineSize;
root@4
    32
    int counter;
root@4
    33
root@4
    34
    int CheckSetup();
root@4
    35
root@4
    36
public:
root@4
    37
    cDriverImage(cDriverConfig * config);
root@4
    38
    virtual ~cDriverImage();
root@4
    39
root@4
    40
    virtual int Init();
root@4
    41
    virtual int DeInit();
root@4
    42
root@4
    43
    virtual void Clear();
root@4
    44
    virtual void Set8Pixels(int x, int y, unsigned char data);
root@4
    45
    virtual void Refresh(bool refreshAll = false);
root@4
    46
};
root@4
    47
root@4
    48
} // end of namespace
root@4
    49
root@4
    50
#endif