Click here to Skip to main content
15,920,030 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hello Guys
I want to convert System.Windows.Media.Image into pathgeometry does it can be converted if yes then pls know me how to convert it .

thank you .........

in my project i want to load image as there in corel draw and functionality such as resize , rotate, skew ,inverted i want and so that if i convert image to pathgeometry then the functionality will be come from pathgeometry as i have done for vector object such as rectangle, ellipse,etc.
so i want to know how to convert image to pathgeometry .........
Posted
Updated 12-Jul-12 17:53pm
v2
Comments
Sergey Alexandrovich Kryukov 12-Jul-12 3:12am    
"Conversion"... Don't you understand, this is a kind of image recognition..?
--SA
Sandeep Mewara 12-Jul-12 14:20pm    
This is not a well framed question! We cannot work out what you are trying to do/ask from the post. Please elaborate and be specific.
Use the "Improve question" link to edit your question and provide better information.

1 solution

You want to make vector graphics from a raster image.
I don't think you will find an out of the box solution, even less a free class you could include in your project. Maybe a commercial one...

Vectorization is not an easy one :(. And it cannot be done fully automatically in general. You will need to apply several image processing steps to reduce the number of colors (actually a proper clustering). Than you will need edge detection and after that you can track the edges to closed filled paths. At the end you should optimize nodes, and smooth paths to curves if needed.

Some tools you might find of use:
http://www.aforgenet.com/framework/features/[^]
http://code.google.com/p/tf-net/[^]
But you will need more googling and even more theory to learn...
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900