I am trying to design an application that loads bitmap images. I have bitmaps of varying sizes but I want them to be displayed on a constant space ( like a rectangle of size 500x500). I've tried StretchBlt()
in the following way but the results are disappointing and the images are still of varying sizes. The code is mentioned below. Thanks in advance.
DcForClientClientDc.StretchBlt(0, 0 , 500, 500, &bmDC, 0, 0, 1000, 1000, SRCCOPY);
You should pass to StretchBlt
the actual size of the image you want to scale, but you are using 1000 x 1000.