Vc 显示 bmp 图像 最少的代码 (6行) 单文档.pptVIP

  • 1
  • 0
  • 约小于1千字
  • 约 4页
  • 2017-02-05 发布于河南
  • 举报

Vc 显示 bmp 图像 最少的代码 (6行) 单文档.ppt

Vc 显示 bmp 图像 最少的代码 (6行) 11 20 程序 运行效果 方法 1 vc 建立一个单文档的项目 2 resource 资源中载入bmp文件 3 在classView 中展开 4 在ondraw 函数中写入以下代码 既可。 CBitmap bitmap; CDC dcMemory; bitmap.LoadBitmap(IDB_BITMAP1); dcMemory.CreateCompatibleDC(pDC); dcMemory.SelectObject(bitmap); pDC-BitBlt(0,0,600,900,dcMemory,0,0,SRCCOPY); * *

文档评论(0)

1亿VIP精品文档

相关文档