How create glossy button in C#?

hashi picture hashi · Jun 25, 2011 · Viewed 20.7k times · Source

I want create glossy buttons with GDI+ or Silverlight with C#, any ideas or trickery how to create a glossy button? Somethings like images below:

I am interesting more in GDI+ solutions.

http://i.stack.imgur.com/ZguQG.jpg

Answer

Ian Boyd picture Ian Boyd · Jun 25, 2011

Chris Jackson, Microsoft Appcompat Guy, wrote that for .NET (i.e. C# and GDI+).

 

enter image description here
Windows Forms Gel Buttons : First Revision

 

enter image description here
Windows Forms Gel Buttons : Second Revision

 

enter image description here
Windows Forms Gel Buttons - Third Revision

All the code is there, along with careful consideration of

  • scaling with high dpi
  • performance and bitmap caching