C#获取资源中的图片文件

Posted 与f

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了C#获取资源中的图片文件相关的知识,希望对你有一定的参考价值。

 

 

 

                  System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(mainFrm));
                   Image miniqrcode = (System.Drawing.Image)(resources.GetObject("miniqrcode.Image"));//miniqrcode.png图片

                    Image miniqrcode1 = Properties.Resources.miniqrcode;//miniqrcode.png图片

 

 

转 : https://blog.csdn.net/ayman_zawahiri/article/details/83625312

 

https://www.cnblogs.com/suenihy/archive/2009/03/13/1410792.html

以上是关于C#获取资源中的图片文件的主要内容,如果未能解决你的问题,请参考以下文章