wpf Image控件显示 byte数组数据

byte[] _btyes = _Redis.GetObjByte(“img”);

System.Drawing.Image image = System.Drawing.Image.FromStream(new MemoryStream(_btyes));

Image1.Source = Universal_ClassLibrary.ConvertTo.BitmapToBitmapImage((Bitmap)image, ImageFormat.Png);