Skip to content
This repository has been archived by the owner on Oct 9, 2018. It is now read-only.

Latest commit

 

History

History
39 lines (32 loc) · 1.16 KB

README.md

File metadata and controls

39 lines (32 loc) · 1.16 KB

JScreenshot

JScreenshot is a simple library for taking screenshots in Java applications, before capture user can select screen area that he want to capture.

Usage

  1. Add Maven depedency, or use JAR files
<dependency>
   <groupId>pl.kotcrab</groupId>
   <artifactId>jscreenshot</artifactId>
	<version>0.0.1</version>
 </dependency>
  1. Take creenshot!
   Screenshot.take(new ScreenshotAdapter() {
   	@Override
   	public void screenshotTaken (BufferedImage image) {
   		//do whatever you want with your screenshot
   	}
   });
  1. Add custom capture dialog (optional)
    Default capture dialog is boring (and probably ugly depending on your current Look and Feel), chanigng them is prety easy, see wiki for that.

Chaning UI color

Default UI color is orange, that can be easily changed via calling:

Screenshot.setUiColor(newColor);
//for example:
Screenshot.setUiColor(Color.BLUE);
Screenshot.setUiColor(Color.RED);