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.
Diff: TinyBitmap.h
- Revision:
- 0:f068fae80257
- Child:
- 2:1cc49c9c552e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/TinyBitmap.h Wed Aug 02 09:13:11 2017 +0000
@@ -0,0 +1,32 @@
+#ifndef TINYBITMAP_H_
+#define TINYBITMAP_H_
+
+class TinyBitmap
+{
+private:
+ int _IMAGEWIDTH;
+ int _IMAGEHEIGHT;
+ int _COMMANDBYTES;
+ int _BITMAPLAYOUT;
+
+ char Bit0;
+ char Bit1;
+ char Bit2;
+ char Bit3;
+ char Bit4;
+ char Bit5;
+ char Bit6;
+ char Bit7;
+
+public:
+ TinyBitmap(int width, int height, int commandbytes = 0, int bitmaplayout = 0x00);
+
+ void DrawPixel(char *framebuffer, int x, int y);
+ void DrawLine(char *framebuffer, int x1, int y1, int x2, int y2);
+ void DrawCircle(char *framebuffer, int x, int y, int radius);
+ void DrawRectangle(char *framebuffer, int x1, int y1, int x2, int y2);
+ void DrawLineDirection(char *framebuffer, int x, int y, int degree, int lenght);
+ void DrawText(char *framebuffer, int x, int y, char *CharArray, bool UseLargeFont = false);
+ void ClearScreen(char *framebuffer);
+};
+#endif
\ No newline at end of file