- 1、本文档共11页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
2.3 layout elements
2.3 Working with layout elements Lesson overview 增加框架元素到PageLayout 使用 graphics container 符号化回顾 Symbols Colors Elements 打印和输出布局 对象模型图 回顾: Elements 有一些可以创建的对象 图形元素包含 Line, polygon, marker Text and pictures 框架元素 在 PageLayout上 Map frames North arrows, legends, scale bars Table frames 框架元素FrameElements 属于 PageLayout 的附属 MapSurroundFrame elements MapSurrounds对象的容器 (e.g., Scalebars) 内容时动态更新的 例子: 在布局上引用MapFrames对象 打印一个a layout 多样的输出子类 EmfPrinter (增强的 meta-file) PsPrinter (支持打印机脚本) ArcPressPrinter Paper class 用来管理打印纸张设置 发送到打印机或者是文件 输出 layout对象 多样化的输出格式 Adobe Acrobat (*.pdf) JPEG ArcPress 使用的IActiveView方法StartExporting 输出聚焦的Map或PageLayout 例子: 把Layout输出到一个Jpg文件 例子: 把Layout输出到一个Jpg文件 考试题目 1、建立一个UIButtonControl,单击该按钮,加载磁盘上C:\USA\States.shp的 ShapeFile文件到ArcMap的地图中。 2、建立一个UIToolControl,使用该工具时,可以点选其中一个多边形对象,并把选择中记录的序号为6的字段值显示出来。 3、最后的结果是: Introduction to Programming ArcObjects with VBA Copyright ? 2001, 2002 ESRI. All rights reserved. Copyright ? 2001, 2002 ESRI. All rights reserved. Introduction to Programming ArcObjects with VBA ArcMap OMD MapSurroundFrame MapSurround Dim pMxDoc As IMxDocument Set pMxDoc = ThisDocument Dim pGC As IGraphicsContainer’枚举对象 Set pGC = pMxDoc.PageLayout pGC.Reset ‘移动到最前面 Dim pElem As IElement Set pElem = pGC.Next ‘取得第一个条目 Do Until pElem Is Nothing If (TypeOf pElem Is IMapFrame) Then ‘有多种类型 Dim pMapEnvelope As IEnvelope Dim intW As Integer, intH As Integer Set pMapEnvelope = pElem.Geometry.Envelope intW = pMapEnvelope.Width intH = pMapEnvelope.Height MsgBox Map Frame = intW by intH End If Set pElem = pGC.Next ‘取得下一个条目 Loop Private Sub Export(aLayout As IActiveView, aPath As String, DPI As Integer) Dim rectOut As tagRECT rectOut = aLayout.exportFrame Dim pExporter As IExporter Set pExporter = New JpegExporter Dim pEnv As IEnvelope Set pEnv = New Envelope pEnv.PutCoords rectOut.Left, rectOut.Top, rectOut.Right, rectOut.bottom pExporter.ExportFileN
您可能关注的文档
最近下载
- SSD 540UF故障解列装置说明书_V1.10_印刷.pdf
- 基于UG的车床主轴箱参数化设计.docx
- 地铁端头井结构分析及设计.pdf
- 质量管理体系与措施.doc VIP
- 广东省深圳市2022-2023学年八年级下学期期中物理模拟试题(7)【含答案、解析】.docx
- 【3套打包】广州市一年级下册英语期中单元测试题(含答案).pdf
- Unit 5 Here and now 第1课时(Section A 1a-1d)(教学课件)七年级英语下册(人教版2024).pptx
- 2024-2030年中国生物育种行业市场现状调查及发展前景研判报告.docx
- 作物育种总论试题及答案.pdf
- 私车公用车辆租赁合同范本.docx VIP
文档评论(0)