如何在c#中使用自定义折线截取bingmap控件的屏幕截图? [英] How to take screenshot of bingmap control with custom polyline in c#?

查看:90
本文介绍了如何在c#中使用自定义折线截取bingmap控件的屏幕截图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


   我在我的wpf应用程序中有一个BingMap控件。在加载地图时,我使用mapcontrol(mymap.children.add(折线))绘制我的折线和我的图钉。当用户点击"屏幕截图"时按钮,我需要拍摄mapcontrol
的屏幕截图并将其保存在我的本地机器中。用我的折线和图钉进行bingmap控件的屏幕截图?

解决方案

您是否尝试过RenderTargetBitmap类?  https://msdn.microsoft.com/en-us/library/system.windows.media.imaging.rendertargetbitmap(v = vs.110)的.aspx

Hi,

    I have a BingMap control in my wpf application.while loading the map i draw my polyline and my pushpin with mapcontrol(mymap.children.add(polyline)).While user click "Screenshot" button,i need to take the screen shoot of the mapcontrol and save it in my local machine.how to take screenshoot of bingmap control with my polyline and pushpin?

解决方案

Have you tried the RenderTargetBitmap class? https://msdn.microsoft.com/en-us/library/system.windows.media.imaging.rendertargetbitmap(v=vs.110).aspx


这篇关于如何在c#中使用自定义折线截取bingmap控件的屏幕截图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆