public class GDI32Util
extends java.lang.Object
| Constructor | Description |
|---|---|
GDI32Util() |
| Modifier and Type | Method | Description |
|---|---|---|
static java.awt.image.BufferedImage |
getScreenshot(WinDef.HWND target) |
Takes a screenshot of the given window
|
public static java.awt.image.BufferedImage getScreenshot(WinDef.HWND target)
target - The window to targetjava.lang.IllegalStateException - if the rectangle from GetWindowRect has a
width and/or height of 0.