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
 Selection
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

chouk

Algeria
28 Posts

Posted - Nov 05 2019 :  13:07:39  Show Profile  Reply
Hi,
I need to make selection/Zone (with mouse or by code) un ImageEnView and
Move / resize this selection by mouse and get/return the new coordinates of the selection.
I tried to make selection par code like
ImageEnView1.select(X1, X2, Y1,Y2);
and return this coordinates by
ImageEnView1.SelX1..
but the values didn't match the initial values.
Thank's for help.

Choukri

xequte

38608 Posts

Posted - Nov 05 2019 :  20:56:43  Show Profile  Reply
Hi Choukri

ImageEnView1.SelX1/SelY1/SelX2/SelY2 return values relative to the Bitmap.

ImageEnView1.Select can either use Bitmap or ClientArea values:

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

Depending on the value of SelectionBase (which is ClientArea by default):

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

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: