如何添加图片? [英] how to add image?

查看:70
本文介绍了如何添加图片?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,
我想在我的c ++项目中添加图像.
恳请您告诉我各自的编码.
谢谢
-shruti urkude

hello,
I want to add images in my c++ project.
I kindly request you to please tell me the respective coding.
Thanking You,
-shruti urkude

推荐答案

什么样的图像,以及如何显示它们?假设您的意思是在Windows程序中显示某种位图文件,建议您学习 Windows GDI [ ^ ],特别是位图"部分.
What sort of images, and how do you want to display them? Assuming you mean displaying some sort of bitmap file in your Windows program I would suggest you study Windows GDI[^], in particular the section on Bitmaps.


如果使用可视C ++ IDE,则可以将位图添加为资源.那么您不必编写任何代码.
If you use visual C++ IDE, you can add your bitmap as a resource. then you do not write a single line of code.


这篇关于如何添加图片?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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