如何从 .resources (而不是 .resx)文件获取位图

发布于 2024-09-01 10:44:41 字数 109 浏览 1 评论 0原文

我已使用反射器打开程序集并将一些 .resources 文件保存到我的硬盘上。那里有一些位图,如何从保存的 .resources 文件中获取它们? 我想通过代码或某些程序将它们保存为图像(.bmp)文件。

I have opened assembly with reflector and saved some .resources files to my hard drive. There is some bitmaps in there, how can I get them from saved .resources file?
I'd like to save them as image (.bmp) file via code or some program.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

仲春光 2024-09-08 10:44:41

检查此 http://support.microsoft.com/kb/324567

或检查此

using System.Resources;
using System.Reflection;

ResourceManager rm = new ResourceManager("YourProgramName.ProgramResources",
Assembly.GetExecutingAssembly());

rm.GetObject("my_icon_name");

check this http://support.microsoft.com/kb/324567

OR check this

using System.Resources;
using System.Reflection;

ResourceManager rm = new ResourceManager("YourProgramName.ProgramResources",
Assembly.GetExecutingAssembly());

rm.GetObject("my_icon_name");
感情旳空白 2024-09-08 10:44:41

您可以尝试使用 PowerCommands for Reflector 并将资源保存为 .resx 文件 - 然后在 Visual 中打开它工作室。

You could try using the PowerCommands for Reflector and save the resources as a .resx file - then open it in Visual Studio.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文