我有wp7的申请。我有必要从 Byte 数组中获取 BitmapImage。我这样做:
using (MemoryStream stream = new MemoryStream(rawImageBytes))
{
BitmapImage imageSource1 = new BitmapImage();
imageSource1.CreateOptions = BitmapCreateOptions.None;
imageSource1.SetSource(stream);
}
运行后,在 string imageSource1.SetSource(stream); 我有错误