Load BitmapImage into WriteableBitmap but no method existing

前端 未结 2 765
醉酒成梦
醉酒成梦 2021-01-16 11:39

The constructor of WriteableBitmap class with Windows 8 only takes two arguments: the height and the width of this object. Meanwhile with Silverlight it accepts

2条回答
  •  半阙折子戏
    2021-01-16 12:22

    You should be able to load a BitmapImage into WritableBitmap like this:

    WriteableBitmap writableBitmap = new WriteableBitmap(bitmapImage);
    

    See here WriteableBitmap Constructor (BitmapSource)

提交回复
热议问题