CreateDIBSection创建32*32的32位位图的代码段
2011-04-14 15:00
113 查看
DWORD nWidth = 32;
DWORD nHeight = 32;
PVOIL pBits = NULL;
BITMAPINFO bi;
bi.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
bi.bmiHeader.biWidth = nWidth;
bi.bmiHeader.biHeight = nHeight;
bi.bmiHeader.biPlanes = 1;
bi.bmiHeader.biBitCount = 32;
bi.bmiHeader.biCompression = BI_RGB;
bi.bmiHeader.biSizeImage = nHeight * nWidth * 4;
CreateDIBSection(NULL, &bi, DIB_RGB_COLORS, &pBits, NULL, NULL);
DWORD nHeight = 32;
PVOIL pBits = NULL;
BITMAPINFO bi;
bi.bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
bi.bmiHeader.biWidth = nWidth;
bi.bmiHeader.biHeight = nHeight;
bi.bmiHeader.biPlanes = 1;
bi.bmiHeader.biBitCount = 32;
bi.bmiHeader.biCompression = BI_RGB;
bi.bmiHeader.biSizeImage = nHeight * nWidth * 4;
CreateDIBSection(NULL, &bi, DIB_RGB_COLORS, &pBits, NULL, NULL);
相关文章推荐
- CreateDIBSection创建32*32的32位位图的代码段
- Object-c 纯手写方法CRC8,16,32,跟我用笔计算的一样,不过跟那些代码算法结果32位的不同
- VS2012不能打开和创建新项目,提示GUID必须是32位
- C# Excel 创建、打开、读取、写入、保存的一般性代码
- Oracle Convert a 32-bit Database to 64-bit Database(32位 转到 64位)说明
- 直接用php创建word文档代码(系统无需安装word软件)
- xib和代码创建viewcontroller后在viewdidload里面获得的self.view的大小问题
- 32位的Ubuntu16.04安装QT5.8,并编译实现window环境下的代码
- wsdl文件用SoapUI快速创建WebService,CXF生成客户端代码
- 如何在Drupal7中用代码批量创建节点、评论和分类
- 一行代码不用敲,15分钟轻松搞定GIS开发,GISer福音,教你如何从下载到使用webappbuilder创建第一个应用程序(不用申请有使用期限的企业账号哦!)
- javascript创建createXmlHttpRequest对象示例代码
- 汇编代码创建从软盘启动的boot loader
- 创建线程的简单代码
- pyqt之使用QtCreator创建第一个简单的窗口(label、pushbutton以及非代码直接从图形界面选择的信号与槽)
- C#创建文本文件代码(超级简单)
- SSM框架——使用MyBatis Generator自动创建代码
- MAC OS X系统创建git服务器,支持mac/windows代码
- 通过代码创建新的窗体
- Sql 用于创建表、存储过程、触发器、标量函数的代码