【发布时间】:2010-12-16 04:03:04
【问题描述】:
我不知道如何将 C++ CBitmap 编组为 C# Bitmap 或 Image 类。
我的导入如下所示:
[DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr GetBitmap(System.IntPtr hwnd, int nBMPWIDTH, int nBMPHEIGHT);
H 文件部分如下所示:
Cbitmap* GetBitmap(HWND hwnd,int nBMPWIDTH,int nBMPHEIGHT);
如何将 Cbitmap 转换为可以在 C# 中显示的内容?
非常感谢。
【问题讨论】: