Is there a way to convert a Canvas based visual element to a Drawing based one?I have a number of Canvas based images that I would like to use in my application. The problem is, the system that I am using requires Drawing based images. It appears that for clip-art like images, the two have the same capabilities. Is there a way, either in code or a tool, to convert Canvas XAML to Drawing XAML? <br/><br/>Thanks,<br/>Erick© 2009 Microsoft Corporation. All rights reserved.Thu, 09 Jul 2009 01:34:41 Z2c44178f-e495-4cd4-b0b1-bd8469b55220http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/2c44178f-e495-4cd4-b0b1-bd8469b55220#2c44178f-e495-4cd4-b0b1-bd8469b55220http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/2c44178f-e495-4cd4-b0b1-bd8469b55220#2c44178f-e495-4cd4-b0b1-bd8469b55220erick.thompsonhttp://social.msdn.microsoft.com/Profile/en-US/?user=erick.thompsonIs there a way to convert a Canvas based visual element to a Drawing based one?I have a number of Canvas based images that I would like to use in my application. The problem is, the system that I am using requires Drawing based images. It appears that for clip-art like images, the two have the same capabilities. Is there a way, either in code or a tool, to convert Canvas XAML to Drawing XAML? <br/><br/>Thanks,<br/>ErickThu, 02 Jul 2009 22:31:37 Z2009-07-02T22:31:37Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/2c44178f-e495-4cd4-b0b1-bd8469b55220#1dfd09e7-8477-4822-a9f8-82d8b9272b3ahttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/2c44178f-e495-4cd4-b0b1-bd8469b55220#1dfd09e7-8477-4822-a9f8-82d8b9272b3aBruce.Zhouhttp://social.msdn.microsoft.com/Profile/en-US/?user=Bruce.ZhouIs there a way to convert a Canvas based visual element to a Drawing based one?Hi erick,<br/> <br/> Would you please elaborate the problem? Currently, I did not understand what you want.<br/> <br/> Best regards,<br/> Bruce Zhou <hr class=sig> Please mark the replies as answers if they help and unmark if they don't.Wed, 08 Jul 2009 07:34:11 Z2009-07-08T07:38:26Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/2c44178f-e495-4cd4-b0b1-bd8469b55220#a2d86536-ba8a-448a-94b2-1d3495dc3db6http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/2c44178f-e495-4cd4-b0b1-bd8469b55220#a2d86536-ba8a-448a-94b2-1d3495dc3db6erick.thompsonhttp://social.msdn.microsoft.com/Profile/en-US/?user=erick.thompsonIs there a way to convert a Canvas based visual element to a Drawing based one?Bruce,<br/><br/>Thanks for the response. Basically, I have XAML content that is expressed in terms of Canvases. A Canvas with contained Rectangles, Paths, sub-Canvases, etc. The Canvas works fine in an WPF window, but the 3rd party API that I am using requires that the content be contained within Drawings. What I was hoping is that there is a way to convert the Canvas based content to Drawing based content (i.e., DrawingGroup). <br/><br/>I fully understand that there isn't 100% overlap between the two, but the XAML that I am working with could be expressed in either.<br/><br/>Does that give you enough information?<br/><br/>Thanks,<br/>ErickWed, 08 Jul 2009 17:55:44 Z2009-07-08T17:55:44Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/2c44178f-e495-4cd4-b0b1-bd8469b55220#75572d01-4559-4c83-8d98-254637caf546http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/2c44178f-e495-4cd4-b0b1-bd8469b55220#75572d01-4559-4c83-8d98-254637caf546mumin_abdulhttp://social.msdn.microsoft.com/Profile/en-US/?user=mumin_abdulIs there a way to convert a Canvas based visual element to a Drawing based one?Maybe you can adapt this: http://www.ericsink.com/wpf3d/7_XAML.html<br/> <br/> So maybe you could take a screen capture and then you can process it.<hr class="sig">Algorithms, Mathematics, and Programming http://www.algomaths.com/forumWed, 08 Jul 2009 22:09:09 Z2009-07-08T22:09:09Zhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/2c44178f-e495-4cd4-b0b1-bd8469b55220#5eded141-7229-4544-97cf-3f3a8e5de04bhttp://social.msdn.microsoft.com/Forums/en-US/wpf/thread/2c44178f-e495-4cd4-b0b1-bd8469b55220#5eded141-7229-4544-97cf-3f3a8e5de04berick.thompsonhttp://social.msdn.microsoft.com/Profile/en-US/?user=erick.thompsonIs there a way to convert a Canvas based visual element to a Drawing based one?Thanks, I like the approach, and I believe that it should work.<br/><br/>ErickThu, 09 Jul 2009 01:34:41 Z2009-07-09T01:34:41Z