예제 #1
0
파일: Bitmap.cs 프로젝트: camilohe/Eto
 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);
     }
 }