Taking Screenshots in Java

Tutorials Shared by the Internet Community

Advertisements


Synopsis

Here is a quick tutorial on how to grab a screenshot and save it to a JPEG and PNG file.

Statistics

  • Total Hits - 27066

  • Total Votes - 133 votes

  • Vote Up - 70 votes

  • Vote Down - 63 votes

  • Domain - blog.codebeach.com

  • Category - JAVA/Swing

  • Submitted By - Devesh Khanna

  • Submitted on - 2008-03-12 11:19:32

Description

Have you ever wanted to grab a screenshot from your Java application? Here's a quick tutorial on how to grab a screenshot and save it to a JPEG and PNG file. This shows how to use the Robot class to capture the screen image and the ImageIO API to save it as a JPG and PNG. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements