<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://www.windows-now.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Nathan Dunlap : DrawingBrush, Images, Vectors</title><link>http://www.windows-now.com/blogs/ndunlap/archive/tags/DrawingBrush/Images/Vectors/default.aspx</link><description>Tags: DrawingBrush, Images, Vectors</description><dc:language>en</dc:language><generator>CommunityServer 2008 SP2 (Build: 31104.93)</generator><item><title>Creating Clip Art for Avalon</title><link>http://www.windows-now.com/blogs/ndunlap/archive/2004/05/17/3493.aspx</link><pubDate>Mon, 17 May 2004 22:44:00 GMT</pubDate><guid isPermaLink="false">20f58a17-7e15-440c-89b3-dfe02fe74bcd:3493</guid><dc:creator>ndunlap</dc:creator><slash:comments>25</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://www.windows-now.com/blogs/ndunlap/rsscomments.aspx?PostID=3493</wfw:commentRss><comments>http://www.windows-now.com/blogs/ndunlap/archive/2004/05/17/3493.aspx#comments</comments><description>&lt;P&gt;&lt;FONT face=Arial size=2&gt;I've been asked how I created different Clip Art pieces in my demos a lot recently so I figure this is a good topic to blog on. If any of you have taken a look at typical path data, you are aware that its pretty&amp;nbsp;painful to even&amp;nbsp;think about manipulating or creating path content without some sort of tool. One way I have gotten around this is to turn Microsoft Office into a makeshift editor for creating Avalon ready Clip Art using the Windows Client Printer Driver. Here is a simple how-to:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;First make sure you have installed the Windows Client Printer Driver. &lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT face=Arial size=2&gt;Open &amp;#8220;Add/Remove Programs&amp;#8221; from the Control Panel.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face=Arial size=2&gt;Click on "Add or Remove Windows Components"&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face=Arial size=2&gt;In the components list click the checkbox for "Windows Client Printer Driver"&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;After install is complete you can access the Printer driver from any application that supports printing. I'm not aware of how well other applications will do when working with the printer driver, but I do know that Office 2003 works great.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face=Arial size=2&gt;Here is how I get clipart from&amp;nbsp;Microsoft Word&amp;nbsp;into my XAML projects.&lt;/FONT&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;FONT face=Arial size=2&gt;Open a document in Microsoft Word.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face=Arial size=2&gt;Click Insert &amp;gt; Picture &amp;gt; Clip Art...&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face=Arial size=2&gt;Change dropdown for "Results should be:" to only search on Clip Art. You can even filter it down further based on file type. I have most success searching for .wmf files only.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face=Arial size=2&gt;Perform your Clip Art search.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face=Arial size=2&gt;Click on a clip art tile to insert it in your Word document.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face=Arial size=2&gt;Click File &amp;gt; Page Setup and set all your Margins to zero. (this is to ensure that the art is drawn starting at a 0,0 reference point for all the resulting paths.)&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face=Arial size=2&gt;Click File &amp;gt; Print then c&lt;/FONT&gt;&lt;FONT face=Arial size=2&gt;hoose the Windows Client Printer Driver&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face=Arial size=2&gt;Click the &amp;#8220;Properties&amp;#8220; button.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face=Arial size=2&gt;Change "Output Format" to "Windows Client Markup File" (otherwise the output will be a .container file which wont let you get into the markup. Choosing Markup File will export a .XAML)&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face=Arial size=2&gt;Click "OK" to continue on to printing and specify a file name and destination. (c:\foo.xaml)&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face=Arial size=2&gt;Navigate to the file destination and there should be the foo.xaml file and a folder called "foo_files"&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face=Arial size=2&gt;Open "Page_1.xaml" in this folder with your XAML editor.&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;FONT face=Arial size=2&gt;All the Path elements in between the "FixedPage" elements are fair game. Copy and paste those into your app. I find it useful to wrap these elements in Canvas and set the dimensions of the Canvas to the same size as the clip art dimensions that are specified in Word. If you need different dimensions, you can resize the art in Word and export again using the printer driver. I also like to turn clip art into DrawingBrushes for easy reuse at multiple sizes.&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://www.windows-now.com/aggbug.aspx?PostID=3493" width="1" height="1"&gt;</description><category domain="http://www.windows-now.com/blogs/ndunlap/archive/tags/DrawingBrush/default.aspx">DrawingBrush</category><category domain="http://www.windows-now.com/blogs/ndunlap/archive/tags/Vectors/default.aspx">Vectors</category><category domain="http://www.windows-now.com/blogs/ndunlap/archive/tags/Images/default.aspx">Images</category></item></channel></rss>