开发者

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 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜