HOW TO INSERT AN IMAGE USING C++

How do we insert an image in c++ ? Does it have something to do with "graphics.h" or the ofstream_object_name.open("image name.whatever")????Please Help me!

You'll need to be a bit more precise. Are you trying to display an image? If so then that depends entirely on what GUI-llibrary you're using and so on. If you want to read an image file then you need to read up on that particular file format.
Last edited on
First you need to start off with a library that can do this. The lowest-level is communicating directly with your OS, but that can be very complicated for beginners.

SFML is a library that will give you an easy interface for dealing with this OS and drawing the pictures. Install the libraries, #include the headers, and then run through these tutorials:

http://sfml-dev.org/tutorials/2.1/
Its too advanced but I'll Try.
Thanks!
IROCK, these are some libraries which may help ya,

*WinBGIm Library(like you mentioned graphics.h header)

http://winbgim.codecutter.org/


*Allegro ( This is simple but better Library)
www.Allegro.cc
Last edited on
THANX!! AZEEZ!
Topic archived. No new replies allowed.