Package com.sun.jna.platform.win32
Class GDI32Util
java.lang.Object
com.sun.jna.platform.win32.GDI32Util
GDI32 utility API.
- Author:
- mlfreeman[at]gmail.com
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic BufferedImagegetScreenshot(WinDef.HWND target) Takes a screenshot of the given window
- 
Constructor Details- 
GDI32Utilpublic GDI32Util()
 
- 
- 
Method Details- 
getScreenshotTakes a screenshot of the given window- Parameters:
- target- The window to target
- Returns:
- the window captured as a screenshot, or null if the BufferedImage doesn't construct properly
- Throws:
- 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
 
 
-