420
Platforms
©2000-2008 Tibbo Technology Inc.
.Getprintwidth Method
Function:
Returns the width, in pixels, of the text output that will be
produced if the same line is actually printed with the
method.
Syntax:
lcd.getprintwidth(byref str as string) as word
Returns:
Total width of text output in pixels.
See Also:
Par
t
Description
str
Text to estimate the output width for.
Details
This method does not produce any output on the display, it merely estimates the
width of the text if it was to be printed. Lcd.print also returns the width of the text
in pixels, but this data comes after the printing. Sometimes it is desirable to know
the output width for the line of text before printing it, and this method allows you
to do so.
The width calculation will be affected by the value of the
property.
.Greenbits R/O Property
Function:
A 16-bit value packing two 8-bit parameters: number of
"green" bits per pixel (high byte) and the position of the
least significant green bit within the color word (low
byte).
Type:
Word
Value Range:
Value depends on the currently selected controller/panel.
See Also:
Understanding Controller Properties
,
Details
The value of this property depends on the currently selected controller/panel. S
election is made through the Customize Platform dialog, accessible through the
Project Settings dialog. This property is only relevant for color panels (
= 1- PL_LCD_PANELTYPE_COLOR).
By taking the value of the high byte you can determine the number of the steps in
which the brightness of the green "channel" can be adjusted. For example, if the
high byte is equal to 5, then there are 32 levels for green.
This property also tells you the bit position and length of the green field in values
used by
,
, and
. If, for example, the
=&h0605, and lcd.greenbits=&h050B, then
you can reconstruct the composition of the red, green, and blue bits in a word: bit
425
397
430
393
395
424
419
414
429
427
415