Author |
Topic |
|
sn00py
Austria
3 Posts |
Posted - Dec 16 2014 : 02:14:29
|
Hello
Is there samewhere a Demo for reading and showing (and printing) SVG Files?
I am searching a library for that.
regards andi |
|
xequte
38683 Posts |
|
sn00py
Austria
3 Posts |
Posted - Dec 17 2014 : 00:01:45
|
Hmmm I didn't get it to work :(
I just installed ImageMagick from the webpage ... and than i copied the demo apps into the same directory where all DLL are (many CORE_RL_*.dll) but still see no SVG in the open dialog - waht is going wrong? |
|
|
xequte
38683 Posts |
Posted - Dec 17 2014 : 01:35:38
|
Hi
You need to use a demo that calls IEAutoLoadIOPlugins on start-up, so use the "Camera Raw Files" demo at:
http://www.imageen.com/demos/#InputOutput
Also, ensure the ImageMagick version you installed matches the bitness of the application. The demo is 32bit, so ensure you have installed the 32bit version of ImageMagick.
Nigel Xequte Software www.xequte.com nigel@xequte.com
|
|
|
sn00py
Austria
3 Posts |
|
spetric
Croatia
308 Posts |
Posted - Dec 17 2014 : 02:12:20
|
Hi,
In ImageEn (using ImageMagick.dll), SVG is loaded "as is" and rendered as raster image. You can not manipulate SVG the same way as with Inkscape, or some other vector drawing program. When you zoom in, you're actually zooming raster image.
In order to "natively" manipulate SVG (zoom, translate, rotate), you should use some 3rd party library, like "Anti grain geometry": http://antigrain.com/index.html
There is also a pascal port of this library: http://www.crossgl.com/aggpas/
Libraries come with source code under public licence, so maybe you can adapt source code to render SVG onto ImageEnView canvas.
Edit: There is also VCL style version of aggpas (XE1/XE2): http://sourceforge.net/projects/aggpasmod/ |
|
|
xequte
38683 Posts |
Posted - Nov 27 2023 : 15:54:40
|
Also note that SVG loading is now automatically supported on Delphi 12 and newer if you add Vcl.Skia to the uses clause of any unit in your project.
Nigel Xequte Software www.imageen.com
|
|
|
|
Topic |
|