Low Quality text in System.Drawing

E

Eugenio

Hi,

I'm working in a image generator, using C# with ASP.NET 2.0.

I'm generate some imagens in disk , in my machine everything works ,
but when i put the application in a server prodution , the text don't
have the same highquality.

Can occur some difference in System.Drawing.DrawString() ?

Eugênio Spolti

Sorry! but my english is very bad.
 
G

Guest

Hi Eugenio,

Don't worry, your english is fine ;-). Set TextRenderingHint property:

graphics.TextRenderingHint =
System.Drawing.Text.TextRenderingHint.AntiAliasGridFit;

before you call DrawString()

Hope this helps
 

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

Staff online

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,152
Latest member
LorettaGur
Top