[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

microsoft.public.dotnet.framework

y of baseline in millimeter

Marco Rego

3/4/2008 8:49:00 PM

I need a method to write a string on a graphics pretty similar to DrawString
but instead of specifying the (x,y) of the upper left corner of the imaginary
rectangle that surrounds the string, I would like to specify the (x, y) of
the baseline of the first caracter.
Also, I use graph.PageUnit = GraphicsUnit.Millimeter, so, the (x,y) should
be in millimeter.

I tried to use some Font and FontFamily methods but couldn't figure out how
to convert design unit metric into millimeter.

Could someone help me ?

______
Marco
1 Answer

Family Tree Mike

3/5/2008 3:26:00 AM

0



"Marco Rego" wrote:

> I need a method to write a string on a graphics pretty similar to DrawString
> but instead of specifying the (x,y) of the upper left corner of the imaginary
> rectangle that surrounds the string, I would like to specify the (x, y) of
> the baseline of the first caracter.
> Also, I use graph.PageUnit = GraphicsUnit.Millimeter, so, the (x,y) should
> be in millimeter.
>
> I tried to use some Font and FontFamily methods but couldn't figure out how
> to convert design unit metric into millimeter.
>
> Could someone help me ?
>
> ______
> Marco

You should start at Bob Powell's website (http://www.bob...) and look
at graphic transformations. There is a FAQ page covering this.