Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Java utility class that captures a screenshot of the entire desktop on a Windows system using the Java Native Access (JNA) library.

License

Notifications You must be signed in to change notification settings

Fadouse/JNAScreenShot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

JNAScreenShot

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.

Features:

  • Utilizes JNA to interact with native Windows APIs.
  • Captures the entire screen and saves it as a BufferedImage.
  • Demonstrates usage of User32 and GDI32 APIs for screen capture.
  • Handles memory management and bitmap operations efficiently.

Dependencies:

  • Java Native Access (JNA) library
  • JNA Platform library

Usage:

BufferedImage screenshot = JNAScreenShot.getScreenshot();
// Now you can use the screenshot BufferedImage as needed

License

This project is licensed under the MIT License.

About

Java utility class that captures a screenshot of the entire desktop on a Windows system using the Java Native Access (JNA) library.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages