473,788 Members | 2,726 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Antialiasing

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(PaintEv entArgs pe)

{

pe.Graphics.Tex tRenderingHint =
System.Drawing. Text.TextRender ingHint.AntiAli asGridFit;

base.OnPaint(pe );

}

Merci d'avance

Guid
Feb 8 '08 #1
3 1712
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.******@wanad oo.frwrote in message
news:OF******** ******@TK2MSFTN GP04.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(PaintEv entArgs pe)

{

pe.Graphics.Tex tRenderingHint =
System.Drawing. Text.TextRender ingHint.AntiAli asGridFit;

base.OnPaint(pe );

}

Merci d'avance

Guid

Feb 8 '08 #2
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.
----------------------------
"Bob Powell [MVP]" <bo*@spamkiller bobpowell.netwr ote in message
news:64******** *************** ***********@mic rosoft.com...
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.******@wanad oo.frwrote in message
news:OF******** ******@TK2MSFTN GP04.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
redefinissan t la methode paint.
Cela impliquerai que je dois redefinir chaque control ... c'est balo !

exemple :
protected override void OnPaint(PaintEv entArgs pe)

{

pe.Graphics.Tex tRenderingHint =
System.Drawing .Text.TextRende ringHint.AntiAl iasGridFit;

base.OnPaint(pe );

}

Merci d'avance

Guid

Feb 9 '08 #3
He does Klingon, Greek and Double Dutch as well. :)
"RobinS" <ro****@imnotte lling.comwrote in message
news:H_******** *************** *******@comcast .com...
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.
----------------------------
"Bob Powell [MVP]" <bo*@spamkiller bobpowell.netwr ote in message
news:64******** *************** ***********@mic rosoft.com...
>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.******@wanad oo.frwrote in message
news:OF******* *******@TK2MSFT NGP04.phx.gbl.. .
>>Bonjour,
je cherche un moyen d'appliquer un anti aliasing sur l'ensemble de mon
application .

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

exemple :
protected override void OnPaint(PaintEv entArgs pe)

{

pe.Graphics.Tex tRenderingHint =
System.Drawin g.Text.TextRend eringHint.AntiA liasGridFit;

base.OnPaint(pe );

}

Merci d'avance

Guid

Feb 9 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4416
by: Leif Wessman | last post by:
From: http://www.php.net/manual/en/function.imagettftext.php "color is the color index. Using the negative of a color index has the effect of turning off antialiasing." I'm using a bundled version of GD: 2.0.23 compatible. When using the function imagettftext() with a negative color to get a aliased text as stated in the docs the text gets grainy. Not antialised, and not aliased. Something in between (ugly!). I've tried several fonts....
4
3967
by: Laszlo Zsolt Nagy | last post by:
Hi all, I have a little problem with PIL. I need to display images in a browser (thumbnails) (this is the selector window). I also need the original version of the image to be displayed in a Java applet. One example: thumbnail: http://designasign.biz/applet/GIF_Small/AIRCRAFT/a10per.png
1
1378
by: PJ6 | last post by:
I was provided a bitmap containing some text as a starting point for a header design. In translating it to a table and real text, it just doesn't look as good as the original because the font rendering isn't antialiased - it's downright jagged. Is there a way to smooth the font a bit or will I have to render my own bitmaps for a better look? Paul
4
5762
by: Smoke | last post by:
It is possible to draw a line on a control using AA? basically, i need the normal .DrawLine funcion but that support antia aliasing. is this possible? can somebody tellme how? Thanks for the help, as usual
0
1088
by: Turbot | last post by:
Does anyone know how to stop a RichTextBox control from antialiasing the text you enter into it?
2
1719
by: Al Reid | last post by:
I have a series of bitonal TIFF images that I need to display to the user in a form and the image needs to be displayed to fit the container (PictureBox). I also need to antialias the image for display quality reasons. I can display the TIFF easy enough, and get it to fit (.SixeMode=Zoom) but I cant figure out how to antialias it. I know it has something to do with InterpolationMode and/or SmoothingMode, but I just can't seem to get the...
1
9654
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej and I was wondering if anyone here would be able to give me some tips for young players such as myself, for learning the language. Is this the best Newsgroup for support with JAVA?
8
6510
by: _DD | last post by:
It seems that there is some odd interaction with LinearGradientBrush that depends on positioning. A simple test: --------- Rectangle Square = new Rectangle(.....); in Paint: LinearGradientBrush ShadeBrush = new LinearGradientBrush(
2
7011
by: RSH | last post by:
I have been experimenting with overriding the Paint event on Win Form controls...more specifically trying to force the text to render as Antialiased text. I have not been successful in any of the methods Ive tried...is there a trick? Any information or examples would be greatly appreciated. Thanks! Ron
0
9656
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10366
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10175
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10112
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6750
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5399
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3675
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.