开发者

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

开发者 https://www.devze.com 2022-12-30 07:00 出处:网络
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 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 o开发者_Python百科r 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");


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

0

精彩评论

暂无评论...
验证码 换一张
取 消