Package com.sun.jna.platform.win32
Klasse GDI32Util
java.lang.Object
com.sun.jna.platform.win32.GDI32Util
GDI32 utility API.
- Autor:
- mlfreeman[at]gmail.com
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic BufferedImage
getScreenshot
(WinDef.HWND target) Takes a screenshot of the given window
-
Konstruktordetails
-
GDI32Util
public GDI32Util()
-
-
Methodendetails
-
getScreenshot
Takes a screenshot of the given window- Parameter:
target
- The window to target- Gibt zurück:
- the window captured as a screenshot, or null if the BufferedImage doesn't construct properly
- Löst aus:
IllegalStateException
- if the rectangle from GetWindowRect has a width and/or height of 0.
if the device context acquired from the original HWND doesn't release properly
-