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
 Help in replacing 1 Layer with multiple Layers
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
728 Posts

Posted - Jan 13 2018 :  02:29:40  Show Profile  Reply
Hello,

As my math is a not that powerful I am not able to solve this problem. I am posting with hope that someone with powerful math help me solve my problem:

I have following multi layered Main image loaded in ImageEn.
Insert Image:

This Main image has 3 layers in all.

I have a PSD file with 9 layers.


And I need to load it (keeping intact all its layers) in Main image at the place where Layer 1 is by replacing it.

I am able to load and resize background of this PSD file keeping its original proportions (height width ratio), but am not able to resize rest of the layers and place them at proper position as per original file.

How can we calculate size of all layers base on background layers's new size and arrange all the layers properly?

TIA


Yogi Yang

xequte

39056 Posts

Posted - Jan 13 2018 :  13:56:40  Show Profile  Reply
Hi Yogi

So after you replace Layer 1, are you trying to scale the rest of the content in some way?


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

yogiyang

India
728 Posts

Posted - Jan 14 2018 :  22:36:11  Show Profile  Reply
Hello Nigel,

Yes. After I scale Layer 0 based on the scaled (which may be either enlarged or reduced) I am trying to scale the rest of the layers and place (X and Y) them properly after inserting them in the Main image.

TIA


Yogi Yang
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: