Creates a Graphics object.
public Graphics( int dc )
protected Graphics( Control control, int dc, int flags )
dc
The handle to a device context (HDC).
control
A Control object that specifies the control with which to associate the specified device context.
flags
One or more flags to be passed to the Win32 GetDCEx function.
If the device context passed to this constructor is 0, the constructor verifies that sufficient resources are available to create a device context and then retrieves the device context based on the specified window handle.