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
 X/Y Addressing (gleaned from Mouse Clicks) is not same on different PC's

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
andyhill Posted - Sep 04 2022 : 21:05:39
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
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Sep 05 2022 : 16:27:37
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
andyhill Posted - Sep 05 2022 : 15:19:04
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
xequte Posted - Sep 04 2022 : 21:41:50
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