|
请教高手,小弟用2440+CE5.0的平台,用api做的程序读取bmp图片,然后粘贴,具体代码段如下:
HRESULT LoadPartBitmap(HWND hwnd,HINSTANCE hInstance,int x,int y,int Length,int Width,int number)
{
HDC hdc,hdcMen;
HBITMAP hBitmap;
HGDIOBJ hSavedBitmap;
hdc=GetDC(hwnd);
hdcMen=CreateCompatibleDC(hdc);
hBitmap=LoadBitmap(hInstance,MAKEINTRESOURCE(number));
hSavedBitmap=SelectObject(hdcMen,hBitmap);
BitBlt(hdc,x,y,Length,Width,hdcMen,0,0,SRCCOPY);
SelectObject(hdcMen,hSavedBitmap);
DeleteDC(hdcMen);
ReleaseDC(hwnd,hdc);
DeleteObject(hBitmap);
return S_OK;
}
可不知道为什么,显示图片时速度很慢,是不是在定制CE5.0系统时少加载了什么组建?还是2440这种芯片本事2D图形显示就很慢?急啊~~
|
|