Generate resource file with image

image_pdfimage_print
   

  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.kutayzorlu.com/java2s/com");
      rw.Generate();

    }
  }