RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
GraphUtil.WebColorStrToColor Function

Returns the TColor from a hex color string.

Pascal
function WebColorStrToColor(WebColor: string): TColor;
C++
TColor WebColorStrToColor(AnsiString WebColor);

WebColorStrToColor uses the standard color hexadecimal numbering to return a TColor.  

WebColor represents the color in hexadecimal format written in a string. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!