2010-05-03 17:24:11 -07:00
|
|
|
#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();
|
|
|
|
|
2010-07-14 02:32:32 -07:00
|
|
|
int getWidth() const;
|
|
|
|
int getHeight() const;
|
2010-05-03 17:24:11 -07:00
|
|
|
|
2010-07-14 02:32:32 -07:00
|
|
|
unsigned char getPixel(int x, int y) const;
|
2010-05-03 17:24:11 -07:00
|
|
|
|
|
|
|
void setImage(CFbsBitmap* newImage);
|
|
|
|
|
|
|
|
CFbsBitmap* getImage();
|
|
|
|
|
|
|
|
private:
|
|
|
|
CFbsBitmap* image;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //CAMERAIMAGE_H
|