HOW TO INSERT AN IMAGE USING C++

Aug 29, 2013 at 3:15pm
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!

Aug 29, 2013 at 4:05pm
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 Aug 29, 2013 at 4:18pm
Aug 29, 2013 at 4:42pm
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/
Sep 11, 2013 at 6:43am
Its too advanced but I'll Try.
Thanks!
Sep 11, 2013 at 8:25am
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 Sep 11, 2013 at 8:27am
Oct 2, 2013 at 4:22am
THANX!! AZEEZ!
Topic archived. No new replies allowed.