public ImageHandler(Bitmap bitmap) { if (null == bitmap) { throw new ArgumentNullException("bitmap"); } imageList = Utilities.GetImageList(bitmap); }
/// <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); }
/// <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); }