How to convert Byte[] to BitmapImage

前端 未结 4 1933
傲寒
傲寒 2020-12-10 02:32

I need help, I have this method to get a BitmapImage from a Byte[]

public BitmapSource ByteToBitmapSource(byte[] image)
{
    BitmapImage imageSource = new B         


        
4条回答
  •  -上瘾入骨i
    2020-12-10 03:19

    You should provide us with more info on your image.
    I can assume it's unsupported by the system, which I would then advice you to use an external tool, such as imageMagik or any other converter specific to your image.

提交回复
热议问题