Convert ImageSource to BitmapImage - WPF

后端 未结 2 1161
梦谈多话
梦谈多话 2021-01-08 00:55

I\'m using a class library that generates a large ImageSource, > 3000x3750 pixels. I would like to convert this ImageSource to BitmapImage so that I can take advantage of De

2条回答
  •  一生所求
    2021-01-08 01:19

    I know it's a old post, but try doing:

    myBitmapImage = myImageSource as BitmapImage;
    

    That works well.

提交回复
热议问题