Graphical demo for the LPC4088 Experiment Base Board with one of the Display Expansion Kits. This program decodes decodes and shows two png images.
Graphics.h
00001 00002 #ifndef GRAPHICS_H 00003 #define GRAPHICS_H 00004 00005 class Graphics { 00006 public: 00007 00008 Graphics(uint16_t *pFrmBuf, uint16_t dispWidth, uint16_t dispHeight); 00009 00010 void setFrameBuffer( uint16_t *pFrmBuf ); 00011 void put_line(int32_t x1, int32_t y1, int32_t x2, int32_t y2, int16_t color); 00012 void put_circle( int32_t cx, int32_t cy, int16_t color, int32_t radius, int32_t Filled ); 00013 void put_dot( int32_t cx, int32_t cy, int16_t color ); 00014 00015 protected: 00016 uint16_t windowX; 00017 uint16_t windowY; 00018 uint16_t *pFrmBuf; 00019 00020 int32_t abs(int32_t v1) const; 00021 00022 virtual void plot4points( int32_t cx, int32_t cy, int32_t x, int32_t y, int16_t color, int32_t Filled ); 00023 void plot8points( int32_t cx, int32_t cy, int32_t x, int32_t y, int16_t color, int32_t Filled ); 00024 00025 }; 00026 00027 #endif 00028 00029
Generated on Fri Jul 15 2022 02:02:38 by 1.7.2