
PT-20 Programming Guide
Fill a white rectangular area on the LCD display.
void fill_rect(int left, int top, int width, int height);
The fill_rect function fills a rectangular area white on the LCD display
whose top left position and size are specified by left, top, width, and
height. The cursor position is not affected after the operation.Several
introduces the argument as follows:
Fill form the start point of X-axis.
Fill form the start point of Y-axis.
Fill the width form the start point.
Fill the high form the start point.
Fill a user define color rectangular area on the LCD display.
void fill_rect_color(int left, int top, int width, int height, int color);
fill_rect_color(10,5,30,10,COLOR_RED);
The fill_rect_ color function fills a rectangular area for user define on the
LCD display whose top left position and size are specified by left, top,
width, and height. The cursor position is not affected after the
operation.Several introduces the argument as follows:
Fill form the start point of X-axis.
Fill form the start point of Y-axis.
Fill the width form the start point.
Fill the high form the start point.
Get current cursor status.
if (Get_Cursor( ) ==0) _puts(“Cursor Off”);
The Get_Cursor function checks if the cursor is visible or not.
Komentarze do niniejszej Instrukcji