GetDIBits在2000下没问题,可是在98下就返回零.条件是一样的,为什么?

kvk 2003-01-05 02:19:02
int bGotBits = GetDIBits( hdc, (HBITMAP)hbit,
0, // Start scan line
(DWORD)bi.biHeight, // # of scan lines
(LPBYTE)lpbi // address for bitmap bits
+ (bi.biSize + nColors * sizeof(RGBQUAD)),
(LPBITMAPINFO)lpbi, // address of bitmapinfo
(DWORD)DIB_RGB_COLORS); // Use RGB for color table
...全文
23 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
qing_li73 2003-01-05
  • 打赏
  • 举报
回复
See the sample below, FYI:

http://www.codeproject.com/bitmap/dibsection.asp

19,469

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 图形处理/算法
社区管理员
  • 图形处理/算法社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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