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
 Scaling Multi Layered Image

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 14 2016 : 23:40:14
Hello,

I have run into a very typical problem.

In that software that we have developed the end user composes a complete design with multiple layers, masks, text layers, etc. at size 12 inches X 18 inches.

Now after completing composition the use wants to enlarge the whole composed to
14 inches X 20 inches (or 12 inches X 24 inches).

To accomplish this what I am doing is looping from 0th layer to max layer and enlarging each layer as per calculated enlargement percentage, but I am not able to calculate the exact horizontal and vertical location of each layer. Because of this layers seem to get misaligned after enlargement.

How can we achieve this?

Note: in all cased the largest layer (in terms of size) is the 0th Layer.

TIA

Yogi Yang


Yogi Yang
2   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jan 18 2016 : 22:47:26
Hi

The next update includes the methods:
  • TImageEnView.LayersRotateAll
  • TImageEnView.LayersRepositionAll
  • TImageEnView.LayersSizeAll


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
spetric Posted - Jan 15 2016 : 16:47:00
Hi,

I think you should shift layers centers by enlargement amount.

Some ad hoc solution would be to calculate and save layers center points
in some TPoint array before enlargement process. After enlargement process, get new layers center points and shift PosX and PosY by the difference between old and new center points...something like that.

HTH,
Siniša.