Chris Taylor / Mbed 2 deprecated RETRO-CityRally

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ImageFrame.h Source File

ImageFrame.h

00001 #ifndef __IMAGEFRAME_H__
00002 #define __IMAGEFRAME_H__
00003 
00004 class ImageFrame
00005 {
00006     public:
00007         ImageFrame(const Bitmap2bpp &bmp, uint8_t x, uint8_t y, uint8_t width, uint8_t height) :
00008             _bmp(bmp),
00009             _x(x),
00010             _y(y),
00011             _width(width),
00012             _height(height)            
00013         {            
00014         }
00015         
00016         inline const Bitmap2bpp& getBitmap() const { return _bmp; };
00017         inline uint8_t getX() const { return _x; }
00018         inline uint8_t getY() const { return _y; }
00019         inline uint8_t getWidth() const { return _width; }
00020         inline uint8_t getHeight() const { return _height; }
00021         
00022     private:
00023         const Bitmap2bpp &_bmp;
00024         uint8_t _x;
00025         uint8_t _y;
00026         uint8_t _width;
00027         uint8_t _height;
00028         
00029 };
00030 
00031 #endif //__IMAGEFRAME_H__
00032