jump to navigation

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:

Steps:

  1. Open your image in your favorite image viewer. In this example, I’ll open an SVG from Wikipedia with Firefox.

    SVG image in Firefox
  2. Print the image to PDF with PDFCreator.

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

    Image is in PDF formatRename to AI format
  4. 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.

    AI file open in Expression Design
  5. Save it to XAML as usual using File > Export… in Expression Design.

    Exporting to XAML with Expression Design

Yes, it’s THAT simple! Enjoy!

See you next time,
Roberto

This blog post is also available on

Categories: Dicas, Expression, Silverlight, WPF  

Comments»

1. Roberto Sonnino - 8/3/10

New blog post – Quick tip: Convert images from any format to XAML – http://bit.ly/convertxaml

2. Pete Brown - 8/3/10

RT @robertos_br: New blog post – Quick tip: Convert images from any format to XAML – http://bit.ly/convertxaml

3. MSExpression - 9/3/10

Quick tip: Convert images from any format to #XAML – http://bit.ly/aCofem – #Expression #Design #msexp

4. Tina Clarke - 12/3/10

RT @MSExpression: Quick tip: Convert images from any format to #XAML – http://bit.ly/aCofem – #Expression #Design #msexp