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