Jump to content

Recommended Posts

Posted

This really doesn't bother me very much, but if anyone knows the reason why text is rendered differently then enlighten me please. :)

 

 

So here's*the*crime scene:

 

 

 

http://img220.imageshack.us/img220/5476/a2th2.png

 

Magnified:

http://img227.imageshack.us/img227/8409/a1fd5.png

 

 

Left button has text rendered on Paint event of that button, right button has Text property set to the same text.

 

You can see there is not much difference, though I think right (vista)*version of button looks slightly better.

 

Code that generates .NET button looks like this:

e.Graphics.DrawString("Infinity color", button2.Font, newSolidBrush(button2.ForeColor), x, y);

I don't see why these two buttons don't render the same. Does Vista use newer version of anti-aliasing technology that is not available in .NET?

 

(guess I'll have to go fiddle with win32 api - but I don't want to :P)

 

 

 

More...

 

View All Our Microsoft Related Feeds

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...