BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Converting Pixels to CM

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics)
View previous topic :: View next topic  
Author Message
MAC
Guest





PostPosted: Wed Apr 04, 2007 10:41 pm    Post subject: Converting Pixels to CM Reply with quote



Hi all,

Can anyone please tell me how I go about converting pixels to centimeters in
borland builder. If anyone can assist me I would be greatly appreciated.

MAC
Back to top
JF Jolin
Guest





PostPosted: Thu Apr 05, 2007 5:22 pm    Post subject: Re: Converting Pixels to CM Reply with quote



ratio for pixel / cm

width -> GetSystemMetrics(SM_CXFULLSCREEN) / GetDeviceCaps(hdc, HORZSIZE) * 10
heidht -> GetSystemMetrics(SM_CYFULLSCREEN) / GetDeviceCaps(hdc, VERTSIZE) * 10


__
JF Jolin
Back to top
MAC
Guest





PostPosted: Thu Apr 05, 2007 8:34 pm    Post subject: Re: Converting Pixels to CM Reply with quote



Thanks
"JF Jolin" <jfj (AT) nospam (DOT) com> wrote in message
news:op.tqa8olyxjr09w3@localhost...
Quote:
ratio for pixel / cm

width -> GetSystemMetrics(SM_CXFULLSCREEN) / GetDeviceCaps(hdc,
HORZSIZE) * 10
heidht -> GetSystemMetrics(SM_CYFULLSCREEN) / GetDeviceCaps(hdc,
VERTSIZE) * 10


__
JF Jolin
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.