Current Delphi implementations (GR32 + VPR, NativeSvg, etc) did not render all our SVG correct. Closest comes this one: http://www.riversoftavg.com/svg.htm (still one gradient render issue needs to be solved).
I also made a working PoC using Cairo, but this takes 12 dlls and 20Mb (dependency on gnome framework or some like that)
There are other libs, just search on google and try their demos to see if your svg's are rendered correct, but all delphi libs are partial implemented. Only Cairo + Google chrome renders everything right... (at least, that's my experience)
Edwin Yip AggPas did not render my svg correct and has limited support. David Millington SVG is more than only paths, so FMX cannot render a full SVG (circle, rectangles, etc). There was for XE2 an ApeSuite or something like that with SVG support but due to FMX refactorings it does not work with XE3 and higher (and it also did not render my svg's iirc)
https://www.google.com/search?q=delphi+convert+svg+to+png
ReplyDeleteFirst hit on StackOverflow should get you going.
HTML Component Library also has SVG support
ReplyDeleteCurrent Delphi implementations (GR32 + VPR, NativeSvg, etc) did not render all our SVG correct. Closest comes this one:
ReplyDeletehttp://www.riversoftavg.com/svg.htm
(still one gradient render issue needs to be solved).
I also made a working PoC using Cairo, but this takes 12 dlls and 20Mb (dependency on gnome framework or some like that)
There are other libs, just search on google and try their demos to see if your svg's are rendered correct, but all delphi libs are partial implemented. Only Cairo + Google chrome renders everything right...
(at least, that's my experience)
IIRC, AggPas renders SVG.
ReplyDeleteFireMonkey? I think a FMX TPath is a SVG path, and you can render it to a TBitmap. And, FMX bitmaps save as PNG files by default.
ReplyDeleteEdwin Yip AggPas did not render my svg correct and has limited support. David Millington SVG is more than only paths, so FMX cannot render a full SVG (circle, rectangles, etc). There was for XE2 an ApeSuite or something like that with SVG support but due to FMX refactorings it does not work with XE3 and higher (and it also did not render my svg's iirc)
ReplyDeleteIndeed FMX TPath data hold a SVG path.
ReplyDeleteAggPas has a minimun support for svg, there's a component called svgimage (http://development.mwcs.de/svgimage.html) site is in german
ReplyDeletehttp://www.imageen.com/info/index.html get yourself ImageEn
ReplyDelete