arcobjects无法绘制动态绘制屏幕对象
我启用了地图以允许动态对象
然后我从我连接的事件中获取 IDynamicDisplay。
void dynamicMapEvents_AfterDynamicDraw(esriDynamicMapDrawPhase DynamicMapDrawPhase, IDisplay Display, IDynamicDisplay dynamicDisplay)
{
if (DynamicMapDrawPhase != esriDynamicMapDrawPhase.esriDMDPDynamicLayers) return;
IDynamicDrawScreen m_dynamicDrawScreen = dynamicDisplay as IDynamicDrawScreen;
m_dynamicDrawScreen.DrawScreenText(myPoint, "Test");
}
“测试”应该绘制在屏幕上,但事实并非如此。我感觉我在某处缺少一行代码。
I enabled the map to allow dynamic objects
Then I grab the IDynamicDisplay from an event which I wired up.
void dynamicMapEvents_AfterDynamicDraw(esriDynamicMapDrawPhase DynamicMapDrawPhase, IDisplay Display, IDynamicDisplay dynamicDisplay)
{
if (DynamicMapDrawPhase != esriDynamicMapDrawPhase.esriDMDPDynamicLayers) return;
IDynamicDrawScreen m_dynamicDrawScreen = dynamicDisplay as IDynamicDrawScreen;
m_dynamicDrawScreen.DrawScreenText(myPoint, "Test");
}
"Test" should be drawn on the screen but its not. I have the feeling I'm missing one line of code somwhere.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须将字形加载到符号属性中,然后您可以通过动态CompoundMarker 来绘制它。
you have to load the glyph into symbol properties, then you can draw it vis a vis dynamicCompoundMarker.