Promotic
WikipediaLinkedInYoutubeTwitterFacebook

ColorRgb - method of object Pm

Description:
Getting the color by entering the three numeric RGB components.
Syntax:
ColorRgb(nRed As Byte, nGreen As Byte, nBlue As Byte) As String
Calling:
sColor = Pm.ColorRgb(nRed, nGreen, nBlue)
Parameters:
nRed(Byte) Number between 0-255. Red component of the color.
nGreen(Byte) Number between 0-255. Green component of the color.
nBlue(Byte) Number between 0-255. Blue component of the color.
Return Values:
Returns the value of the color as RGB String in the form "#RRGGBB".
Note:
The method can also be called in the graphic item events for Web Panels.

The method is functional also in Macro expression $.expr.

Example:
Creating yellow color (string "#ffff00") with RGB components (255, 255, 0).
sColor = Pm.ColorRgb(255, 255, 0)
Navigation:
 
- Pm
 
- Abs
- ColorRgb
 
 
- Cos
- E
- Exp
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice