Java Screen Capture screenshot(Rectangle dims, Robot r)

Here you can find the source of screenshot(Rectangle dims, Robot r)

Description

screenshot

License

Open Source License

Declaration

public static BufferedImage screenshot(Rectangle dims, Robot r) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.awt.*;
import java.awt.image.BufferedImage;

public class Main {
    public static BufferedImage screenshot(Rectangle dims, Robot r) {
        BufferedImage screenshot = r.createScreenCapture(dims);
        return screenshot;
    }//from   w  w w  . ja v  a 2s  .  c  om
}

Related

  1. captureScreen()
  2. captureScreen(final Rectangle screenRect)
  3. captureScreen(Rectangle rect)
  4. captureScreen(String filename)
  5. screenShot(String format)
  6. takeScreenShot(boolean showCursor)
  7. takeScreenshot(String fileName, String formatName)