Hello, i'm developing a game in VC++ 6.0 with MFC. My screen resolution is 1280x1024 pixels, so i have a background bitmap with this size. The problem is when i change the resolution to be smaller, some parts of the pictures are not seen. I'm using BitBlt() function to display the bitmap.
I need to make it in that way:
If my screen resolution is 1280x1024 - the pic resolution to be that size
If my screen resolution is 1024x768 - the pic resolution to be that size
..........................................................................

The BitBlt() function doesn't resize images. You need StretchBlt().

It does a really bad job, btw, so it might be worth your while to use an external library to do image transformations.

Hope this helps.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.