+ 3

How to add a image in c++ program?

24th Jan 2017, 3:56 PM
VIPUL RINWA
VIPUL RINWA - avatar
1 Réponse
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.
24th Jan 2017, 8:16 PM
M King
M King - avatar