Click here to Skip to main content
15,917,618 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to create multiple connections in a client application Pin
Ajithevn22-Oct-09 0:11
Ajithevn22-Oct-09 0:11 
AnswerRe: how to create multiple connections in a client application Pin
Abhishek Sur22-Oct-09 0:07
professionalAbhishek Sur22-Oct-09 0:07 
GeneralRe: how to create multiple connections in a client application Pin
Ajithevn22-Oct-09 0:17
Ajithevn22-Oct-09 0:17 
QuestionRe: how to create multiple connections in a client application Pin
Ajithevn22-Oct-09 1:04
Ajithevn22-Oct-09 1:04 
QuestionText blurring using Graphics.Drawstring Pin
Björn T.J.M. Spruit21-Oct-09 23:04
Björn T.J.M. Spruit21-Oct-09 23:04 
AnswerRe: Text blurring using Graphics.Drawstring Pin
Björn T.J.M. Spruit22-Oct-09 1:54
Björn T.J.M. Spruit22-Oct-09 1:54 
GeneralRe: Text blurring using Graphics.Drawstring Pin
Covean22-Oct-09 2:15
Covean22-Oct-09 2:15 
GeneralRe: Text blurring using Graphics.Drawstring [modified] Pin
Björn T.J.M. Spruit22-Oct-09 2:54
Björn T.J.M. Spruit22-Oct-09 2:54 
True, that's what they say.
I suggest you try it out and see if there's Glyph manipulation.

Set the TextRenderingHint property of your Graphics object:
g.TextRenderingHint = TextRenderingHint.AntiAlias;

See how it's displayed.
Then remove it and compare the two.
Even though it's already visibly apparent, I would like to urge you to print the two results and compare them.
In my humble opinion, the AntiAlias touches the Glyph.
But I could be mistaken.
If I am mistaken and somehow I seem to have missed what the default does as opposed to what AntiAlias does, then please inform me.
Don't forget to add an informative link, not just for myself, but for others coming across this problem.
Thanks in advance.

Edit:
I indeed stand corrected.
Here's a link explaining how it works:
http://msdn.microsoft.com/en-us/library/ms534404%28VS.85%29.aspx

By setting the TextRenderingHint to AntiAlias, you kill the default corrective Glyph hinting the Graphics object does by itself.
Quote:
"TextRenderingHintSystemDefault
Specifies that a character is drawn using the currently selected system font smoothing mode (also called a rendering hint)."
Quote:
"TextRenderingHintAntiAlias
Specifies that a character is drawn using its antialiased glyph bitmap and no hinting. Stem width differences may be noticeable because hinting is turned off."

Thank you Covean for this insight

modified on Thursday, October 22, 2009 9:07 AM

GeneralRe: Text blurring using Graphics.Drawstring Pin
Covean22-Oct-09 3:18
Covean22-Oct-09 3:18 
GeneralRe: Text blurring using Graphics.Drawstring Pin
Björn T.J.M. Spruit22-Oct-09 3:27
Björn T.J.M. Spruit22-Oct-09 3:27 
NewsRe: Text blurring using Graphics.Drawstring Pin
Björn T.J.M. Spruit30-Oct-09 4:25
Björn T.J.M. Spruit30-Oct-09 4:25 
GeneralRe: Text blurring using Graphics.Drawstring Pin
User 680178026-Feb-10 8:05
User 680178026-Feb-10 8:05 
QuestionHow to pass any text value from form to Crystal Report ? Pin
E_Gold21-Oct-09 22:53
E_Gold21-Oct-09 22:53 
AnswerRe: How to pass any text value from form to Crystal Report ? Pin
Arun Kallingal22-Oct-09 18:24
Arun Kallingal22-Oct-09 18:24 
QuestionSort and get element Pin
abbd21-Oct-09 22:47
abbd21-Oct-09 22:47 
AnswerRe: Sort and get element Pin
nagendrathecoder21-Oct-09 22:53
nagendrathecoder21-Oct-09 22:53 
GeneralRe: Sort and get element Pin
abbd21-Oct-09 22:57
abbd21-Oct-09 22:57 
GeneralRe: Sort and get element Pin
nagendrathecoder21-Oct-09 23:24
nagendrathecoder21-Oct-09 23:24 
AnswerRe: Sort and get element Pin
stancrm21-Oct-09 23:29
stancrm21-Oct-09 23:29 
QuestionWindows programming in C# - API and All? Pin
CelestialCoder21-Oct-09 22:08
CelestialCoder21-Oct-09 22:08 
AnswerRe: Windows programming in C# - API and All? Pin
Richard MacCutchan21-Oct-09 22:49
mveRichard MacCutchan21-Oct-09 22:49 
QuestionClient Server Application C# Pin
Anjum12321-Oct-09 22:03
Anjum12321-Oct-09 22:03 
AnswerRe: Client Server Application C# Pin
SeMartens21-Oct-09 22:22
SeMartens21-Oct-09 22:22 
QuestionIEnumerable<t></t> Pin
mehran.asg21-Oct-09 20:18
mehran.asg21-Oct-09 20:18 
AnswerRe: IEnumerable Pin
SeMartens21-Oct-09 20:32
SeMartens21-Oct-09 20:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.