Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
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
..........................................................................

Any ideas what i can do? Thanks in advance.
Posted

You could use StretchBlt() instead of BitBlt(), though it might not look very good. Use SetStretchBltMode() to change how the pixels are mapped from the source to the destination.
 
Share this answer
 
You may use my DLL (see the article Plain C Resampling DLL) to resize the bitmap without loosing much quality (another option could be GDI+).
:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900