Converting to xaml Path

Asked by Akhil

I hope there is a way to convert an Image (jpeg) to xaml path control using Inkscape. But i cannot find a way to do so.

I tried opening a jpeg file and saving it as xaml, but on doing this i get a xaml file in which the path of the image is mentioned as the source of the Image control.

I want the image to be converted to a format like this ----Data="F1 M 301.14,-189.041L 311.57,-189.041L 306.355,-182.942L 301.14,-189.041 Z "----

Is there a way to do so???

Please help me...

Regards,
Akhil

Question information

Language:
English Edit question
Status:
Answered
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
jazzynico (jazzynico) said :
#1

Hi Akhil,

You can't convert a bitmap to xaml directly and you need to trace it first:

1. Open or import your file in Inkscape.
2. Select the image and open the trace dialog (Path>Trace Bitmap)
3. Once you've found the best parameters, click OK.
4. Remove the original file.
5. If needed, optimize the shape of the traced image (with the node tool).
6. Use File>Save As to export it to xaml.

See also http://tavmjong.free.fr/INKSCAPE/MANUAL/html/Trace.html for more details on tracing.

Regards.

Can you help with this problem?

Provide an answer of your own, or ask Akhil for more information if necessary.

To post a message you must log in.