416
Platforms
©2000-2008 Tibbo Technology Inc.
y
Y coordinate of the top-left point of the image position on the screen.
Value range is 0 to
-1.
x_o
ffse
t
Horizontal offset within the BMP file marking the top-left corner of the
image portion to be displayed.
y_o
ffse
t
Vertical offset within the BMP file marking the top-left corner of the
image portion to be displayed.
ma
xwi
dth
Maximum width of the image portion to be displayed. Actual width of the
output will be defined by the total width of the image and specified
x_offset.
ma
xhe
ight
Maximum height of the image portion to be displayed. Actual height of
the output will be defined by the total height of the image and specified
y_offset.
Details
To obtain the offset, open the BMP file with
, then read the offset of
this file from the
R/O property. Naturally, the BMP file must be
present in your project for this to work (see how to
a file).
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
(selection is made through the Customize Platform dialog, accessible through the
Project Settings dialog). It will check the values of
,
,
and produce
the best output possible for the selected display.
X_offset, y_offset, maxwidth, and maxheight arguments allow you to display only
a portion of the BMP image. This way it is possible to scroll around a large image
that does not fit on the screen. Another use is to combine several separate images
into a single file and display selected portions. This improves efficiency because
needs only be done once.
.Enabled Property
Function:
Specifies whether the display panel is enabled.
Type:
Enum (no_yes, byte)
Value Range:
0- NO: Disabled (default).
1- YES: Enabled.
See Also:
Preparing the Display for Operation
Details
Several properties --
,
,
-- can only be changed when the display panel is disabled.
When you set this property to 1- YES, the controller of the panel is initialized and
421
379
378
128
424
414
427
420
415
379
395
422
432
421
422
428