Tim Scott

All things for a good .NET geek

  Home  |   Contact  |   Syndication    |   Login
  36 Posts | 0 Stories | 4 Comments | 33 Trackbacks

News


Archives

Post Categories

Image Galleries

Coding

TechEd

October 2005 Entries

JezB asked a question on microsoft.public.dotnet.fra... about how to draw a nice soft shadow behind a rectangular object. I suggested that one way would be to use image slicing and scaling, as per the “old HTML image table” trick.: Make a blurred rectangle in your favorite graphics program. I used Photoshop: Now slice the image into 9 parts, keeping the corners as small as possible but still large enough to contain the entire "corner" part of the image. In this enlarged...

So I stumbled across a post by Michael Kaplan that mentioned something about text rendering in WinFX: “the old Graphics.MeasureString versus the new TextRenderer.MeasureText... “the old Graphics.DrawString versus the new TextRenderer.DrawText“ And two thoughts struck me: “Yay, they fixed Graphics.MeasureString” and “what?! why didn't they fix Graphics.MeasureString?” Well, no, they didn't fix Graphics.MeasureString and DrawString, as that might break...