Support to SVG

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
threedslider
Enthusiast
Enthusiast
Posts: 452
Joined: Sat Feb 12, 2022 7:15 pm

Support to SVG

Post by threedslider »

Hi,

Any support to SVG would be very useful to save in file as read/write from VectorDrawing :shock: :D

Hope that is working in this way.

Thanks
User avatar
mk-soft
Always Here
Always Here
Posts: 6374
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Support to SVG

Post by mk-soft »

PB-Help

Code: Select all

Result = SvgVectorOutput(Filename$, Width.d, Height.d [, Unit])
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
punak
Enthusiast
Enthusiast
Posts: 115
Joined: Tue Sep 07, 2021 12:08 pm

Re: Support to SVG

Post by punak »

I had recently suggested this.
viewtopic.php?t=87586
User avatar
idle
Always Here
Always Here
Posts: 6065
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Support to SVG

Post by idle »

this loads SVG and you can easily draw to svg too
viewtopic.php?t=87734

Code: Select all

  *scene.AVGScene = CreateAVGScene(800, 600) 
  SVG = AVGCreateObject(*scene,100,0,"Tiger")
  SvgLoad(*scene,SVG,"./tiger.svg",0,#PB_Image_Transparent,600,600) 
 
 If StartVectorDrawing(SvgVectorOutput("newTiger.svg", 800, 600))
    AVGRenderScene(*scene)
    StopVectorDrawing()
  EndIf  

Post Reply