CreateRGB(R: Integer; G: Integer; B: Integer);
CreateRGB(R: Integer; G: Integer; B: Integer);
R. Red color component.
G. Green color component.
B. Blue color component.
The CreateRGB constructor creates a new color in accordance with the specified values of red, green and blue components.
Function GetColorRGB(R: Integer; G: Integer; B: Integer): IGxColor;
Var
OutColor: IGxColor;
Begin
If (R >= 0) And (R <= 255) And
(G >= 0) And (G <= 255) And
(B >= 0) And (B <= 255) Then
OutColor := New GxColor.CreateRGB(R, G, B);
Return OutColor;
Else
Return Null;
End If;
End Function GetColorRGB;
This function returns the color created in accordance with the values of red, green and blue color components.
Imports Prognoz.Platform.Interop.Drawing;
Function GetColorRGB(R: integer; G: integer; B: integer): GxColor;
Var
OutColor: GxColor;
Begin
If (R >= 0) And (R <= 255) And
(G >= 0) And (G <= 255) And
(B >= 0) And (B <= 255) Then
OutColor := New GxColorClass_2();
OutColor.CreateRGB(R, G, B);
Else
Return Null
End If;
End Function;
This function returns the color created in accordance with the values of red, green and blue color components.
See also: