Click here to Skip to main content
15,884,939 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am making Super Mario in C++ , But i dont know how to add background image in that like for example the classic image of mountains and clouds. Can someone help me out ?

What I have tried:

i have tried searching many sites but Alas nothing available
Posted
Updated 4-Sep-17 7:45am
Comments
CPallini 1-Sep-17 17:01pm    
Could you please better detail your scenario (OS, technology, etc)?
[no name] 2-Sep-17 2:48am    
Like CPallini explained, without more Background info it is not possible to help.
In case you are working with .net winforms, have a look here: Want to add an image as background to form[^]
Richard MacCutchan 2-Sep-17 5:00am    
You need to create some bitmaps with the images and use them as the background. The internet is full of images, picture, drawings that you can make use of.

1 solution

The background image is the first you draw and than all pictures over it. If you use Windows you should draw the image in the WM_ERASEBKGND message handler.
 
Share this answer
 
Comments
[no name] 4-Sep-17 13:50pm    
hehe a 5

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