private static IFillSymbol GetCircleSymbol(Color lineColor, double lineWidth) { IFillSymbol circle = new SimpleFillSymbolClass(); ILineSymbol line = new SimpleLineSymbolClass(); line.Color = EsriColor(lineColor); line.Width = lineWidth; circle.Outline = line; IColor fill = new GrayColorClass(); fill.Transparency = 0; circle.Color = fill; return(circle); }
public IGrayColor GetGrayColor(int iLevel, bool bUseWinDithering) { try { IGrayColor color = null; color = new GrayColorClass(); iLevel = this.CheckNumValueRegion(iLevel, 0, 0xff); color.Level = iLevel; color.UseWindowsDithering = bUseWinDithering; return(color); } catch (Exception exception) { this.mErrOpt.ErrorOperate(this.mSubSysName, "FunFactory.ColorFun", "GetGrayColor", exception.GetHashCode().ToString(), exception.Source, exception.Message, "", "", ""); return(null); } }