RGBToScreen |
Top Previous Next |
Syntax UINT = RGBToScreen(col as UINT) Description Converts an RGB color to the format used by the currently open screen. Parameters col - Color to convert Return value The color in the correct pixel format to be directly written to memory. Remarks Used for direct memory access. When storing a color directly into buffer memory it must be converted to the correct pixel format first. For 8 bit screens this function is not necessary. See Also: GETBUFFERPOINTER, GETBUFFERPITCH Example usage DEF buffer as POINTER |