Hi all,
I really like the vector drawing functions but I'm wondering how I can load/save my vector drawings as presumably an .svg file? There doesn't seem to be an obvious way to do this in the command set given. Any help on this would be appreciated. Thanks.
PS: Sorry if this question has been asked before. I couldn't find anything on the forum search.
Vector Drawing Library question
Re: Vector Drawing Library question
For Linux, there's SvgVectorOutput(Filename$, Width.d, Height.d [, Unit])
Unfortunately this isn't available for Windows and OSX.
Unfortunately this isn't available for Windows and OSX.
Windows (x64)
Raspberry Pi OS (Arm64)
Raspberry Pi OS (Arm64)
Re: Vector Drawing Library question
Yes I'm using Windows. Sorry I forgot to mention that. Looks like I'm stuck then. Thanks for you reply.
Re: Vector Drawing Library question
Not a full stuck
http://www.purebasic.fr/english/viewtop ... 12&t=40540
But I don't know how easy it is to redraw everything.
Bernd

http://www.purebasic.fr/english/viewtop ... 12&t=40540
But I don't know how easy it is to redraw everything.
Bernd
Re: Vector Drawing Library question
Thanks, I'll have a look at that!
Re: Vector Drawing Library question
I just store every line, piece of text, etc in a linked list (position, line thickness, color, etc). And I save all the elements in this linked list in a common file. When I want to continue my drawing I simply open the file and let the computer redraw first. I think Autocad works also the same like this.
Re: Vector Drawing Library question
I was thinking along the same lines. Just store everything in a list making sure to preserve hierarchy and save it to a file. It might be possible to import/export simple svg files looking at the code infratec provided a link for. Thanks for all your help. I've at least got something I can work withHadrianus wrote:I just store every line, piece of text, etc in a linked list (position, line thickness, color, etc). And I save all the elements in this linked list in a common file. When I want to continue my drawing I simply open the file and let the computer redraw first. I think Autocad works also the same like this.

-
- Addict
- Posts: 1265
- Joined: Wed Feb 28, 2007 9:13 am
- Location: London
Re: Vector Drawing Library question
Sorry to do this, but PureSVG can help.
JACK WEBB: "Coding in C is like sculpting a statue using only sandpaper. You can do it, but the result wouldn't be any better. So why bother? Just use the right tools and get the job done."