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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 ImageMagick Plugin questions

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
PeterPanino Posted - May 11 2023 : 13:46:08
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;
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - May 11 2023 : 23:29:08
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