Help wanted clipping an image region and saving as new bitmap

Feb 10 2009 8:56 AM
Can someone please help me.

What I what to do is display a picture (image) and drawer a clip region using the mouse on a selected area on the image, this could be a retangle, square or a freehand shape, I think this could be done using path geometries and clip.

I can get to the point of creating the clipped image as in this example.
http://msdn.microsoft.com/en-us/library/ms751808(VS.85).aspx

but what I now want to do is save the clipped image as a new image (bitmap).

but I am not sure how to do this.

does anyone have any sample code, or suggestions.

This can be in either vb.net or c#

Thanks

Brought to you by: JavaScript SDK for Bold BI dashboard and analytics embedding. Free trial.

Answers (2)