Mikroelektronika MIKROE-442 Datenbogen
![Mikroelektronika](https://files.manualsbrain.com/attachments/e0529b3b58069a916ad7bb89f7e9f5f0eda73421/common/fit/150/50/1b07b99aa3112e022a916b06db07f1f4f211e91d41878452d87c7638b1bf/brand_logo.gif)
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
605
TFT_RGBToColor16bit
TFT_Color16bitToRGB
Prototype
sub function TFT_RGBToColor16bit(dim rgb_red, rgb_green, rgb_blue as byte)
as word
Returns
Returns a color value in the following bit-order : 5 bits red, 6 bits green and 5 bits blue color.
Description Converts 5:6:5 RGB format into true color format.
Parameters:
-
rgb_red
: red component of the image.
-
rgb_green
: green component of the image.
-
rgb_blue
: blue component of the image.
Requires
TFT module needs to be initialized. See the TFT_Init routine.
Example
color16 = TFT_Image_Jpeg(150, 193, 65)
Prototype
sub procedure TFT_Color16bitToRGB(dim color as word, dim rgb_red, rgb_green,
rgb_blue as ^byte)
Returns
Nothing.
Description Converts true color into 5:6:5 RGB format.
Parameters:
-
color
: true color to be converted.
-
rgb_red
: red component of the input color.
-
rgb_green
: green component of the input color.
-
rgb_blue
: blue component of the input color.
Requires
TFT module needs to be initialized. See the TFT_Init routine.
Example
TFT_Color16bitToRGB(start_color, @red_start, @green_start, @blue_start)