Clearing ColorConvertedBitmap in C#

Posted by Jamie on Stack Overflow See other posts from Stack Overflow or by Jamie
Published on 2010-06-10T22:21:43Z Indexed on 2010/06/10 22:33 UTC
Read the original article Hit count: 242

Filed under:
|
|
|

Hi guys,

the problem is: I want to use the same ColorConvertedBitmap object for two purposes, firstly I set everyting:

ColorConvertedBitmap conv = new ColorConvertedBitmap();
conv.BeginInit();
conv.SourceColorContext = new ColorContext(PixelFormats.Bgra32);
conv.Source = myImage;
conv.DestinationFormat = PixelFormats.Pbgra32;
conv.DestinationColorContext = new ColorContext(PixelFormats.Pbgra32);
conv.EndInit(); 

and then I would like to use the same object for another transformation. How to reset the values of ColorConvertedBitmap?

Thank you for the reply!

Cheers

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET