摘要:
开发过程中经常遇到Array<byte>^ 转成 WriteableBitmap^的问题。刚好抽空写个方法,让大家参数。首先:byte*BufferFromWriteableBitmap(WriteableBitmap^bitmap){IUnknown*pUnknown=reinterpret_cast<IUnknown*>(bitmap->PixelBuffer);IBufferByteAccess*pBufferByteAccess=nullptr;HRESULThr=pUnknown->QueryInterface(IID_PPV_ARGS(& 阅读全文