mirror of
https://github.com/zxing/zxing.git
synced 2024-11-13 06:24:06 -08:00
515f743dc0
git-svn-id: https://zxing.googlecode.com/svn/trunk@1332 59b500cc-1b3d-0410-9834-0bbf25fbcc57
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
|