12-06-2011, 12:10 AM
I am trying to apply GaussianBlur filter on bitmap, like:
Bitmap bmDest = gaussianBlur1.ProcessBitmap(bmSource);
where bmSource is a bitmap with pixel format Format32bppRgb.
All I get, is the exception "Attempted to read or write protected memory."
When testing for example with MorphFilter instead of GaussianBlur, it works correctly inside the same program code.
What might I do wrong?
Thank for any help,
Jüri Helekivi
Bitmap bmDest = gaussianBlur1.ProcessBitmap(bmSource);
where bmSource is a bitmap with pixel format Format32bppRgb.
All I get, is the exception "Attempted to read or write protected memory."
When testing for example with MorphFilter instead of GaussianBlur, it works correctly inside the same program code.
What might I do wrong?
Thank for any help,
Jüri Helekivi