org.sikuli.api
Interface Screen

All Known Implementing Classes:
DesktopScreen, StaticImageScreen

public interface Screen

The Screen interface provides definitions for the objects that represent a Screen.


Method Summary
 BufferedImage getScreenshot(int x, int y, int width, int height)
          Creates and returns an image containing a screen capture of the specified arguments of the same name.
 Dimension getSize()
          Gets the size of this Screen, represented by the returned Dimension.
 

Method Detail

getScreenshot

BufferedImage getScreenshot(int x,
                            int y,
                            int width,
                            int height)
Creates and returns an image containing a screen capture of the specified arguments of the same name. x, y, width, height should be within the bounds.

Parameters:
x - the X location of the screen coordinate.
y - the Y location of the screen coordinate.
width - The width of the region to be captured.
height - The height of the region to be captured.
Returns:
The captured image.

getSize

Dimension getSize()
Gets the size of this Screen, represented by the returned Dimension.

Returns:
a Dimension, representing the size of this Screen.


Copyright © 2014. All rights reserved.