|
|
第1:下面是我涉及图片旋转的部分代码。
第2:请不要说为什么不使用d3d之类的话。我的问题就是在ddraw的环境下,如何处理图片旋转。
第3:如果你能看明白我的这部分代码,请告诉我什么地方出错了。我的QQ: 6350288
信箱:dawei7873@yeah.net 谢谢。
DDBLTFX dfx;
memset(&dfx,0,sizeof(dfx));
dfx.dwRotationAngle = 40;
RECT rect_of_show,rect_of_laucher;
rect_of_laucher.left = 0;
rect_of_laucher.top = 0;
rect_of_laucher.right = rect_of_laucher.left + LAUCHER_WIDTH;
rect_of_laucher.bottom = rect_of_laucher.top + LAUCHER_WIDTH;
rect_of_show.left = this->laucherX;
rect_of_show.top = this->laucherY;
rect_of_show.right = rect_of_show.left + LAUCHER_WIDTH;
rect_of_show.bottom = rect_of_show.top + LAUCHER_WIDTH;
lpddsBack->Blt(&rect_of_show, lpddsLaucher, &rect_of_laucher, DDBLT_WAIT | DDBLT_KEYSRC | DDBLT_ROTATIONANGLE , &dfx); |
|