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.
Bitmap4bpp.h
00001 #ifndef __BITMAP4BPP_H__ 00002 #define __BITMAP4BPP_H__ 00003 00004 class Bitmap4bpp 00005 { 00006 public: 00007 Bitmap4bpp(uint16_t width, uint16_t height); 00008 ~Bitmap4bpp(); 00009 00010 inline uint16_t getWidth() { return _width; } 00011 inline uint16_t getHeight() { return _height; } 00012 inline uint16_t getStride() { return _stride; } 00013 00014 inline uint8_t *getBitmapData() { return _pBitmapData; } 00015 00016 void clear(); 00017 void setPixel(int16_t x, int16_t y, uint16_t color); 00018 private: 00019 uint16_t _width; 00020 uint16_t _height; 00021 uint16_t _stride; 00022 uint8_t *_pBitmapData; 00023 }; 00024 00025 #endif //__BITMAP4BPP_H__
Generated on Tue Jul 12 2022 21:15:25 by
