Create a path and clip the image to the path.
See Graphics.SetClip and DrawImage...
For the rounded rectangle thing see Windows Forms Tips and Tricks.

Signature
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
Actually this is for an ASP.NET 2.0 app, not a winform app.
Nik Coughlin - 17 May 2007 05:34 GMT
> Actually this is for an ASP.NET 2.0 app, not a winform app.
Makes no difference
On May 15, 4:32 pm, "Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net>
wrote:
> Create a path and clip the image to the path.
>
[quoted text clipped - 26 lines]
>
> > Jim Light.
Bob, I read up on your great FAQ and understand GDI+ a bit better now.
However, I surprised that MS hasn't included a 'roundedges' function.
It seems there are several ways to approach this. Which would be the
most efficient?
Thank you for your time and brain power ;)
Bob Powell [MVP] - 17 May 2007 20:15 GMT
The solution on the FAQ is pretty much the most used and simplest.
Even Chris Sells likes it ;-)
Remember that you can use GDI+ to drawon images in memory and then blast
them out to the response stream....

Signature
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
> On May 15, 4:32 pm, "Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net>
> wrote:
[quoted text clipped - 30 lines]
> most efficient?
> Thank you for your time and brain power ;)