Possible to set DPI for DrawString?

  • Thread starter Thread starter Mark B
  • Start date Start date
M

Mark B

Depending on the computer's current DPI setting, DrawString produces
different quality (and size) of text.

My laptop here has my local ASP.NET website and my computer is set to 120
DPI.

My webhost (www.serverintellect.com) has their server set to 96 DPI.

When I view an aspx page with an image with DrawString on it, it looks to
have much higher quality text than when their server produces it.

Is there any programmatic way to set DPI for use with DrawString so I can
ramp up the quality of the text?
 
Dim image1 As New Bitmap(1, 1)
image1.SetResolution(120, 120)
Dim gr As Graphics = Graphics.FromImage(image1)
 
Back
Top