Пример #1
0
 public Bitmap GetImage()
 {
     if (shouldEndImageContext)
     {
         var h = new BitmapHandler();
         h.Create(UIGraphics.GetImageFromCurrentImageContext());
         return(new Bitmap(null, h));
     }
     throw new InvalidOperationException("Can only call GetImage on a Graphics constructed with a specified size");
 }
Пример #2
0
		public Bitmap GetImage()
		{
			if (shouldEndImageContext)
			{
				var h = new BitmapHandler();
				h.Create(UIGraphics.GetImageFromCurrentImageContext());
				return new Bitmap(null, h);
			}
			throw new InvalidOperationException("Can only call GetImage on a Graphics constructed with a specified size");
		}