How do I draw a gradated boarder on a polygon using GDI+ via C#/WinForms?
- by AndyJ
Hi,
I have polygons of various shapes and sizes. They have a solid fill and currently a solid border.
I would like to give the polygons a gradient on their edge to soften them.
So far I've tried using a Pen with a LinearGradientBrush and whilst the effect it produces is very interesting it's most defintly not what I want ;)
I've looked through the System.Drawing.Drawing2D namespace but there didnt seem to be any other classes that would be applicable for this purpose.
I've had a search around and the articles that i can find are mostly about creating boarders for rectangles, which are mush easier, or are irrelivent.
So to summerise, does anyone have a way of drawing a gradient boarder on a polygon using GDI+?