Generate resource file with image
using System;
using System.Resources;
using System.Drawing;
using System.Windows.Forms;
using System.Reflection;
class ResourceGenerator
{
static void Main(string[] args)
{
ResourceWriter rw;
rw = new ResourceWriter("myResources.resources");
rw.AddResource("anImage", new Bitmap("winter.jpg"));
rw.AddResource("welcomeString", "www.java2s.com");
rw.Generate();
}
}
Related examples in the same category