Esempio n. 1
0
 public Bitmap(Assembly asm, string resourceName)
     : this(Generator.Current)
 {
     if (asm == null)
     {
         asm = Assembly.GetCallingAssembly();
     }
     using (var stream = asm.GetManifestResourceStream(resourceName)) {
         if (stream == null)
         {
             throw new ResourceNotFoundException(asm, resourceName);
         }
         handler.Create(stream);
     }
 }