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
 X/Y Addressing (gleaned from Mouse Clicks) is not same on different PC's
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

andyhill

Australia
133 Posts

Posted - Sep 04 2022 :  21:05:39  Show Profile  Reply
PC1 is 2560 x 1600 150% Scaling

PC2 is 1920 x 1080 125% Scaling

How do I get logical conversions of ImageEnView X/Y mouse clicks to represent the same position on the base layer image no matter which PC is used ?

Andy

xequte

38610 Posts

Posted - Sep 04 2022 :  21:41:50  Show Profile  Reply
Hi Andy

To convert screen positions to bitmap positions use:

https://www.imageen.com/help/TImageEnView.XScr2Bmp.html
https://www.imageen.com/help/TImageEnView.YScr2Bmp.html

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

andyhill

Australia
133 Posts

Posted - Sep 05 2022 :  15:19:04  Show Profile  Reply
Thanks Nigel, I have found that to build a SELECT polygon in code one MUST NOT USE Src2Bmp and yet on the other hand one MUST USE Src2Bmp when building a polyline/polygon object in code (same location points). Same goes for Text/Shape TRect off memory.

This is why I originally abandoned Src2Bmp due to what played out as inconsistencies, if you could explain why it is this way it would be helpful to me.





Andy
Go to Top of Page

xequte

38610 Posts

Posted - Sep 05 2022 :  16:27:37  Show Profile  Reply
Hi Andy

Unfortunately in ImageEn, some points return, require or default to screen/client values, and some are bitmap values. You are best to check the documentation for each method which type of value it is.



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