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
 Questions about miSelectPolygon / Layer
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

flatserv

Germany
22 Posts

Posted - Jun 01 2012 :  13:14:59  Show Profile  Reply
Hi,

i have 2 questions:

- If i set MouseInteract := [miSelectPolygon] and select a region, how can I close my selected region? I want to remove the selected using ClearSel, but without closing the region the complete image is away …
- Is there a way to move the selected region instead of moving the complete Layer? For example I want to select an eye using Magic Wand and want to move this selection to another place on the same layer.

w2m

USA
1990 Posts

Posted - Jun 01 2012 :  16:06:33  Show Profile  Reply
There maybe other ways, but try selecting an eye with miSelectCircle, after you make the selection, position the selection over the first eye... Then press and hold the SHIFT Key and select the second eye. Unfortunately I know of no way to position the second selection precisely over the eye without moving the selection over the first eye.

If you happen to click on the screen after making both selections, both selections will be removed. If you try to reposition the second selection over the second eye, the first selection will move with the second selection and will probably not be where you want it to be (over the first eye), so you have to click on the screen to clear the selection and start over.

It would be nice to be able to position multiple selections around on the screen for this sort of thing, so you could select the first eye, reposition the selection precisely where you want it on the first eye, then press and hold the SHIFT key to select the second eye, then reposition the selection precisely where you want it over the second eye but ImageEn does not support this feature.

The good news is even if you do not have the selections precisely where you want, but the selection covers all of the red part of the eye then you call RemoveRedEyes the area around the eye is not changed very much because the selection is quite small and only the portion of the selection that is red will be changed. What this means is that precise selection of just the red area of an eye is usually not necessary, but if your selection does not include all of the red part of the eye, the unselected red part of the eye will not be changed. In this case you will have to reselect the missed part of the redeye and try again.

From my electronic book in draft "A Programmers Introduction To Using The ImageEn Image Library". Release date is not known.

William Miller
Go to Top of Page

flatserv

Germany
22 Posts

Posted - Jun 02 2012 :  01:33:34  Show Profile  Reply
Ok, no eye moving.

But do you know a way to solve this problem?

If i set MouseInteract := [miSelectPolygon] and select a region, how can I "close" my selected region? I want to remove the selected using ClearSel, but without closing the region the complete image is away. For example, try to select a trapeze (Trapez), where all borders closed ... It is not possible and i need a way to do this.


BTW: Do you write eBooks about ImageEn? Please let as know ...
Go to Top of Page

flatserv

Germany
22 Posts

Posted - Jun 02 2012 :  03:51:15  Show Profile  Reply
Found it. Just include iesoRightButtonTerminatePolySelect in SelectOptions or call EndSelect Method.
Go to Top of Page

w2m

USA
1990 Posts

Posted - Jun 02 2012 :  05:12:42  Show Profile  Reply
Yes, I am writing an electronic book about ImageEn. Currently it is about 1,500 pages with enhanced help, discussion and "How To's". The book will be published as a PDF with thousands of links between pages. It is not known when the book will be finished.

William Miller
Go to Top of Page

w2m

USA
1990 Posts

Posted - Jun 02 2012 :  05:19:34  Show Profile  Reply
You can also double click the polygon to end selection.

William Miller
Go to Top of Page

flatserv

Germany
22 Posts

Posted - Jun 02 2012 :  06:11:16  Show Profile  Reply
If you need a beta tester for your PDF, please let me know :)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: