Saving Graphics to Bitmap outside of paint?
问题 Trying to save a C# Winforms Graphics Object to a bitmap, yet I am getting an ArgumentException with this code outside of the Paint event: public Bitmap Bitmap { get { return new Bitmap(100, 100, this.Graphics); } } Where this.Graphics is just set in the Paint event handler, I'm guessing the object becomes invalid outside of the event, which is annoying as I'd like to avoid having to put code in there for saving the images. Can anyone point me in the right direction? Edit: I will have to re