large bitmap file
i am trying to display a large bitmap file using following code sigment.
hdcroi = GetDC(hwnd1);
hBaseBitmap = CreateDIBitmap(hdcroi, (LPBITMAPINFOHEADER) &pBmpInfor->bmiHeader,
CBM_INIT, pBits, (LPBITMAPINFO) pBmpInfor, DIB_RGB_COLORS );
if the file is large , then handle to bitmap returned is NULL. How can i get a handle of large bitmaps.
Kindly help. thankx .
I'd need to see a slightly better example than this but as far as I can see if you get a NULL return then there is a good reason. Perhaps not enough memory is available. How big of an image are we talking about here?
i am trying to load 50 MB JPEG
If the function fails, the return value is NULL.
Windows NT: To get extended error information, call GetLastError.