429
TIDE and Tibbo BASIC User Manual
©2000-2008 Tibbo Technology Inc.
Details
A valid font file must be selected before you can use the
,
methods. Naturally, the font file must be
present in your project for this to work (see how to
a font file). To obtain
correct offset, open the file using the
method, then read the offset
of this file from the
R/O property.
When the font file is successfully selected, the
and
R/O properties will be updated to reflect actual font
parameters.
.Setpixel Method
Function:
Directly writes pixel data for a single pixel into the
controller's memory.
Syntax:
lcd.setpixel(dt as word,x as word,y as word)
Returns:
---
See Also:
Working With Pixels and Colors
,
Par
t
Description
dt
Pixel data to write.
x
X coordinate of the pixel. Value range is 0 to
-1.
y
Y coordinate of the pixel. Value range is 0 to
-1.
Details
Interpretation of the dt argument depends on the selected controller/panel. S
election is made through the Customize Platform dialog, accessible through the
Project Settings dialog.
The dt argument is of word type, but only
lower bits of this
value will be relevant. All higher bits will be ignored.
For monochrome and grayscale controllers/panels (
= 0-
PL_LCD_PANELTYPE_GRAYSCALE), the value of the dt argument sets the
brightness of the pixel. For color panels/controllers (lcd.paneltype= 1-
PL_LCD_PANELTYPE_COLOR) the value is composed of three fields -- one for the
red, green, and blue "channels". Check
,
properties to see how the fields are combined into the dt word.
The display panel must be enabled (
= 1- YES) for this method to
work.
.Textalignment Property
Function:
Specifies the alignment for text output produced by the
method.
Type:
Enum (pl_lcd_text_alignment, byte)
425
426
420
128
379
378
418
419
395
393
432
421
414
424
427
420
415
416
426