Antialiasing

  • Thread starter Bob Powell [MVP]
  • Start date
B

Bob Powell [MVP]

Salut,

Generalement, un control vanille windows forms est en fait rien qu'un
"wrapper" au tour d'un control Win32 donc le rendu du texte est fait en mode
GDI et pas avec GDI+. Meme si le control est surcharger dans le maniere vous
vous suggerer ca changera rien.

La seul moyenne d'ameliorer le rendu du text par ces controls est de
selectionner ClearType au niveau du systeme.

Autrement, basculer vers WPF.

--
--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
G

Guid

Bonjour,
je cherche un moyen d'appliquer un anti aliasing sur l'ensemble de mon
application.

Actuellement je suis a meme de le faire sur chaque controle en redefinissant
la methode paint.
Cela impliquerai que je dois redefinir chaque control ... c'est balo !

exemple :
protected override void OnPaint(PaintEventArgs pe)

{

pe.Graphics.TextRenderingHint =
System.Drawing.Text.TextRenderingHint.AntiAliasGridFit;

base.OnPaint(pe);

}

Merci d'avance

Guid
 
R

RobinS

Geez, Bob, is there anything you can't do??? I mean (and this is going to be
bad, since high school was a long time ago), "Geez, Bob, est-ce que il n'ya
pas que vous pouvez faire?"

RobinS.
 

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