Posted By: John Melville-- MD | Jan 15th, 2007 @ 6:18 PM
page 1 of 1
Comments: 2 | Views: 2392 | Downloads: 244
John Melville-- MD
John Melville-- MD
Equality Through Technology
Download:Link for Bitmapeffects reprocessed sample(0 Bytes)

I need to write a custom Bitmapeffect for a project I am working on and have sound a surprising absence of samples and details about how to make anything work.  Even more depressing is that even after I found RGBFilterEffect in the SDK, it didn't compile, and then it crashed, and then it required com registration, and on and on.

Lou Franco presents an interesting idea that branches off the sample,  write the BitmapEffect in C++/CLI and then you can package the managed and unmanaged code in a single assembly.  Furthermore since the unmanaged half is living in the same assembly, a little bit of COM goo (that I frankly don't understand) removes the requirement of COM registration, and restores our favorite CLR x-copy deployment paradigm.

Unfortunately, Lou, doesn't give a complete sample and his code doesn't quite compile.  I spent the better part of two days mucking around in C++/CLI, a language I don't really understand, to get everything pasted together and working.  I thought I would share the result.

For those of you, like me who couldn't care less about the pipes and just want to muck with the pixels look in in the RGBFilterEffect.CPP  CRGBFilterEffect::GetOutput

Hi,

Like you, I am totally frustrated by the lack of information on implementing bitmap effects under WPF. I have messed with RGBFilterEffects (thanks for the C++/CLI code and links) and have come across a problem.

The rgb correction seems to work fine until I scale up and rotate the image object. At certain angles, the image is corrupted. You can verify this by adjusting the rendering scale and angle within Blend.

I wondered if you had come across a similar problem or had any further pointers and tips.

Thanks

ps sorry if you got a few emails as well. There were server problems.
John Melville, MD wrote:
Lou Franco presents an interesting idea that branches off the sample,  write the... 

The originally posted link appears to now be dead.
Here's the good link to Lou Franco's article that I found.
page 1 of 1
Comments: 2 | Views: 2392 | Downloads: 244
Microsoft Communities