Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old January 4th, 2007, 05:35 AM
wombat
Guest
 
Posts: n/a
Default Images possible with C++?

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.
  #2  
Old January 4th, 2007, 05:45 AM
Victor Bazarov
Guest
 
Posts: n/a
Default Re: Images possible with C++?

wombat wrote:
Quote:
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
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask


  #3  
Old January 4th, 2007, 05:55 AM
John Carson
Guest
 
Posts: n/a
Default Re: Images possible with C++?

"wombat" <64@k.comwrote in message
news:64-E413D8.00273804012007@news.west.earthlink.net
Quote:
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.

--
John Carson


  #4  
Old January 4th, 2007, 10:25 AM
Ondra Holub
Guest
 
Posts: n/a
Default Re: Images possible with C++?

wombat napsal:
Quote:
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.

  #5  
Old January 4th, 2007, 07:15 PM
BobR
Guest
 
Posts: n/a
Default Re: Images possible with C++?


wombat <64@k.comwrote in message ...
Quote:
>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).

--
Bob R
POVrookie


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles