ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Exporting SVG
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

aouatif

8 Posts

Posted - Dec 15 2017 :  05:43:13  Show Profile  Reply
Hi,
In ImageEn 7.5.0, Top Ten Enhancements you introduce the exoprt to SVG :

3. Exporting to SVG
Exporting of layers and objects to SVG (Scalable Vector Graphics) as vector objects

Do you have a demo for that function ?

Aouatif

xequte

7215 Posts

Posted - Dec 15 2017 :  16:02:56  Show Profile  Reply
Hi Aouatif

It was introduced in v7.0.0.

You can test it with the "All Layers" demo, by selecting View > View as SVG.

https://www.imageen.com/files/demos/run/LayerEditing/Layers_AllTypes/Layers.exe


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

kturkay

44 Posts

Posted - Jul 05 2020 :  01:33:41  Show Profile  Reply
Hi!
is exporting as SVG always raster vectorial objects as bitmaps into svg file ?
Go to Top of Page

xequte

7215 Posts

Posted - Jul 05 2020 :  20:14:38  Show Profile  Reply
No, if they are vector objects in the TImageEnView (e.g. TIEShapeLayer or TIELineLayer) they will be vector objects in the SVG.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

lvincent7

Australia
6 Posts

Posted - Oct 04 2021 :  18:07:55  Show Profile  Reply
Nigel,

Can ImageEN convert SVG to PNG?
Go to Top of Page

xequte

7215 Posts

Posted - Oct 04 2021 :  21:39:53  Show Profile  Reply
Yes, if you have installed the ImageMagick plug-in, then ImageEn can rasterize SVG files and save them to PNG:

www.imageen.com/download/


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

lvincent7

Australia
6 Posts

Posted - Oct 04 2021 :  22:01:17  Show Profile  Reply
Thank you. I tried it, it works. How can we referenced the dlls inside a separate folder? Is there a way to do this? I tried adding the binary folder in the library reference but does not work.
Go to Top of Page

xequte

7215 Posts

Posted - Oct 04 2021 :  23:36:37  Show Profile  Reply
Hi

For the standard ImageMagick DLL that is not possible.

However you can use the Legacy plug-in:

https://www.imageen.com/files/plugins/ImageMagickLegacyPlugIn.zip

And register it as follows:

IEAddExtIOPlugIn( 'D:\Some_Path\imagemagick.dll )

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

lvincent7

Australia
6 Posts

Posted - Oct 05 2021 :  01:05:37  Show Profile  Reply
Thank you so much!
Go to Top of Page

lvincent7

Australia
6 Posts

Posted - Oct 05 2021 :  03:47:44  Show Profile  Reply
Anyone here tried creating an SVG from SVG code and saving it to an SVG file in Delphi?

We want to create an SVG but since we want the text to be change over time we are thinking of this solution. Do you think this can work? I will still try it :)
Go to Top of Page

lvincent7

Australia
6 Posts

Posted - Oct 05 2021 :  21:39:13  Show Profile  Reply
Nigel,

The DLLs for SVG thats not included in the legacy plugin right? So if we are going to use the legacy plugin, SVG will not be supported. Am I right?

If not, then we will just use the current setup were we copy all dlls. But is it possible to get rid of those dlls not specific to what we need?
Go to Top of Page

xequte

7215 Posts

Posted - Oct 06 2021 :  16:52:56  Show Profile  Reply
Hi

The legacy plug-in does support SVG, it does not need any other DLLs.

For the new plug-in, most of the unnecessary DLLs have been removed from the install. There are a few others that are probably optional based on what formats you want to support.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

lvincent7

Australia
6 Posts

Posted - Sep 15 2022 :  01:55:51  Show Profile  Reply
Hi again, how is everyone?

I am converting an SVG to PNG, is there a way i can control the size of the PNG? or perhaps the size of the SVG prior to conversion?
Go to Top of Page

xequte

7215 Posts

Posted - Sep 15 2022 :  18:20:16  Show Profile  Reply
Hi

You can use AutoScaleImport:

http://www.imageen.com/help/TIOParams.AutoScaleImport.html

// Load an SVG at size 2000x1000px
ImageEnView1.IO.Params.AutoScaleImport := True;
ImageEnView1.IO.Params.LoadToWidth := 2000;
ImageEnView1.IO.Params.LoadToHeight := 1000;
ImageEnView1.IO.LoadFromFile( 'D:\SVG\Lion.svg' );
ImageEnView1.IO.SaveToFile( 'D:\Lion.png' );


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: