public void xr_wy() { C_S_R csr = new C_S_R(mapControl); ILayer player = C_S_R.getGeoLayer("Export_Output"); IRgbColor prgbcolor = C_S_R.getRGB(255, 0, 0); ISymbol psymbol = C_S_R.GetSymbolFromLayer(player); IColor pcolor = prgbcolor as IColor; bool bres = C_S_R.RenderSimply(player, pcolor); if (bres) { mapControl.ActiveView.ContentsChanged(); mapControl.ActiveView.Refresh(); btn_render.Enabled = false; } else { MessageBox.Show("渲染失败"); } }
public void add_rr() { ITextElement textElement; ITextSymbol textSymbol; IColor color; activeView = pageLayoutControl.PageLayout as IActiveView; envelope = new Envelope() as IEnvelope; envelope.PutCoords(7, 20, 15, 30); textElement = new TextElement() as ITextElement; element = textElement as IElement; element.Geometry = envelope; textElement.Text = "实验五地图"; textSymbol = new TextSymbol(); color = C_S_R.getRGB(0, 0, 0); textSymbol.Color = color; textSymbol.Size = 30; textElement.Symbol = textSymbol; graphicsContainer = activeView as IGraphicsContainer; graphicsContainer.AddElement(element, 0); }
private IRgbColor rgb_choose(int R, int G, int B) { return(C_S_R.getRGB(R, G, B)); }