当前位置:网站首页>ArcEngine(八) 选择要素并高亮显示
ArcEngine(八) 选择要素并高亮显示
2022-08-09 12:52:00 【稻田里展望者】
private void axMapControl1_OnMouseDown(object sender, IMapControlEvents2_OnMouseDownEvent e)
{
IMap pMap;
IActiveView pActiveView;
IEnvelope pEnv;
ISelectionEnvironment pSelectionEnv;
pMap = axMapControl1.Map;
pActiveView = pMap as IActiveView;
pEnv = axMapControl1.TrackRectangle();
pSelectionEnv = new SelectionEnvironmentClass();
pSelectionEnv.DefaultColor = getRGB(110, 120, 120);
pMap.SelectByShape(pEnv, pSelectionEnv, false);
pActiveView.PartialRefresh(esriViewDrawPhase.esriViewGeography, null, null);
}
private ESRI.ArcGIS.Display.IColor getRGB(int r, int g, int b)
{
IRgbColor pColor = new RgbColorClass();
pColor.Red = r;
pColor.Green = g;
pColor.Blue = b;
return pColor;
}
边栏推荐
猜你喜欢
WSA工具箱安装应用商店提示无法工作怎么解决?
七夕力扣刷不停,343. 整数拆分(剑指 Offer 14- I. 剪绳子、剑指 Offer 14- II. 剪绳子 II)
How to save Simulink simulation model as image or PDF
GIN a preliminary study, the environment is installed
联通网管协议框图
GIN file upload and return
Final assignment of R language data analysis in a university
我的2020年终总结
透明tune proxy
uni-app - uview Swiper 轮播图组件点击跳转链接(点击后拿到 item 行数据, 取出数据做操作)
随机推荐
How to solve the 0x80070005 error when the computer is reinstalled and the system is restored
FFmpeg多媒体文件处理(ffmpeg操作目录及list的实现)
批量读取word docx文件指定表格内容,保存在excel文件中
read stream special attention
Professor Chen Qiang the machine learning and R application course chapter 18 assignments
Yocto 可以下载的第三方库
Extract EventBus encapsulation to base class using annotations
Standing wave ratio calculation method
某高校的R语言数据分析期末作业
Flutter Getting Started and Advanced Tour (8) Button Widget
[极客大挑战 2019]Upload
ERP不规范,同事两行泪 (转载非原创)
Sandbox中的进程/线程相关-1
WSA toolkit installed app store tip doesn't work how to solve?
SQL Server查询优化 (转载非原创)
5G China unicom repeater network management protocol real-time requirements
Flutter Getting Started and Advanced Tour (7) GestureDetector
Uni - app - uview Swiper shuffling figure component, click on the links to jump (click to get the item after the row data, remove data operation)
FFMPEG多媒体文件处理(ffmpeg文件的删除与重命名)
GIN file upload and return