如何用DrawDibDraw显示一个BMP文件???(50分)

  • 主题发起人 主题发起人 ansili
  • 开始时间 开始时间
A

ansili

Unregistered / Unconfirmed
GUEST, unregistred user!
如何用DrawDibDraw显示一个BMP文件??
最好给出示例代码
QQ;69786714
 
那里的函数?
 
Api

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
);
参考
http://www.delphibbs.com/delphibbs/dispq.asp?lid=1780990
 
关键是这个参数的值怎么取,取多长?
LPVOID lpBits,
 
设置成BMP的大小试试先
 
To : japhe
LPVOID lpBits,设置成BMP文件的大小还是不行。
显示不出来。
 
http://www.delphibbs.com/delphibbs/dispq.asp?lid=1147405
 
谁有源码啊?

万分感激!!
 
多人接受答案了。
 
后退
顶部