Renesas GR-PEACH OpenCV Development / gr-peach-opencv-project-sd-card_update

Fork of gr-peach-opencv-project-sd-card by the do

Committer:
thedo
Date:
Fri Jul 21 01:26:02 2017 +0000
Revision:
166:240bc5a0f42a
gr-peach-opencv-project-sd-card

Who changed what in which revision?

UserRevisionLine numberNew contents of line
thedo 166:240bc5a0f42a 1 #ifndef M_GRAPHIC_HPP
thedo 166:240bc5a0f42a 2 #define M_GRAPHIC_HPP
thedo 166:240bc5a0f42a 3
thedo 166:240bc5a0f42a 4 #include "mbed.h"
thedo 166:240bc5a0f42a 5
thedo 166:240bc5a0f42a 6 #ifdef __cplusplus
thedo 166:240bc5a0f42a 7 extern "C" { /* Start of C Symbol */
thedo 166:240bc5a0f42a 8 #endif
thedo 166:240bc5a0f42a 9
thedo 166:240bc5a0f42a 10 class graphicFrameworkCanvas
thedo 166:240bc5a0f42a 11 {
thedo 166:240bc5a0f42a 12 private:
thedo 166:240bc5a0f42a 13 uint16_t mWidth;
thedo 166:240bc5a0f42a 14 uint16_t mHeight;
thedo 166:240bc5a0f42a 15 uint8_t mBpp;
thedo 166:240bc5a0f42a 16 uint8_t mDrawPoint; // Point per pixel.
thedo 166:240bc5a0f42a 17 uint8_t mSizeHeaderImg; // Bytes
thedo 166:240bc5a0f42a 18 uint8_t * mBufLcd;
thedo 166:240bc5a0f42a 19
thedo 166:240bc5a0f42a 20 void drawLineNormal(int x1, int y1, int x2, int y2, uint8_t* color);
thedo 166:240bc5a0f42a 21 void drawBresenham1(int x1, int y1, int x2, int y2, uint8_t* color);
thedo 166:240bc5a0f42a 22 void drawBresenham2(int x1, int y1, int x2, int y2, uint8_t* color);
thedo 166:240bc5a0f42a 23 void drawBresenham3(int x1, int y1, int x2, int y2, uint8_t* color);
thedo 166:240bc5a0f42a 24 void drawBresenham4(int x1, int y1, int x2, int y2, uint8_t* color);
thedo 166:240bc5a0f42a 25
thedo 166:240bc5a0f42a 26 public:
thedo 166:240bc5a0f42a 27 graphicFrameworkCanvas(uint8_t * bufDraw,uint16_t w,uint16_t h, int8_t bpp,
thedo 166:240bc5a0f42a 28 int8_t drawPoint, int8_t sizeHeader);
thedo 166:240bc5a0f42a 29 ~graphicFrameworkCanvas();
thedo 166:240bc5a0f42a 30 void draw_pixel(int x, int y,uint8_t *color);
thedo 166:240bc5a0f42a 31 void draw_pixel(uint8_t * p_buf, int id, int x, int y);
thedo 166:240bc5a0f42a 32 void draw_pixel(uint8_t * p_buf, int id, int x, int y,uint8_t *color);
thedo 166:240bc5a0f42a 33 void drawImage(uint8_t * _img, int _x, int _y);
thedo 166:240bc5a0f42a 34 void drawRect(int x, int y, int width, int height, uint8_t *color);
thedo 166:240bc5a0f42a 35 void drawLine(int x1, int y1, int x2, int y2, uint8_t* color);
thedo 166:240bc5a0f42a 36 void drawCircle(int x0,int y0, int radius, uint8_t* color);
thedo 166:240bc5a0f42a 37 }; // End class graphicFrameworkCanvas
thedo 166:240bc5a0f42a 38
thedo 166:240bc5a0f42a 39 #ifdef __cplusplus
thedo 166:240bc5a0f42a 40 } /* End of C Symbol */
thedo 166:240bc5a0f42a 41 #endif
thedo 166:240bc5a0f42a 42
thedo 166:240bc5a0f42a 43 #endif //M_GRAPHIC_HPP