使用DrawDibDraw函数来打印位图,有两个参数LPBITMAPINFOHEADER lpbi和 LPVOID lpBits, 不知如何获得,请问通过位图的ID号如何获得这两个参数的信息;
BOOL DrawDibDraw(
HDRAWDIB hdd,
HDC hdc,
int xDst,
int yDst,
int dxDst,
int dyDst,
LPBITMAPINFOHEADER lpbi,
LPVOID lpBits,
int xSrc,
int ySrc,
int dxSrc,
int dySrc,
UINT wFlags
);
BOOL DrawDibDraw(
HDRAWDIB hdd,
HDC hdc,
int xDst,
int yDst,
int dxDst,
int dyDst,
LPBITMAPINFOHEADER lpbi,
LPVOID lpBits,
int xSrc,
int ySrc,
int dxSrc,
int dySrc,
UINT wFlags
);
解决方案 »
- new出来的对话框不能setWindowText和ShowWindow
- AfXBeginTread开辟多线程,能否实时的装载数据
- 请问在win32用打开文件对话框一次打开多个文件后,如何得到每个文件的路径?也就是说如何从lpstrFile中得到每个文件的的路径!谢谢!
- 有一个实验不知如何解,请高手指教
- 数组赋值的问题????
- GDI+中定义了Font的大小之后(size),怎么知道一个字符串在图像上占用的宽度?
- Com接口如何使用IStream
- 文本颜色
- 在 CSocket 如何做 UDP 编程?
- odbc数据库查询中,只是匹配部分关键字,怎么办?
- CListCtrl::OnClickList1() 如果鼠标点击有内容的会响应该消息和点击没有内容的不会响应事件?
- http://www.bestdown.com如何下书,注册不了。谁知道如何下,谢谢!
HDC hdc, // handle to DC
int XDest, // x-coord of destination upper-left corner
int YDest, // y-coord of destination upper-left corner
int nDestWidth, // width of destination rectangle
int nDestHeight, // height of destination rectangle
int XSrc, // x-coord of source upper-left corner
int YSrc, // y-coord of source upper-left corner
int nSrcWidth, // width of source rectangle
int nSrcHeight, // height of source rectangle
CONST VOID *lpBits, // bitmap bits
CONST BITMAPINFO *lpBitsInfo, // bitmap data
UINT iUsage, // usage options
DWORD dwRop // raster operation code
)
请分析如何通过位图的ID来获得这两个参数lpBits,lpBitsInfo的值