Click here to Skip to main content
15,914,894 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I display an image on console screen in C++?
:confused:
Posted
Updated 6-Jun-10 23:36pm
v3

Console applications are designed to work in text mode, so you cannot display an image directly inside the console window. What you can do is to create a window (a GDI window) from your console application to show the image.
 
Share this answer
 
Using ASCII art [^]?

Seriously, the Console Application is not the best choice, why don't you develop a Windowed one?


[added]

As about displaying an image in a MFC application, there are a lot of tutorials about, Google [^] is your best friend.
[/added]

:)
 
Share this answer
 
v3
Comments
Sweety Khan 7-Jun-10 4:26am    
ohk thnx. Actually i know how to display an image and convert it into grey scale in c. the same thing i have to do it in c++ and one thing which our teacher add few minutes ago is to make it using MFC. Now i have no idea how to do it.
Sweety Khan 7-Jun-10 4:32am    
plz plz help me
Sweety Khan 7-Jun-10 6:29am    
yes i m finding there but still dont get any good tutorial. can u refer one? plzz
CPallini 7-Jun-10 6:35am    
The fifth entry shows, for instance, how to show bitmaps loaded from the resources (it is a bit dated, but should work).

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900