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.
"Guid" <g.******@wanadoo.frwrote in message
news:OF**************@TK2MSFTNGP04.phx.gbl...
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.AntiAliasGri dFit;
base.OnPaint(pe);
}
Merci d'avance
Guid