开发者

RenderTargetBitmap to BitmapImage in WPF [duplicate]

开发者 https://www.devze.com 2023-01-09 14:54 出处:网络
This question already has answers here: Closed 9 years ago. 开发者_开发百科 Possible Duplicate: Convert RenderTargetBitmap to BitmapImage
This question already has answers here: Closed 9 years ago. 开发者_开发百科

Possible Duplicate:

Convert RenderTargetBitmap to BitmapImage

I need to perform the convertion RenderTargetBitmap -> BitmapImage. What is the way to do that?

Thank you in advance!

Cheers


BitmapImage and RenderTargetBitmap both inherit directly from BitmapSource. The functionality that BitmapImage supplies over BitmapSource is just for ease of loading from an URI. I can't think of any scenario where you would need a BitmapImage rather than a BitmapSource (which RenderTargetBitmap already is) after you already have the image loaded / rendered.

What specifically are you trying to do?

0

精彩评论

暂无评论...
验证码 换一张
取 消