#ifndef CAMERAIMAGE_H #define CAMERAIMAGE_H #include #include #include 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