Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I use the GDI+ blur effect on a .NET Bitmap?

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.

like image 775
Simon Avatar asked Jun 30 '09 08:06

Simon


1 Answers

I have developed a library on codeplex to do just this, the next version will have full legacy support for xp (with slower processing functions) for all effects, the current version only works on vista and above, you can find it at:

http://csharpgdiplus11.codeplex.com/

It comes with full source, so you can see how it's done.

like image 114
Aaron Murgatroyd Avatar answered Sep 28 '22 10:09

Aaron Murgatroyd