Esempio n. 1
0
 public ImageHandler(Bitmap bitmap)
 {
     if (null == bitmap)
     {
         throw new ArgumentNullException("bitmap");
     }
     imageList = Utilities.GetImageList(bitmap);
 }
Esempio n. 2
0
 /// <summary>
 /// Builds an ImageHandler object from a Stream providing the bitmap that
 /// stores the images for the image list.
 /// </summary>
 public ImageHandler(Stream resourceStream)
 {
     Utilities.ArgumentNotNull("resourceStream", resourceStream);
     imageList = Utilities.GetImageList(resourceStream);
 }
Esempio n. 3
0
 /// <summary>
 /// Builds an ImageHandler object from a Stream providing the bitmap that
 /// stores the images for the image list.
 /// </summary>
 public ImageHandler(Stream resourceStream)
 {
     Utilities.ArgumentNotNull(nameof(resourceStream), resourceStream);
     this.imageList = Utilities.GetImageList(resourceStream);
 }