Images possible with C++?

W

wombat

Is it possible to display JPGs/GIFs/etc with C++? I would think it is,
but trying to find out what I need to do has been like searching for a
needle in a hay stack.

Thanks in advance.
 
V

Victor Bazarov

wombat said:
Is it possible to display JPGs/GIFs/etc with C++? I would think it is,
but trying to find out what I need to do has been like searching for a
needle in a hay stack.

You need to ask in the newsgroup for your OS. C++ _language_ does *not*
have any mechanism (which would have to exist on every platform where
C++ is implemented, including DSP, for example) for *displaying* images
since it would require the existence of a *display*. There is no such
concept in C++ /language/.

V
 
J

John Carson

wombat said:
Is it possible to display JPGs/GIFs/etc with C++? I would think it is,
but trying to find out what I need to do has been like searching for a
needle in a hay stack.

Thanks in advance.

Yes but you need to use a third party library or an operating system API. Of
course, before you even think about doing that, you will need a GUI, which
again requires a third party library or operating system APIs --- all of
which are off-topic in this newsgroup. Ask in a forum for your operating
system.
 
O

Ondra Holub

wombat napsal:
Is it possible to display JPGs/GIFs/etc with C++? I would think it is,
but trying to find out what I need to do has been like searching for a
needle in a hay stack.

Thanks in advance.

You can
- either use API of your operating system or
- use some library for your OS
- use some multiplatform library which hides OS specific issues (of
course, no library works on any platform, but there are some with wide
range of supported OSes, for example image magick, wxwidgets)

I personally recommend the 3rd option.
 
B

BobR

wombat said:
Is it possible to display JPGs/GIFs/etc with C++? I would think it is,
but trying to find out what I need to do has been like searching for a
needle in a hay stack.

Thanks in advance.

Not in standard C++.

[OT]
Check this out. It handles most of the popular image formats (and has a nice
GUI to boot).
wxWidgets URL: http://www.wxwidgets.org
[ I've made an AVI movie play on a small button in a wxWidgets window, for
example.]

Otherwise, go to http://www.gnu.org/ and look for the 'Gimp' (there are
windows ports).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top