[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.drawing

ScaleWidth, ScaleHeight in VB.Net

Sam

10/25/2004 7:38:00 PM

Does anyone have an alternative to convert a panel's width and height in
pixels to Inches other than assuming that there are 96 pixels per inch and
then Width/96 Height/96? I also need to track down distance in the mouse
move event in inch. Thanks in advance for all suggestions

Sam


1 Answer

Bob Powell

10/25/2004 11:38:00 PM

0

The GDI+ FAQ has an article on mapping mouse positions to real-world values.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdipl...

The GDI+ FAQ RSS feed: http://www.bobpowell.net/f...
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tips...
Bob's Blog: http://bobpowelldotnet.blogspot.co...






"Sam" <qdo@datawave.ca> wrote in message
news:uw89gosuEHA.3592@TK2MSFTNGP11.phx.gbl...
> Does anyone have an alternative to convert a panel's width and height in
> pixels to Inches other than assuming that there are 96 pixels per inch and
> then Width/96 Height/96? I also need to track down distance in the mouse
> move event in inch. Thanks in advance for all suggestions
>
> Sam
>
>