ColorToTriple
function ColorToTriple(Color:TColor):TRGBTriple; type Rec=Record Case TColor of 1:( ColorValue:TColor ); 2:(Bytes: array [0..3] of Byte); end; var Col:Rec; begin Col.ColorValue:= Color; Result.rgbtRed :=Col.Bytes[0]; Result.rgbtGreen :=Col.Bytes[1]; Result.rgbtBlue :=Col.Bytes[2]; end ;