I am trying to convert a CroppedBitmap to BitmapImage * EDIT:Without using a memorystream.*
I have tried to directly convert it, seems that is not an option. This should't be that hard.
I am attempting to cut out part of a BitmapImage, and create a BitmapImage that contains only the new cropped Bitmap.
It would seem a BitmapImage is a specialized version of BitmapSource (which is what a CroppedBitmap is). You can easily convert from Image to source, but not the otherway around.
This answer likely works, though I never looked into it.
BitmapSource to BitmapImage
The easiest solution for me was to convert all my BitmapImages into BitmapSources. I didn't even have to edit any other code. I guess I wasn't using the specialized parts.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With