简体   繁体   中英

How can I get bitmap from .resources (not .resx) file

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.

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");

您可以尝试使用PowerCommands for Reflector并将资源另存为.resx文件-然后在Visual Studio中将其打开。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM