Klasse GDI32Util

java.lang.Object
com.sun.jna.platform.win32.GDI32Util

public class GDI32Util extends Object
GDI32 utility API.
Autor:
mlfreeman[at]gmail.com
  • Konstruktordetails

    • GDI32Util

      public GDI32Util()
  • Methodendetails

    • getScreenshot

      public static BufferedImage getScreenshot(WinDef.HWND target)
      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