public class GDI32Util extends Object
Constructor | Description |
---|---|
GDI32Util() |
Modifier and Type | Method | 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.