Hi, does anybody know how to find the dimensions of a bitmap in this example?
The following is what I want to do:
Also, in my function call to LoadImage(), I say that the filename of the bitmap is "bitmap.bmp". Can I replace this with an address of a bitmap? For example, replacing it with "C:\Images\bitmap.bmp" (or would that have to be "C:\\images\\bitmap.bmp, even though its not a dos or console app?)
HBITMAP hbitmap = (HBITMAP)LoadImage(hinstance, "bitmap.bmp", IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE);
HBITMAP old_hbitmap = (HBITMAP)SelectObject(image_dc, hbitmap);
BitBlt(hdc, 25, 25, bitmap_x, bitmap_y, image_dc, 0, 0, SRCCOPY); /* Before I can do this
function call, I need the bitmap_x and bitmap_y to store the width and height of the bitmap.
How do I find this information? */
Thnaks for your help