Reputation: 1
I'm trying to convert a BitmapImage to a byte array or a stream in WinRT 8.1. This was straightforward in Windows 8, since the WriteableBitmap could be created using a BitmapImage, but is no longer so in 8.1. Can anyone point me in the right direction on how to do this in 8.1?
Regards,
Dmitri
Upvotes: 0
Views: 417
Reputation: 31724
I don't believe it was possible in Windows 8, but WinRT XAML Toolkit had some support for a while to load a WriteableBitmap
based on a BitmapImage
, but it actually tries to load it from the same source as the original BI. There is no way to access the pixels of a BI itself, so if you expect to be doing that - start off with a WriteableBitmap
in the first place.
Upvotes: 1