
You can also use the CreateGraphics method of a control or form to obtain a reference to a Graphics object that represents the drawing surface of that control or form.

' Sets g to a Graphics object representing the drawing surface of the To create a Graphics object with the CreateGraphics methodĬall the CreateGraphics method of the form or control upon which you want to render graphics. Sets g to a graphics object representing the drawing surface of theĪdditionally, you can create a graphics object from any object that derives from the Image class.
