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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top