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
 Magnetically attach Layer to ImageEnView?

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
PeterPanino Posted - Sep 01 2020 : 12:41:39
I add a Layer to ImageEnView1 which has the same dimensions as ImageEnView1 to cover it completely:

imgMain.LayersAdd(iesRectangle, 0, 0, imgMain.IEBitmap.Width, imgMain.IEBitmap.Height);


Then, when I zoom-in or zoom-out ImageEnView1, the Layer dimensions seem to follow the dimensions of ImageEnView1, as if the Layer was "magnetically" attached to the ImageEnView1.

1. Is this magnetic attachment of the Layer to ImageEnView1 the normal behavior and will this behavior occur under all circumstances?

But then, when I load another image in ImageEnView1, the Layer keeps its size from the previous image but staying at the same top-left position.

2. Is there a way to automatically set the dimensions of the Layer to the new image loaded in ImageEnView1 or do I have to do that manually?
2   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 02 2020 : 02:14:35
Hi

A layer is zoomed as an image is zoomed. It's size and position are fixed (position is relative to layer 0). It does not follow the size of the layer 0 (background) image. if you want it to do this, just update its size after loading an image.

Nigel
Xequte Software
www.imageen.com
yogiyang Posted - Sep 02 2020 : 00:38:30
 
2. Is there a way to automatically set the dimensions of the Layer to the new image loaded in ImageEnView1 or do I have to do that manually?

You will have to do it manually.


Yogi Yang