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
 Automatic layer resize & reposition

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
aleatprog Posted - Jun 19 2022 : 10:54:59
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
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jun 22 2022 : 16:35:03
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
aleatprog Posted - Jun 22 2022 : 10:13:40
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
xequte Posted - Jun 19 2022 : 17:12:09
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