Clearing ColorConvertedBitmap in C#
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 ano开发者_开发百科ther transformation. How to reset the values of ColorConvertedBitmap?
Thank you for the reply!
Cheers
I've never used that class, but just looking at the members, it seems like setting the Source property would let you reuse it
精彩评论