tags:

views:

2083

answers:

5

What are options to import and render SVG images with Delphi (Win32)?

"Interactive" component would be big advantage, I'd like to be able to modify the SVG image dynamically (change colors, line widths, texts) and get events when user clicks the image.

+1  A: 

Can Delphi call Win32 dlls and/or functions directly like VB6 can?

If so then you can grab one of the many SVG platforms that exist.

graham.reeds
Yes it can call win32 dlls and do ActiveX/COM
Lars Truijens
Libboard is for exporting only?
Harriv
Antigrain doesn't render text
Harriv
+1  A: 

Adobe's own SVG Viewer (http://www.adobe.com/svg/viewer/install/) is COM based and can be used in Delphi by wrapping it with the import tools. The Adobe SVG viewer is discontinued, but will be available for download until end of 2008. I don't know of any direct COM based replacements at the point of writing this, but there are some products mentioned here (http://wiki.svg.org/Viewer_Implementations).

You can control the SVG container and DOM in detail, and it supports interaction and dynamic SVG documents.

Lars Fosdal
Adobe SVG Viewer sounds good, too bad it's discontinued..
Harriv
A: 

I've done this using TeeChart as a canvas (hiding all of the chart elements). It has a pretty good SVG export engine (as well as PDF, etc). Things like rotated text sometimes get misplaced, but for my needs it's the smoothest path I've found, and is actively supported.

Argalatyr
I need SVG import, not export.
Harriv
Sorry - senior moment.
Argalatyr
+3  A: 

The project ExtGraph (http://extgraph.sourceforge.net/index.html) based on TSimpleGraph (http://delphiarea.com/products/simplegraph/) have some support to SVG.
See this page:
http://extgraph.sourceforge.net/docs/howto/svgclocks.htm
for more information. There are some code and images.

Regards.

P.D:Excuse-me for my bad english. ;-o

Neftalí
NEVER EVER apologize for your possibly less-than-perfect English. We appreciate that you do write in English, and not Egyptian hieroglyphs :-), and then even the natives' English isn't always perfect.
stevenvh
+2  A: 

Sorry for up old thread - but here is native way to work with svg - http://www.aggpas.org/ Maybe it will be useful for someone

Alexander Hramov