关于win c中的DIB问题?

pzyny 2000-07-30 07:03:00
已经知道了一个bitmap在内存中的地址pointer和size,请问如何才能把这个位图装入一个HBITMAP句柄中去,是否有这样的函数可直接调用?(在vc++环境下编译)
...全文
132 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
halfdream 2000-08-01
  • 打赏
  • 举报
回复

用HBITMAP CreateBitmapIndirect(
CONST BITMAP *lpbm // pointer to the bitmap data
);
其中:typedef struct tagBITMAP { // bm
LONG bmType;
LONG bmWidth;
LONG bmHeight;
LONG bmWidthBytes;
WORD bmPlanes;
WORD bmBitsPixel;
LPVOID bmBits;
} BITMAP;
programer 2000-07-30
  • 打赏
  • 举报
回复
HBITMAP hBitmap=(HBITMAP)pointer

69,368

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧