Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of RA8875 by
Diff: GraphicsDisplay.h
- Revision:
- 31:c72e12cd5c67
- Parent:
- 29:422616aa04bd
- Child:
- 32:0e4f2ae512e2
--- a/GraphicsDisplay.h Sun Jan 19 04:42:25 2014 +0000 +++ b/GraphicsDisplay.h Mon Jan 20 19:19:48 2014 +0000 @@ -27,10 +27,11 @@ virtual int height() = 0; virtual void window(unsigned int x,unsigned int y,unsigned int w,unsigned int h); - virtual void putp(int colour); + virtual void WindowMax(void); + virtual void putp(color_t colour); virtual RetCode_t cls(); - virtual void fill(int x, int y, int w, int h, int colour); + virtual void fill(int x, int y, int w, int h, color_t colour); virtual void blit(int x, int y, int w, int h, const int * colour); virtual int blitbit(int x, int y, int w, int h, const char * colour); @@ -50,6 +51,22 @@ /// virtual int fontblit(int x, int y, const unsigned char * fontTable, const unsigned char * fontChar); + /// This method reads a disk file that is in bitmap format and + /// puts it on the screen. + /// + /// @note This only reads 16-bit bitmap format. + /// @note This is a slow operation, partially due to the use of + /// the local file system, and partially because bmp files + /// are stored from the bottom up, and the memory is written + /// from the top down. + /// + /// @param x is the horizontal pixel coordinate + /// @param y is the vertical pixel coordinate + /// @param Name_BMP is the filename on the local file system. + /// @returns success or error code. + /// + RetCode_t BMP_16(unsigned int x, unsigned int y, const char *Name_BMP); + /// prints one character at the specified coordinates. /// /// This will print the character at the specified pixel coordinates.