RenderTargetBitmap for BitmapImage in WPF

Possible duplicate:
Convert RenderTargetBitmap to BitmapImage

I need to do a RenderTargetBitmap -> BitmapImage conversion. What is the way to do this?

Thank you in advance!

Greetings

0
wpf
source share
1 answer

BitmapImage and RenderTargetBitmap inherit directly from BitmapSource. The functionality that BitmapImage provides over BitmapSource is just for the convenience of downloading from a URI. I can’t think of any scenario where you will need BitmapImage, and not BitmapSource (which is already RenderTargetBitmap) after you have already uploaded / displayed the image.

What exactly are you trying to do?

+1
source share

All Articles