
iVIEW-100 Series user’s Manual, 2006, v2.0 ----- 92
Step 2: Write a program to call the BMP files.
The user function to call BMP file is:
BmpShowAt(int X, int Y, “BMP_File_Name.bmp”, color);
Please refer to ‘Appendix A.2.2 Type2: Draw & BMP picture (pixel)’
for detail usage.
Compile and link your program to generate the execution file (.exe).
Ex: Loclang.c (The loclang.exe is in the folder ‘Loclang’ of CD)
#include <iVIEW.H>
#include <mmi100.H>
void main()
{
InitLib();
InitLCD();
TextOutAt(2,1, "LOCAL LANGUAGE");
UnderLine(2,1,14,1);
BmpShowAt(8,10,"bmpch1.bmp",1); /*call Tranditional Chinese BMP file*/
BmpShowAt(8,23,"bmprus.bmp",1); /*call Russian text BMP file*/
BmpShowAt(8,35,"bmpkor.bmp",1); /*call Korean text BMP file*/
BmpShowAt(8,48,"bmpspa.bmp",1); /*call Spanish text BMP file*/
BmpShowAt(64,10,"bmpch2.bmp",1); /*call Simplified Chinese BMP file*/
BmpShowAt(64,23,"bmpger.bmp",1); /*call German text BMP file*/
BmpShowAt(64,35,"bmptm1.bmp",1); /*call Thai text BMP file*/
BmpShowAt(64,48,"bmpfre.bmp",1); /*call French text BMP file*/
Getch();
ClrScrn();
CloseLCD();
}