8,735
社区成员
发帖
与我相关
我的任务
分享
byte[] rawImage = new byte[1024];
System.IO.Stream stream = new MemoryStream(rawImage,true);
BitmapSource bitmap = new BitmapImage();
bitmap.SetSource(stream);
// Create an image element;
Image myImage = new Image();
myImage.Width = 200;
// Set image source.
myImage.Source = bitmap;