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
 ROI (ROI2-ROI1) selection question
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

zhengyuanyi27

58 Posts

Posted - Oct 10 2020 :  13:12:25  Show Profile  Reply
I just wonder whether it is possible to make the following selection? Thanks.
I know it doesn't permit us to make multiple ROI selections in one Imageenvect, I wonder whether we can make the following selection in two or more Imageenvect.
For example,
Open the same Image in Imageenvect1 and Imageenvect2 and Imageenvecr3.
select ROI-1 in Imageenvect1, and then select a bigger ROI in Imageenvect2, and the program will automatically select the area ROI3 which is inside ROI2 and outside ROI1 (ROI2-ROI1) in Imageenvect3.
Thanks a lot.




xequte

38182 Posts

Posted - Oct 11 2020 :  17:06:26  Show Profile  Reply
Hi

To remove from an existing selection with code use the iespSubtract parameter of Select():

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

The user can do the same by holding down the Ctrl key while selecting. Or it can be forced with:

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

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

zhengyuanyi27

58 Posts

Posted - Oct 13 2020 :  13:07:50  Show Profile  Reply
Thank you very much.
The following codes work very well.
ImageEnView1.Select( 42, 133, 826, 614, iespReplace );
imageenview1.select( 100, 153, 426, 360, iespSubtract );

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: