Graphics.FromHwnd

Graphics.FromHwnd method

Creates a new Graphics from the specified handle to a window.

public static Graphics FromHwnd(IntPtr hwnd)
ParameterTypeDescription
hwndIntPtrHandle to a window.

Return Value

This method returns a new Graphics for the specified window handle.

See Also