WPF - How to save a Image with PixelShader effect applied to file?

B

Bruno

Hello,
I have a WPF application, and this application has an Image control with a
PixelShader effect applied, but when I try to save it (using
RenderTargetBitmap) the image file is saved entirely in Red, deppending on
the values passed to the shader effect, it's a Brightness and Constrast
effect.

If I remove the Effect from the Image control, it saves ok, but I really
need to save it with the effects applied.

I also have more PixelShader effects in other controls, if I were using only
brightness and contrast, I would make it without using shaders, but I have
more... So I need a solution for this.

Can anyone help?

thanks!


__________ Information from ESET NOD32 Antivirus, version of virus signature database 4133 (20090605) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top