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.
TinyBitmap.h
- Committer:
- glx
- Date:
- 2017-08-02
- Revision:
- 0:f068fae80257
- Child:
- 2:1cc49c9c552e
File content as of revision 0:f068fae80257:
#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