WriteableBitmap in .NET 4

Posted by Jamie on Stack Overflow See other posts from Stack Overflow or by Jamie
Published on 2010-06-10T11:07:19Z Indexed on 2010/06/10 11:13 UTC
Read the original article Hit count: 369

Hi there,

I have got a problem: I would like to use a method Render() for WriteableBitmap object. However, as I noticed, the method is not available without using a Silverlight assembly System.Windows.dll. I need to use RenderTargetBitmap in my project (PresentationCore assembly for standard .net). Here is the problem - there are definitions of some classes in both assemblies, thus they are in conflict.

Basically, I need to add some stuff to Bgra32 bitmap. However, RenderTargetBitmap works only with Pbgra32 ones. I found that using WriteableBitmap to render would be nice. Maybe I am wrong?

Do you have any ideas?

Thank you in advance for the reply!

Cheers

© Stack Overflow or respective owner

Related posts about .NET

Related posts about Silverlight