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