我正在使用Wpf c#并在托管c ++中使用依赖项目。我必须从dicom文件创建一个位图。我有
“CreateBitmapSourceFromMemorySection
这段代码是这样的:
bmpsou = safe_cast<InteropBitmap^>(System::Windows::Interop::Imaging::CreateBitmapSourceFromMemorySection(
IntPtr(section), di->getWidth(), di->getHeight(), PixelFormats::Bgr32,di->getWidth() * 4, 0 )) ;
您能否提出解决此问题的任何解决方案