Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RGB(r,g,b) == x
Message
From
27/11/2001 08:27:38
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00586236
Message ID:
00586238
Views:
12
Hy Alonso Look the RGBComp function in foxtools.fll where is the explanation

RGBComp( )
Returns the red, green, and blue components of a composite RGB color value.
Syntax
RGBComp( nRGBColor, @nRedVal, @nGreenVal, @nBlueVal )
nRGBColor
Specifies a composite RGB color value ranging from 0 to 16777215.
@nRedVal
Specifies a reference to a variable in which the function returns the intensity of the red color component of nRGBColor.
@nGreenVal
Specifies a reference to a variable in which the function returns the intensity of the green color component of nRGBColor.
@nBlueVal
Specifies a reference to a variable in which the function returns the intensity of the blue color component of nRGBColor.
Return Type
Logical

>Greetings my friends. :)
>
>One more of those tiny easy questions:
>
>?RGB(150,120,0) returns 30870. No problem.
>
>But, how can I get the RGB components from 30870?
>
>I want to do something like :
>
>x = Form.BackColor
>
>RedComponent = RED(x)
>GreenComponent = GREEN(x)
>BlueComponent = BLUE(x)
>
>Any help is welcome.
>
>TIA
>
>Alonso
Alexandre Palma
Senior Application Architect
Previous
Reply
Map
View

Click here to load this message in the networking platform