RGB

See Also: Graphics Functions, B_From_RGB, G_From_RGB, R_From_RGB, RGB, Understanding RGB Colors

Purpose

Returns a RGB value for GDI functions from byte values representing Red, Green & Blue color intensity.

Return Type

Integer

Syntax

Use RGB.pkg

 

(RGB( {iRed}, {iGreen}, {iBlue} ))

Where:

Examples

Use RGB.pkg

 

Procedure OnClick

    Integer rgbColor

    Integer iRed iGreen iBlue

   

    Get Value of oRColor to iRed

    Get Value of oGColor to iGreen

    Get Value of oBColor to iBlue

   

    Move (RGB(iRed, iGreen, iBlue)) to rgbColor

   

    Set TextColor of oText to rgbColor

    Set Value     of oText to ("rgbColor = " + string(rgbColor))

End_Procedure