www.icetips.com  Icetips Utilities Documentation 12/16/2014    

Utility Class: RGBtoColor

Previous  Top  Next  


Prototype: (Byte pRed, Byte pGreen, Byte pBlue),Long

 

pRedThe Red value
pGreenThe Green value
pBlueThe Blue value

 

ReturnsReturns Clarion color value.

 

This method takes a RGB value split into Red, Green and Blue and combines it into a regular Clarion color value.

 

Example:

ITU  ITUtilityClass

R   LONG

G   LONG

B   LONG

Col LONG

CODE

Col = COLOR:Red

ITU.ColorToRGB(Col, R, G, B)

IF ITU.RGBToColor(R, G, B) <> Col

   MESSAGE('Something is wrong, color is not returned correctly')

ELSE

   MESSAGE('Got the correct color back!')

END

 

 

See also:

 

 



Direct link to this page: http://www.icetips.com/manuals/utilities/rgbtocolor_utility.htm