.netwpfimageimagemagickrich-media

.NET: Replacing ImageMagick with WPF-objects


We've all seen cool WPF demo-applications with rich media.

My question is if WPF-objects can replace some basic functionality in ImageMagick. Basic functions like resizing images, cropping and so on.

The results from .NET 2.0's System.Graphics-namespace's resizing is just sad (GDI+). Maybe I'm using it wrong, but out of the box it seems to be.

Also, a good bet would be that the API:s for WPF are a bit sharper than ImageMagick's .NET APIs.

Update: My thought was that WPF maybe would have an object for Image-manipulation. Like GDI has System.Drawing.Image and System.Drawing.Bitmap. But I was hoping that WPF's object was more performant and better in quality at, for example, image-resizing.


Solution

  • You can just use the plain old System.Drawing-namespace. Just use the correct objects, methods and paramaters and the resized images won't suck.

    http://weblogs.asp.net/gunnarpeipman/archive/2009/04/02/resizing-images-without-loss-of-quality.aspx