当前位置:网站首页>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;
}
边栏推荐
- The sword refers to the offer, cuts the rope 2
- 【FPGA教程案例48】图像案例8——基于FPGA的RGB图像转化为HSV图像的实现,通过MATLAB进行辅助验证
- 面试题精选:神奇的斐波那契数列
- How to save Simulink simulation model as image or PDF
- Dry+Bean+Dataset R语言数据分析,报告英文
- 农村区县域农业电商如何做?数字化转型如何进行?
- How to reduce the size of desktop icons after the computer is reinstalled
- 5G 联通网管设计思路
- 一维数组&指针
- RTSP协议的实现
猜你喜欢
gin的中间件和路由分组
注:检测到当前使用的ADB不是HBuilder内置或自定义ADB:PID为:9544进程名称为:adb.exe 路径为:c:\users\administrator\appdata\local\and
ctfshow七夕杯2022
jenkins api create custom pipeline
Anta and Huawei Sports Health jointly verify the champion running shoes and lead Chinese sports with innovation
电脑重装系统后桌面图标如何调小尺寸
Do you know the difference between comments, keywords, and identifiers?
Map mixed density function and quantile added line
Unicom network management protocol block diagram
19、学习MySQL 索引
随机推荐
万物皆可柯里化的 Ramda.js
ARM板卡增加路由功能
handwritten big pile
The FPGA - work summary recently
2022年非一线IT行业就业前景?
陈强教授《机器学习及R应用》课程 第十八章作业
FFmpeg多媒体文件处理(ffmpeg打印音视频Meta信息)
Microsoft 10/11 命令行打开系统设置页(WUAP,!WIN32)
第六届“强网杯”全国网络安全挑战赛
leetcode 20. Valid Parentheses 有效的括号(中等)
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)
NFS 特别注意权限的问题
透明tune proxy
WSA toolkit installed app store tip doesn't work how to solve?
Rust 入门指南(使用JSON)
FFmpeg multimedia file processing (FFMPEG logging system)
我的2020年终总结
剑指 Offer 56 - II. 数组中数字出现的次数 II(位运算)
Yocto 可以下载的第三方库
ARM board adds routing function