Possible to set DPI for DrawString?

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?
 
M

Mark B

Dim image1 As New Bitmap(1, 1)
image1.SetResolution(120, 120)
Dim gr As Graphics = Graphics.FromImage(image1)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top