.paneltype R/O Property
Function: |
Returns the type of the currently selected controller/panel. |
Type: |
Enum (pl_lcd_paneltype, byte) |
Value Range: |
0 — PL_LCD_PANELTYPE_GRAYSCALE: This is a monochrome or grayscale panel/controller. 1 — PL_LCD_PANELTYPE_COLOR: This is a color panel/controller. |
See Also: |
Understanding Controller Properties, Working With Pixels and Colors |
Details
Controller/panel selection is made through the Customize Project dialog, accessible through the Project Settings dialog.
Monochrome panels/controllers only allow you to turn pixels on and off. Grayscale panels/controllers allow you to set the brightness of pixels in steps. The number of available steps is defined by the number of bits assigned to each pixel (see lcd.bitsperpixel property). Finally, color panels/controllers allow you to set the brightness separately for the red, green, and blue components of each pixel. The lcd.redbits, lcd.greenbits, and lcd.bluebits read-only properties will tell you how many bits there are for each color "channel."
Panel/controller type affects how lcd.forecolor, lcd.backcolor, and lcd.setpixel are interpreted. Also, the output produced by lcd.bmp is affected by this property.