Quick tip: Convert images from any format to XAML 8/3/10
Hey there!
For today’s quick tip I’ll show how to convert images from any 2D vector format (and I really mean ANY) to XAML. It’s pretty simple!
Note: if your image is in a bitmap format (e.g. JPEG, PNG, GIF, PSD, etc), you should simply convert it to PNG or JPEG using any image editor and use it directly as a bitmap image in your app. This method is only necessary for vector file formats.
Note 2: There are specialized converters for many formats that might yield better results. I’d recommend searching the web to see if there isn’t a converter for your format before trying this method.
Requirements:
- Expression Design (tip: Students can get it for free with Dreamspark)
- PDFCreator
Steps:
- Open your image in your favorite image viewer. In this example, I’ll open an SVG from Wikipedia with Firefox.

- Print the image to PDF with PDFCreator.

- Rename the PDF file to AI using Windows Explorer. (e.g. “image.pdf” becomes “image.ai”)


- Open the AI file with Expression Design. You might now want to delete some parts of the image that you don’t want to be exported.

- Save it to XAML as usual using File > Export… in Expression Design.

Yes, it’s THAT simple! Enjoy!
See you next time,
Roberto
This blog post is also available on CodeProject
Categories: Dicas, Expression, Silverlight, WPF
Comments»
New blog post – Quick tip: Convert images from any format to XAML – http://bit.ly/convertxaml
RT @robertos_br: New blog post – Quick tip: Convert images from any format to XAML – http://bit.ly/convertxaml
Quick tip: Convert images from any format to #XAML – http://bit.ly/aCofem – #Expression #Design #msexp
RT @MSExpression: Quick tip: Convert images from any format to #XAML – http://bit.ly/aCofem – #Expression #Design #msexp