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
 Convert GDI coordinates to GDI+ coordinates
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

john_siggy@yahoo.com

USA
158 Posts

Posted - Feb 16 2024 :  09:42:09  Show Profile  Reply
Hey Nigel,

Is there a function to convert GDI coordinates into GDI+ coordinates? Also Font.Size seems different as the GDI+ text is not as wide as the GDI.TextOut.

Thanks in advance


John

xequte

38690 Posts

Posted - Feb 16 2024 :  18:03:46  Show Profile  Reply
Hi John

In both GDI and GDI+ the coordinates are pixel based, so should be the same.

In terms of font, you are probably safer to use Font.Height.

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