I would like to trim the alpha whitespace from an existing Image (read from a png). For example: A big transparent image with a small solid circle somewhere shall be trimmed down to a rectangle bearing the circle.

Is there some high level method I can use

Re: Visual C# General Trim transparent whitespace from Image

Peter Ritchie

You'd probably have to use edge detection to find a bounding rectangle for the area you want to crop. It's a rather complex task. is a paper on using edge detection to find shapes in images. df=100&forumid=3567&exp=0&select=1227293 might be useful.