来自WPF应用程序的屏幕截图为SVG/矢量图形? [英] Screenshot from WPF application as SVG / vector graphic?

查看:121
本文介绍了来自WPF应用程序的屏幕截图为SVG/矢量图形?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以像SVG一样创建WPF应用程序的屏幕截图/是否有一些WPF内置函数来获取当前绘制窗口的XAML代码,然后可以将其转换为SVG?我需要一些屏幕快照来记录WPF应用程序,并且希望它们像WPF程序正在使用的那样可缩放.史努比(Snoop)或Vista Magnifyer.谢谢您的提示!

is it possible to create a screenshot of a WPF application as SVG / is there some WPF built-in function to get the XAML code for the current drawn window that then can be converted to SVG? I need some screenshots for documenting a WPF application and I'd like them to be zoomable like a WPF program is using e.g. Snoop or Vista Magnifyer. Thanks for any hint!

推荐答案

您将需要使用XamlWriter来序列化XAML,然后编写或查找某种实现以将其转换为所选的矢量格式.

You would need to use XamlWriter to serialize the XAML, and then write or find an implementation of something to convert that to the vector format of choice.

这篇关于来自WPF应用程序的屏幕截图为SVG/矢量图形?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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