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
 Want to set the layers in proper manner on resize
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
725 Posts

Posted - Jun 18 2019 :  07:17:33  Show Profile  Reply
Hello,

I have three Layers selected (I am showing resize handles on the Main Layer only):
1. Main Layer (photo)
2. Mask Layer applied to 1
3. Layer which is filled with color and is placed under 1

This is how it looks:



After I resize the selected layers the arrangement of 3rd and 1st layers is getting mis aligned and is looking bad.

This is how it looks:



Where should I program to rearrange the 3rd and 1st layers?

TIA


Yogi Yang

xequte

38180 Posts

Posted - Jun 19 2019 :  19:58:15  Show Profile  Reply
Hi Yogi

This is expected behavior. If you drag items from the top-right grip they will enlarge, but the bottom-left grip will not move. Unfortunately there is not a way to keep some layers centered while sizing (it is not a bad idea, but I cannot think of a way the functionality could be presented to the user).

Why not enable a red border for your image layer instead?

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

yogiyang

India
725 Posts

Posted - Jun 20 2019 :  00:08:02  Show Profile  Reply
Hello,

 
Why not enable a red border for your image layer instead?

Actually this is not possible as the layer under the Main Layer can also be a gradient or can also be loaded from a PNG file.

TIA


Yogi Yang
Go to Top of Page

xequte

38180 Posts

Posted - Jun 20 2019 :  02:19:48  Show Profile  Reply
Hi Yogi

Then, in the OnLayersNotifyEx event you might need to check for ielResizing and update PosX and PosY for the layers that are Selected but not the current layer (LayersCurrent).



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