 |
 |

11-08-2006, 06:55 PM
|
 |
Contributor
|
|
Join Date: Jun 2005
Posts: 588
|
|
drawstring antialiasing
|
im designing a simple auto-run type app with some buttons, and to minimize the code used to select the buttons, i draw in the strings on seperate controls (larger buttons) and for a simple version, it works fine. The problem however is that im making more of an editor for it so u can type in names of buttons, title, etc and itll autocreate an ini config file for it to load data from. In this, i load the buttons without textboxes so the user can type his/her message in, but the textboxes have more antialiased or smoother text, and it doesnt look exactly as the final product will look. Any way to change the smoothness on the e.graphics.drawstring("") text?
thx in advance
|
__________________
Example is good. It is up to you, however, to take advantage of that example, and learn from it.
|

11-09-2006, 06:34 AM
|
 |
Contributor
|
|
Join Date: Oct 2002
Location: Ocala, Fl.
Posts: 597
|
|
|
look at the E.Graphics.SmoothingMode
|
__________________
Plotting to take over the world since 1978
|

11-09-2006, 01:13 PM
|
 |
Contributor
|
|
Join Date: Jun 2005
Posts: 588
|
|
|
i tried changing the option of anti-alias, but maybe thats not exactly what i need, if u look at the images posted, even with AA on the text, it looks uncomparable to the text that was typed... The typed text simply looks much smoother. Any ideas how to fix this?
From left to right:
DrawString with AA on
DrawString with AA off
Typed String in Textbox on whatever it's default value is
|
__________________
Example is good. It is up to you, however, to take advantage of that example, and learn from it.
|

11-09-2006, 01:21 PM
|
|
Ultimate Contributor
Retired Leader * Expert *
|
|
Join Date: Jul 2003
Location: Camp Hill, PA
Posts: 1,992
|
|
|
SmoothingMode is only used for shapes and other non-text drawing. TextRenderingHint is used for text.
|
|

11-09-2006, 01:35 PM
|
 |
Contributor
|
|
Join Date: Jun 2005
Posts: 588
|
|
|
thx, thats what i was looking for, text looks identical now :P
|
__________________
Example is good. It is up to you, however, to take advantage of that example, and learn from it.
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
|
|
 |
|