我已经尝试过了,但有异常 - 由于对象的当前状态,操作无效
private BitmapFrame backconvertor(byte[] incomingBuffer)
{
BitmapImage bmpImage = new BitmapImage();
MemoryStream mystream = new MemoryStream(incomingBuffer);
bmpImage.StreamSource = mystream;
BitmapFrame bf = BitmapFrame.Create(bmpImage);
return bf;
}
当我尝试时错误上升
return backconvertor(buff);
在其他功能中(buff - 准备好了!)