From: Daan L. <daa...@xs...> - 2004-04-11 14:22:19
|
Hi Shelarcy, On Fri, 09 Apr 2004 19:27:57 +0900, shelarcy <she...@ca...> wrote: > I was making a Filter (Low pass Filter) programm in wxHaskell. > [snip] > > im <- imageCreateFromBitmap bm > pxe <- imageGetPixelBuffer im > [snip] > fillpixelBuffer pxe > bm2 <- bitmapCreateFromImage im (-1) > [snip] > > But these code doesn't work. > > Where is wrong? I think that when you get the pixelbuffer from an image, you get a fresh copy and you are not manipulating the image itself. So, you probably need to use "imageCreateFromPixelBuffer" to create a new "image" from the pixelbuffer again. (See the "PaintDirect" sample in the contrib directory) I hope this helps, All the best, Daan. |