Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Windows Develop GUI Develop
Title: 05 Download
 Description: DWORD size=bitmap.bmWidthBytes*bitmap.bmHeight //图片数据大小 LPSTR lpData=(LPSTR)GlobalAlloc(GPTR,size) int panelsize = 0 //记录调色板大小 if(bitmap.bmBitsPixel<16) //判断是否为真彩色位图 panelsize =(int)pow(2,bitmap.bmBitsPixel*sizeof(RGBQUAD)) BITMAPINFOHEADER*pBInfo = (BITMAPINFOHEADER*)LocalAlloc(LPTR, sizeof(BITMAPINFO)+panelsize) //位图头指针 pBInfo->biBitCount = bitmap.bmBitsPixel //位图像素 pBInfo->biClrImportant = 0 pBInfo->biCompression = 0 pBInfo->biHeight = bitmap.bmHeight //位图高 pBInfo->biPlanes = bitmap.bmPlanes pBInfo->biSize = sizeof(BITMAPINFO) pBInfo->biSizeImage = bitmap.bmWidthBytes*bitmap.bmHeight //数据 pBInfo->biWidth = bitmap.bmWidth //位图宽 pBInfo->biXPelsPerMeter = 0 pBInfo->biYPelsPerMeter = 0 GetDIBits(memDC.m_hDC,bmp,0,pBInfo->biHeight,lpData, (BITMAPINFO*)pBInfo,DIB_RGB_COLORS)
 Downloaders recently: [More information of uploader sunwen0902]
 To Search:
File list (Check if you may need any files):
05
..\GraspBmp
..\........\2011111411m1.bmp
..\........\Debug
..\........\.....\GraspBmp.bsc
..\........\.....\GraspBmp.exe
..\........\.....\GraspBmp.ilk
..\........\.....\GraspBmp.obj
..\........\.....\GraspBmp.pch
..\........\.....\GraspBmp.pdb
..\........\.....\GraspBmp.res
..\........\.....\GraspBmp.sbr
..\........\.....\GraspBmpDlg.obj
..\........\.....\GraspBmpDlg.sbr
..\........\.....\StdAfx.obj
..\........\.....\StdAfx.sbr
..\........\.....\vc60.idb
..\........\.....\vc60.pdb
..\........\GraspBmp.aps
..\........\GraspBmp.clw
..\........\GraspBmp.cpp
..\........\GraspBmp.dsp
..\........\GraspBmp.dsw
..\........\GraspBmp.h
..\........\GraspBmp.opt
..\........\GraspBmp.plg
..\........\GraspBmp.rc
..\........\GraspBmpDlg.cpp
..\........\GraspBmpDlg.h
..\........\ReadMe.txt
..\........\res
..\........\resource.h
..\........\...\GraspBmp.ico
..\........\...\GraspBmp.rc2
..\........\...\保存.bmp
..\........\...\取消.bmp
..\........\...\屏幕截图工具.bmp
..\........\...\选择.bmp
..\........\StdAfx.cpp
..\........\StdAfx.h
..\........\System.ini
    

CodeBus www.codebus.net