 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
MAC Guest
|
Posted: Wed Apr 04, 2007 10:41 pm Post subject: Converting Pixels to CM |
|
|
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
|
Posted: Thu Apr 05, 2007 5:22 pm Post subject: Re: Converting Pixels to CM |
|
|
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
|
Posted: Thu Apr 05, 2007 8:34 pm Post subject: Re: Converting Pixels to CM |
|
|
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 |
|
 |
|
|
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
|
|