views:

1398

answers:

3

I need to apply a blur to a System.Drawing.Bitmap. The classes in System.Drawing are supposed to be wrappers around GDI+, so I'd I use the GDI+ Blur effect. Is this possible, and if so, how?

Edit: I don't want to know how to write my own Blur effect, I want to know how to use the built-in GDI+ one.

A: 

Take a look to this Codeproject article:Image Processing for Dummies with C# and GDI+ Part 2 - Convolution Filters

Stormenet
That article explains how to create a drop shadow by hand; I want to do it using the GDI+ blur effect.
Simon
Thanks for taking the effort to read the whole article... If you'd read the whole article you would see it has an "blur" region too. And if you log in you can download the source.
Stormenet
I did; but I mistyped 'drop shadow' for 'blur'. It explains how to blur by hand, but I'm not interested in that; I want to use the GDI+ blur effect.
Simon
A: 

I realize this is yet another suggestion that does not show you how to use GDI+ Blur, but I honestly cannot find it myself. I can see the reference in MSDN and the OS list for the Blur class in GDI+ only goes up to Win 2000. Perhaps it just doesn't exist anymore. If this helps at all, here is an EXCELLENT link on implimenting your own Blur in C#

http://home.scarlet.be/zoetrope/blur.htm

If that's not fast enough then give this a try:

http://www.cnblogs.com/dah/archive/2007/03/30/694527.html

...of course, you'll have to translate a little chinese.

nbdeveloper