UbiQ Scenario Manager User Manual
68
5.2.15
LoadBMP
Syntax
void LoadBMP(int nDIBID, int nStartX, int nStartY, int nWidth, int nHeight, string
sFilename)
Parameters
nDIBID: Specifies the display ID. Its value is from 0 to 32. There are some val-
ues for default function described as follows:
CLOCK_SHOW_ID: show the clock on the screen.
CLOCK_UNSHOW_ID: hide the clock on the screen.
SCREEN_REDRAW_ID: force the display redrawing.
nStartX: Specifies the beginning x-coordinate of display area.
nStartY: Specifies the beginning y-coordinate of display area.
nWidth: Specifies the width of display area.
nHeight: Specifies the height of display area.
sFilename: Specifies the bitmap filename. This file needs to be a bitmap or jpeg
file format. If the filename is beginning with °×\\°±, then the file will
be search from root path. Otherwise, the file will be search from bit-
map folder of current application path.
Description
This function will put the specified bitmap file stretched on the assigned display
area.
Example
// Show the clock on the screen
LoadBMP(CLOCK_SHOW_ID,0,0,240,320,"");
...
// Load the background bitmap from current bitmap folder on the screen
LoadBMP(0,0,0,240,320,"level2\\level2.jpg");
// Load help background to the display area (0,238),(218, 238+18)
LoadBMP(1,0,238,218,18,"level2\\help.jpg");
// Load the icon background to display area (0,256),(218,256+64)
LoadBMP(2,0,256,218,64,"level2\\icon_bg.jpg");
See Also
LoadBMPByValue
Содержание UbiQ
Страница 1: ...User Manual UbiQ Scenario Manager User Manual V1 03...
Страница 4: ...UbiQ Scenario Manager User Manual iv...
Страница 7: ...Chapter 1 1 Introduction...
Страница 13: ...Chapter 2 2 Getting Started...
Страница 37: ...Chapter 3 3 Tutorials...
Страница 47: ...Chapter 4 4 Basic of Smart C Script Language...
Страница 62: ...UbiQ Scenario Manager User Manual 56...
Страница 63: ...Chapter 5 5 Functions Reference...