LEADTOOLS Support
General
General Questions
How to convert a raster image to a vector image
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, May 10, 2012 5:44:33 AM(UTC)
Groups: Registered
Posts: 2
Hi,
I would like to convert a raster image to a vector image.
I tryed those fonctions and i have a blank vector image in the output
L_VecLoadFile(SourceFileName, &LeadVector,NULL,NULL);
L_VecSaveFile(SourceSVG,&LeadVector,FILE_SVG,NULL);
Thanks for your help
Best regards
Armand
#2
Posted
:
Sunday, May 13, 2012 7:09:40 AM(UTC)
Groups: Registered
Posts: 256
If you mean "vectorizing" individual objects in the original bitmap image, we don't have such a feature.
However, you can load a bitmap image and embed it as a Raster object in a vector file. You can do this using our main vector demo by creating a new vector drawing and then insert a Raster object or our vector overlay demo. Please note that not all vector formats support saving Raster objects, so you will have to save the file in a format that supports Raster objects.
#3
Posted
:
Wednesday, May 30, 2012 12:33:05 AM(UTC)
Groups: Registered
Posts: 2
I talked with your support and they said me it's not possible to do what i wanted.
So i want now to draw shapes on the vectorial image like in the exemple in the attachment.
I don't find how to do in the vector overlay demo ... Could you give me the way or an exemple project ?
Thanks
Armand Rollet
#4
Posted
:
Thursday, May 31, 2012 5:16:09 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Armand,
The project that you sent draws rectangle on raster image (not vector) so that the rectangle becomes part of the image pixels.
If you want to draw vector objects (such as VECTOR_RECTANGLE or VECTOR_RASTER) on your vector images, you can use L_VecAddObject function to add object to a vector layer after loading the vector image. For a sample code, please see the help topic "L_VecAddObject" in LEADTOOLS Vector C DLL help file.
LEADTOOLS Support
General
General Questions
How to convert a raster image to a vector image
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.