How to get BitmapSource from BitmapImage?

curiousity picture curiousity · Nov 15, 2011 · Viewed 9k times · Source

How to get BitmapSource from BitmapImage? Or how to convert BitmapImage to BitmapFrame directly? It seems to me that if I have BitmapSource I could use BitmapFrame.Create and finally get BitmapFrame object from given BitmapImage

Answer

parapura rajkumar picture parapura rajkumar · Nov 15, 2011

A BitmapImage inherits from BitmapSource so no conversion is needed