请帮助我在控制台上显示图像 [英] Please help me in displaying image on console

查看:124
本文介绍了请帮助我在控制台上显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在C ++中的控制台屏幕上显示图像?
:confused:

How can I display an image on console screen in C++?
:confused:

推荐答案

控制台应用程序设计为在文本模式下工作,因此您不能在控制台窗口内直接显示图像.您可以做的是从控制台应用程序创建一个窗口( GDI 窗口)以显示图像.
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.


使用ASCII艺术[ ^ ]是您最好的朋友.
[/添加]

:)
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]

:)


这篇关于请帮助我在控制台上显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆