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
 ImageMagick Plugin questions
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

864 Posts

Posted - May 11 2023 :  13:46:08  Show Profile  Reply
1. To be able to load and display SVG files in this demo:
\Demos\LayerEditing\SVGVectorLayers
... must ALL 47 (!) files in this folder:
\ImageMagickPlugIn1100\Binaries 32bit\Core_Files
... be deployed in the demo exe directory or only a part of these files?

2. Is it possible to place these DLL files in a subdirectory in the folder of the exe file (and then point to this subdirectory at runtime)?

3. How can I programmatically restore the original aspect ratio of the SVG Layer?:



I've tried this, but it does not work:



procedure TForm1.ButtonRestoreAspectRatioClick(Sender: TObject);
begin
  IELayerRestoreAspectRatio1.Execute;
end;

xequte

38196 Posts

Posted - May 11 2023 :  23:29:08  Show Profile  Reply
Hi Peter

1. SVG loading requires ImageMagick, so you must include all ImageMagick files.

2. You can specify a path as follows:

procedure TForm1.RegisterImageMagick();
const
  IMAGEMAGICK_FOLDER = 'E:\ImageMagick_Dev\Test32\';
begin
  // Register the ImageMagick plug-in if available
  IEGlobalSettings().RegisterPlugIns( IMAGEMAGICK_FOLDER, [iepiImageMagick] );
end;


3. The demo does not consider the aspect ratio of the SVG image (layer does not know it). You would need to handle this yourself, e.g. by locking the aspect ratio when loading:

ImageEnView1.IO.Params.Dict.Insert( 'ImageMagick:AspectRatio', 1 );


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