How do I Convert ARGB value from string to color?
- by James
I am trying to use the MakeColor method in the GDIAPI unit but the conversion from int to byte is not returning me the correct value.
Example
var
argbStr: string;
A, R, G, B: Byte;
begin
argbStr := 'ffffcc88';
A := StrToInt('$' + Copy(AValue, 0, 2));
R := StrToInt('$' + Copy(AValue, 3, 2));
G := StrToInt('$' + Copy(AValue,…