111,132
社区成员
发帖
与我相关
我的任务
分享
private BitmapSource ByteArrayToBitmapImage(byte[] byteArray)
{
BitmapSource bmp = null;
bmp = BitmapImage.Create(704, 576, 96, 96, PixelFormats.Rgb24, MainWindow.myPalette, byteArray, 704 * PixelFormats.Rgb24.BitsPerPixel / 8);
return bmp;
}
