1 public static int CSharpColorToDelphiColor(int csharpColor) 2 { 3 //去掉透明度 4 int iColor = Color.FromArgb(0, Color.FromArgb(csharpColor)).ToArgb(); 5 //转换颜色位置 6 return (iColor >> 16) + (iColor & 0x00FF00) + ((iColor & 0x0000FF) << 16); 7 }