I found a C# script to copy any irregular portion from an image (using free hand drawing) and put it on another image. I have never worked with C#. All I want is to copy the irregular part and save it as a new image with transparent background (png format) with fixed width and height, say 140x50. Can anyone make the necessary code changes and post here??

URL to the script: Click Here

Re: Crop irregular portion of image and save as new image 80 80

instead of picDestination.Image = dest_bm;, try dest_bm.Save(@"path to save"). 'path to save' is the path to where you want to save the image.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.