/// <summary>
/// 将ArcGIS Engine中的IRgbColor接口转换至.NET中的Color结构
/// </summary>
/// <param name="pRgbColor">IRgbColor</param>
/// <returns>.NET中的System.Drawing.Color结构表示ARGB颜色</returns>
public Color ConvertIRgbColorToColor(IRgbColor pRgbColor)
{
return ColorTranslator.FromOle(pRgbColor.RGB);
}
/// <summary>
/// 将.NET中的Color结构转换至于ArcGIS Engine中的IColor接口
/// </summary>
/// <param name="color">.NET中的System.Drawing.Color结构表示ARGB颜色</param>
/// <returns>IColor</returns>
public IColor ConvertColorToIColor(Color color)
{
IColor pColor = new RgbColorClass();
pColor.RGB = color.B * 65536 + color.G * 256 + color.R;
return pColor;
}