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
 Help in replacing 1 Layer with multiple Layers

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
yogiyang Posted - Jan 13 2018 : 02:29:40
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
2   L A T E S T    R E P L I E S    (Newest First)
yogiyang Posted - Jan 14 2018 : 22:36:11
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
xequte Posted - Jan 13 2018 : 13:56:40
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