+ 3
How to add a image in c++ program?
1 Answer
0
??? Huh?
Do you mean you want to open an image up inside a c++ program? or add it as an icon to the executable?
If you mean to open it up, it's a file. Open it like you would any other file. Or you can also use external libraries like Qt, CImg, or single format libraries (e.g. libjpeg) to open and depending on the end result, display. Now if you want to add it as an icon, that's a resource property and depending on the OS/desktop environment, you'd need to follow the proper steps.