y of baseline in millimeter

  • Thread starter Thread starter Marco Rego
  • Start date Start date
M

Marco Rego

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
 
Marco Rego said:
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.bobpowell.net) and look
at graphic transformations. There is a FAQ page covering this.
 
Back
Top