开发者

Exporting XAML drawing to image file [closed]

开发者 https://www.devze.com 2023-04-06 01:35 出处:网络
Closed. This question 开发者_如何学编程does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question 开发者_如何学编程does not meet Stack Overflow guidelines. It is not currently accepting answers.

Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 8 years ago.

Improve this question

I'm new to WPF. The problem is to export an image which is a simple UI button icon from a WPF project. I tried to locate the image in solution folders. Then I managed to figure out that it doesn't exist at all it's merely a geometry drawing in XAML!!! The question is there any tool for extracting such graphics to png file?


You can export XAML as image using Expression Design.

See following links for details:

  • http://social.msdn.microsoft.com/Forums/is/popflygamecreator/thread/a9fade6d-ec35-454e-b404-45115a9939aa
  • http://msdn.microsoft.com/en-us/library/cc294508(v=expression.40).aspx

And also check this project:

  • http://geekswithblogs.net/lbugnion/archive/2008/10/10/converting-and-customizing-xaml-to-png-with-server-side-wpf.aspx

XamlToPngConverter class is what you need.

0

精彩评论

暂无评论...
验证码 换一张
取 消