PbGlobal.RGB(int? red, int? green, int? blue) Method
.NET Standard 2.x
Calculates the int value that represents the color specified by numeric values for the red, green, and blue components of the color.
Namespace: PowerScript.Bridge
Assembly: PowerScript.Bridge.dll
Syntax
public static int? RGB(int? red, int? green, int? blue);
Parameters
red
System.Int32
The int value of the red component of the desired color, the value range is between 0 and 255.
green
System.Int32
The int value of the green component of the desired color, the value range is between 0 and 255.
blue
System.Int32
The int value of the blue component of the desired color, the value range is between 0 and 255.
Returns
System.Int32
Returns the int that represents the color created by combining the values specified in red, green, and blue. It will throw an exception, if any argument's value is out of the range (0 and 255). If an error occurs, RGB returns -1. If any argument's value is null, RGB returns null.
Examples
Coming soon.
Applies to
.NET Standard
2.x