![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/4/44/44414c02-d064-4424-ae12-8acc58561d02/44414c02-d064-4424-ae12-8acc58561d02-bg94.png)
iVIEW-100 Series user’s Manual, 2006, v2.0 ----- 148
HLine()
Func.: Draw a horizontal line between (X1,Y) and (X2,Y).
Syntax:
int HLine(int X1, int X2, int Y, int Color);
Header: #include ”mmi100.h”
Description:
X=1~128, Y=1~64
(1,1) is at the top-left of LCD, (128,64) is at the right-bottom.
Color on: color=1, Color off: color=0.
Example: Please refer to “Pixel()” for example.
Line()
Func.: Draws a line between two points.
Syntax:
int Line(int X1,int Y1,int X2,int Y2,int Color);
Header: #include ”mmi100.h”
Description:
Draws a line between (X1,Y1) and (X2,Y2)
X=1~128, Y=1~64
(1,1) is at the top-left of LCD, (128,64) is at the right-bottom.
Color on: color=1, Color off: color=0.
Example: Please refer to “Pixel()” for example.
Box()
Func.: Draws a box between two points.
Syntax:
int Box(int X1, int Y1, int X2, int Y2, int Color);
Header: #include ”mmi100.h”
Description:
Draws a box between (X1,Y1) and (X2,Y2)
X=1~128, Y=1~64
(1,1) is at the top-left of LCD, (128,64) is at the right-bottom.
Color on: color=1, Color off: color=0.
Example: Please refer to “Pixel()” for example.
BmpShowAt()
Func.: Give a beginning point (X,Y)
& a BMP filename to show the
BMP picture on LCD
Syntax:
int BmpShowAt(int X, int Y, char *fname ,int Color);
Header: #include ”mmi100.h”
Description:
X=1~128, Y=1~64
(1,1) is at the top-left of LCD, (128,64) is at the right-bottom.
Color on: color=1, Color off: color=0.
fname: BMP picture file name, not longer than 8 characters
Picture: Bitmap file, black & white, pixel: 128x64 max
User has
to download all the program file & BMP file(s) to
iVIEW-100.
Example: Please refer to “Pixel()” for example.