graphics

S

sank

Hello all,

I want to display graphics file (BMP/JPEG/GIF) on the console
in c++...

help...
 
K

Karl Heinz Buchegger

sank said:
Hello all,

I want to display graphics file (BMP/JPEG/GIF) on the console
in c++...

help...

Then you need to know the details about:

* the file format
* the properties of your console on how to display graphcs.

None of this is addressed by standard C++, the one and only topic
in this newsgroup. Thus you need to ask in newsgroups which deal
with either:
* your specific fileformat (or a library that can do it,
or graphics in general)
* your type of console
 
H

Hendrik Belitz

sank said:
Hello all,

I want to display graphics file (BMP/JPEG/GIF) on the console
in c++...

help...

First of all, as K.H. Buchegger said, your wrong here with your request. But
that doesn't mean that we won't help you.

For image loading and conversion routines take a look at the image magick
library: http://www.imagemagick.org
For display you could use quite a lot graphics libraries, but it's difficult
to give you a suggestion on this if you don't even tell us which OS and
compiler you are using.
 
P

Phlip

sank said:
I want to display graphics file (BMP/JPEG/GIF) on the console
in c++...

The console is a character-mode TTY - where you write DIR and CD and COPY.

To display graphics, this works (on MS Windows-like platforms):

system("start myPic.png");

Also, add PNG to your list - it lacks GIF's issues.
 
C

Carl Muller

Hello all,

I want to display graphics file (BMP/JPEG/GIF) on the console
in c++...

help...

You can use the characters " .,;-+*#@" as a form of 3 bit grey-scale.
If you want graphical display you might have to use platform-specific
system calls or a platform-generic library (such as WxWindows). The
website http://www.wotsit.org/ has details about file formats, and
there are some (heavyweight) libraries around that support them also
(for .bmp files it is hardly worth it, but JPEG files are more
complicated). If you want to write .gif files, they are still
encumbered by patents in certain countries.
 

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

Forum statistics

Threads
474,160
Messages
2,570,890
Members
47,423
Latest member
henerygril

Latest Threads

Top