#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