|
RGB24toRGB16 | ||
16BitRgbColour = RGB24toRGB16(Rgb) | ||
Parameters: Rgb = The 24 Bit RGB colour you want to convert |
||
Returns: 16BitRgbColour = The 16 bit RGB colour in 565 format |
||
The RGB24toRGB16 function will covert a 24bit RGB colour value to a 16bit RGB colour value. FACTS: * The input colour must be in 24 or 32bit the form. $--RRGGBB * The function will convert the colour to a 16bit (rrrrrggggggbbbbb 565) format. * Converting between 24bit and 16Bit means some colour information is lost such as the lower bits of R,G,B and all of the alpha channel information. Mini Tutorial: Show some examples
This example would output.
|
Related Info: | ARGB | RGB | Rgb15toRgb24 | Rgb16toRgb24 | Rgb24toRgb15 | RGBA | RGBB | RGBG | RGBR : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |