473,387 Members | 1,530 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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.
Jan 4 '07 #1
4 1233
wombat wrote:
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
Jan 4 '07 #2
"wombat" <64@k.comwrote in message
news:64**********************@news.west.earthlink. net
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
Jan 4 '07 #3
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.

Jan 4 '07 #4

wombat <64@k.comwrote in message ...
>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
Jan 4 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: The Plankmeister | last post by:
Ello... Is there a way to recreate the "text-align : justify" behaviour with images? (add to wish list: "image-align : justify") I have a gallery page and would like all the images to properly...
3
by: MediaDesign | last post by:
so there's the problem: my text links have background images and when I put links around images on my page, they too get the background image treatment which I do not...I have tried several...
3
by: Wade | last post by:
08242005 1416 GMT-5 Recently some of you helped me with a script to change images. Well I was asked to make a change to the script and not knowing if what the school system is even possible, Ill...
1
by: Adam Dockter | last post by:
I have a couple questions about comparing images. I notice the imagelist collection of images doesn't provide any comparison of images, and the System.Drawing.Image.Equal function will not compare...
1
by: Mika M | last post by:
Hi! I'm wondering is it possible to give names for the images in the imagelist somehow, and retrieve those images when needed by using code like pic.Image = ImageList1.Images("Save") instead of...
10
by: Neo Geshel | last post by:
I am seeking to hand-roll my own blog in ASP.NET 2.0 and SQLExpress 2005. Why? Because I can. Because I will gain experience. The one thing that has me stumped at square one is inline images....
61
by: phil-news-nospam | last post by:
Why does SVG need a different tag than other images? IMHO, SVG should be implemented as an image type just like any other image type, allowing it to work with <img> tags, and ... here is the...
6
by: NutsAboutVB | last post by:
Hello, I am a .NET programmer and I have a JPEG image file (from digital camera) of about 109 KB's in size, when I open it and save it (without making any alterations at all, just going to File...
9
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web...
2
by: wstsoi | last post by:
hi I have to read images from spreadsheet, is it possible to do with php?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.