Mark Levison

Musings on No Touch Deployment, .NET development and photography

<November 2008>
SuMoTuWeThFrSa
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456


Navigation

Other

Blogroll

Subscriptions

Post Categories



Friday, September 17, 2004 - Posts

Great WinForms and GDI+ Tricks for spiffing up your application
Wesner Moise has some great tips in "Simple Changes To Spiff Up Your App UI". I especially like:
  • GDI+ alphablending and gradients. Most developers know about gradients, but few realize that gradients can be applied with one or more colors partially opaque (an alpha less than 255). For example by creating a new LinearGradientBrush(rect, Color.FromArgb(128, Colors.White), Color.FromArgb(0, Colors.White), 45) and applying it over the drawing area of a control after painting, you can add pseudo-lighting effects on control. Alphablending and gradients are often used to create gel buttons, often seen in the Macintosh.
I was already using a variation of this, doing it the hard way, on a per element in basis some of my charts. This could give me another tiny speedup.

posted Friday, September 17, 2004 9:20 AM by mlevison with 0 Comments

L'Shana Tova
May the New Year (5765) be a good year to you.

posted Friday, September 17, 2004 8:16 AM by mlevison with 0 Comments




Powered by Dot Net Junkies, by Telligent Systems