ExtendedImage.h 828 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef _ExtendedImage_h_
  2. #define _ExtendedImage_h_
  3. class ExtendedImage
  4. {
  5. public:
  6. ExtendedImage();
  7. virtual ~ExtendedImage();
  8. bool Create( int width, int height, int bpp );
  9. void Destroy();
  10. bool IsNull();
  11. bool SetRaw( char* buffer, unsigned long n );
  12. char* GetBuffer();
  13. char* GetPixel( int x, int y );
  14. int GetWidth() { return m_width; }
  15. int GetHeight() { return m_height; }
  16. int GetBpp() { return m_bpp; }
  17. bool HasCalibration();
  18. void SetResolution( double resX, double resY );
  19. double GetResolutionX() { return m_resX; }
  20. double GetResolutionY() { return m_resY; }
  21. private:
  22. double m_resX;
  23. double m_resY;
  24. int m_width;
  25. int m_height;
  26. int m_bpp;
  27. char* m_buffer;
  28. };
  29. #endif