ResourceWriter.AddResource(String key, Image value) : ResourceWriter « System.Resources « C# / C Sharp by API






ResourceWriter.AddResource(String key, Image value)

 
  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

1.new ResourceWriter
2.ResourceWriter.AddResource
3.ResourceWriter.Generate()