This repository contains a Java utility class JNAScreenShot that captures a screenshot of the entire desktop on a Windows system using the Java Native Access (JNA) library.
- Utilizes JNA to interact with native Windows APIs.
- Captures the entire screen and saves it as a
BufferedImage. - Demonstrates usage of
User32andGDI32APIs for screen capture. - Handles memory management and bitmap operations efficiently.
- Java Native Access (JNA) library
- JNA Platform library
BufferedImage screenshot = JNAScreenShot.getScreenshot();
// Now you can use the screenshot BufferedImage as neededThis project is licensed under the MIT License.