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
 Selection XY coordinates

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
aleatprog Posted - Oct 04 2018 : 14:11:53
Using ImageEnView, I like to draw with the mouse [miselect] multiple selections and save the XY coordinates of each rectangle in order to restore the exact position of the multiple selections on other images.

Could you please give me a hint, how to:

- add a selection without pushing the Shift button;
- read the XY coordinates of the selections;
- create the rectangles as selections (not as layer) on an image?

Thanks a lot,
Ale
4   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Oct 07 2018 : 18:38:08
Hi

You should iterate through the selection using the PolySelPoints array:

https://www.imageen.com/help/TImageEnView.PolySel.html

If there are multiple selections, they will be separated by the point($FFFFF, $FFFFF)

Nigel
Xequte Software
www.imageen.com
aleatprog Posted - Oct 07 2018 : 05:09:59
The output file created by TImageEnView.SaveSelectionToFile doesn't give me access to the XY coordinates of each single selection of the multiple selection, but I need them as I like to assign a different operation to each single selection.

I'll give your following approach a try:
https://www.imageen.com/ieforum/topic.asp?TOPIC_ID=990
aleatprog Posted - Oct 05 2018 : 09:45:41
Perfect. Thank you, Nigel.
xequte Posted - Oct 05 2018 : 00:32:46
Hi Ale

Use ShiftKeyLock to force selection addition (without using shift key)

https://www.imageen.com/help/TImageEnView.ShiftKeyLock.html

You can save and reload selections using:

https://www.imageen.com/help/TImageEnView.SaveSelectionToFile.html



Nigel
Xequte Software
www.imageen.com