mirror of
https://github.com/zxing/zxing.git
synced 2024-11-11 05:24:06 -08:00
32 lines
565 B
C
32 lines
565 B
C
|
#ifndef CAMERAIMAGE_H
|
||
|
#define CAMERAIMAGE_H
|
||
|
|
||
|
#include <zxing/LuminanceSource.h>
|
||
|
#include <string>
|
||
|
#include <FBS.H>
|
||
|
|
||
|
using namespace zxing;
|
||
|
using namespace std;
|
||
|
|
||
|
class CameraImage : public LuminanceSource
|
||
|
{
|
||
|
public:
|
||
|
CameraImage();
|
||
|
CameraImage(CameraImage& otherInstance);
|
||
|
~CameraImage();
|
||
|
|
||
|
int getWidth();
|
||
|
int getHeight();
|
||
|
|
||
|
unsigned char getPixel(int x, int y);
|
||
|
|
||
|
void setImage(CFbsBitmap* newImage);
|
||
|
|
||
|
CFbsBitmap* getImage();
|
||
|
|
||
|
private:
|
||
|
CFbsBitmap* image;
|
||
|
};
|
||
|
|
||
|
#endif //CAMERAIMAGE_H
|