Display..::..ScreenshotWindow Method (IntPtr, String, ImageFormat, Int32, Int32)
Take a window screenshot and save to file.
Namespace:
robotManager.HelpfulAssembly: robotManager (in robotManager.dll)
Syntax
public static void ScreenshotWindow( IntPtr mainWindowHandle, string filename, ImageFormat format, int maxHeight, int maxWidth )
Public Shared Sub ScreenshotWindow ( _ mainWindowHandle As IntPtr, _ filename As String, _ format As ImageFormat, _ maxHeight As Integer, _ maxWidth As Integer _ )
public: static void ScreenshotWindow( IntPtr^ mainWindowHandle, String^ filename, ImageFormat^ format, int^ maxHeight, int^ maxWidth )
Parameters
- mainWindowHandle
- Type: IntPtr
The main window handle.
- filename
- Type: String
The file path.
- format
- Type: ImageFormat
The format.
- maxHeight
- Type: Int32
The maximum height.
- maxWidth
- Type: Int32
The maximum width.