Package org.sikuli.api

Examples of org.sikuli.api.DesktopScreenRegion.capture()


  public static void main(String[] args) throws IOException {
    DesktopScreenRegion smallRegion = new DesktopScreenRegion(500,500,400,200);
    canvas.addBox(smallRegion).display(1);
   
    BufferedImage capturedImage = smallRegion.capture();
    ImageIO.write(capturedImage, "png", new File("SavedCaptuedImage.png"));
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.