如何在Visual Studio中的资源目录中定义存储到图像文件的路径 [英] How Do I Define Path To An Image File Stored In The Resources Directory In Visual Studio
本文介绍了如何在Visual Studio中的资源目录中定义存储到图像文件的路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hello社区,
此时我已经陷入困境。我在Resources目录中有一个名为Logo.jpg的图像文件。现在我想声明这个文件的路径,这样当我构建安装文件时,应用程序就会嵌入Logo。此徽标应添加到应用程序以pdf格式生成的报告中。
我已将Logo.jpg的属性设置为嵌入资源,并复制到输出目录以便始终复制。
我将非常感谢您的支持。
祝你好运,
Godfrey
Hello community,
I'm stuck at this point. I have an image file in the Resources directory called Logo.jpg. Now i want to declare the path to this file so that when i build the setup file, the application goes with the Logo embedded. This logo should be added to a report the app generates in pdf format.
I have set the properties of the Logo.jpg to embedded resource, and copy to output directory to copy always.
I will really appreciate your support.
Best regards,
Godfrey
推荐答案
这篇关于如何在Visual Studio中的资源目录中定义存储到图像文件的路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文