Knowledgebase:
RGBColor
Posted by Mohammad Rahhal, Last modified by BahaaAldeen Al Momani on 31 August 2016 09:42 AM

Syntax

Public Function RGBColor(Red As Integer, Green As Integer, Blue As Integer) As Long

 

This function returns a value of type long representing an RGB color value from a set of red, green and blue color components.

Parameters

Key Description
Red Integer in the range 0-255 , inclusive , that represents the intensity of red component of the color.
Green Integer in the range 0-255 , inclusive , that represents the intensity of Green  component of the color.
Blue Integer in the range 0-255 , inclusive , that represents the intensity of Blue component of the color.

Return value

Returns a long value representing an RGB color.

Exceptions

Exception type Condition
ArgumentsException If green , red , blue value outside of 0 and 255

Sample

 Public Sub main ()
 AlertMessage RGBColor (255,255,255) 
 End sub


See Also


Back to VTL Client Script Index

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).

Help Desk Software by Hybrid Solutions