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"); }
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"); }