405
TIDE and Tibbo BASIC User Manual
©2000-2008 Tibbo Technology Inc.
romfile.open("icon_strip.bmp")
lcd.bmp(romfile.offset,0,0,11,0,11,11)
'display the second icon (right
arrow)
Note that only 2-, 16-, and 256-color modes are currently supported and the lcd.
bmp will return 1- NG if you try to display any other type of BMP file. Compressed
BMP files will be rejected too.
The method takes into account the type of the currently selected controller/panel.
The method will check the values of
,
,
(explained in
) and produce the best output possible for the selected
display.
Improving Graphical Performance
Nobody likes sluggish products, and the way you work with your display can
greatly influence perceived performance of your product. We say "perceived"
because very often this has nothing to do with the actual speed at which your
device completes required operations.
Group display-related operations together
The most important aspect of your application's performance (related to the
display) is how fast the data on the display appears to have changed.
Interestingly, what matters most is not the total time it takes to prepare and show
the new data, but the "togetherness" at which all new displayed items pop up on
the screen.
Let's illustrate this point. Here are two code examples that do the same and take
roughly the same time to execute. We calculate and print two values. In the first
example, we calculate and print value 1, then calculate and print value 2:
424
414
427
420
415
393