Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: Crop/Trim White space around an image

$
0
0
Hi,

I would like to crop the white space around an image. Below is the code I'm using. But it doesn't works. Am I missing anything?
using (MagickImage image = new MagickImage(@"D:\image\input.jpg"))
            {                
                image.Trim();                
                image.Write(@"D:\out.jpg");
            }
Below is the image I'm trying to trim.
Image

Screenshot: http://screencast.com/t/NmQ7321tq7yp

Viewing all articles
Browse latest Browse all 3693

Trending Articles