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
 Automatic layer resize & reposition
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

aleatprog

103 Posts

Posted - Jun 19 2022 :  10:54:59  Show Profile  Reply
Hi,

I need to automatically process images by loading IEN layers. If the background image size changes, size and position of the layers need to be adapted.

Is there any function inside ImageEn which helps to calculate layer size and pos based on the background image size?

Al

xequte

7022 Posts

Posted - Jun 19 2022 :  17:12:09  Show Profile  Reply
Hi Al

There are several functions that could potentially be useful for this. Can you give me more information?

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

aleatprog

103 Posts

Posted - Jun 22 2022 :  10:13:40  Show Profile  Reply
Hi Nigel,

in the specific case, I need to apply an IEN file as watermark on a selection of images.

If some of the selected images got a different size as the background image the IEN file had been build on (e.g. 960x720 or 200x200 instead of 1080x720), I'ld like to optimize the watermark by resizing and reposition the layers while loading the IEN file.

Normally, I would compare the original background size with the size of the selected image, calculate a ratio and apply it on the single layers. But I would prefer if there is something similar ready to use in ImageEn.

Another example I'll need it for is the automatic applying of a time stamp where position and font size depend on the image size.

Al
Go to Top of Page

xequte

7022 Posts

Posted - Jun 22 2022 :  16:35:03  Show Profile  Reply
Hi Al

OK, please use:

https://www.imageen.com/help/TImageEnView.LayersRect.html


This might also be useful:

https://www.imageen.com/help/GetImageRectWithinArea.html


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