Package | Description |
---|---|
org.sikuli.script |
Modifier and Type | Method and Description |
---|---|
static Image |
Image.create(Image imgSrc)
create a new Image as copy of the given Image
|
static Image |
Image.create(Pattern p)
create a new Image with Pattern aspects from an existing Pattern
|
static Image |
Image.create(String fName)
create a new image from a filename
file ending .png is added if missing (currently valid: png, jpg, jpeg) relative filename: [...path.../]name[.png] is searched on current image path absolute filename is taken as is if image exists, it is loaded to cache already loaded image with same name (given path) is reused (taken from cache) if image not found, it might be a text to be searched (imageIsText = true) |
static Image |
Image.create(URL url)
create a new image from the given url
file ending .png is added if missing filename: ...url-path.../name[.png] is loaded from the url and and cached already loaded image with same url is reused (reference) and taken from cache |
static Image |
Image.createThumbNail(String fName)
FOR INTERNAL USE: from IDE - suppresses load error message
|
Image |
Image.getCell(int r,
int c)
get the specified cell counting from (0, 0), if a raster is setup
negative counts reverse from the end (last = -1) values outside range are 0 or last respectively |
Image |
Image.getCol(int c)
get the specified column counting from 0, if columns or raster are setup
negative counts reverse from the end (last = -1) values outside range are 0 or last respectively |
Image |
ObserveEvent.getImage() |
Image |
Pattern.getImage()
get the Pattern's image
|
Image |
Match.getImage()
get the image used for searching
|
Image |
Image.getRow(int r)
get the specified row counting from 0, if rows or raster are setup
negative counts reverse from the end (last = -1) values outside range are 0 or last respectively |
Image |
Image.getSub(int part)
create a sub image from this image
|
Image |
Image.getSub(int x,
int y,
int w,
int h)
create a sub image from this image
|
Image |
Image.setCols(int n)
store info: this image is divided horizontally into n even columns
a preparation for using getCol() |
Image |
Image.setFileURL(URL fileURL) |
Image |
Image.setImageName(String imageName) |
Image |
Image.setIsAbsolute(boolean val) |
Image |
Image.setIsPattern(boolean imageIsPattern) |
Image |
Image.setOffset(Location offset)
Set the value of offset
|
Image |
Image.setRaster(int r,
int c)
store info: this image is divided into a raster of even cells
a preparation for using getCell() |
Image |
Image.setRows(int n)
store info: this image is divided vertically into n even rows
a preparation for using getRow() |
Image |
Image.setSimilarity(float similarity)
Set the value of similarity
|
Image |
Image.setWaitAfter(int waitAfter)
Set the value of waitAfter
|
Modifier and Type | Method and Description |
---|---|
Match |
Region.compare(Image img)
time optimized Region.exists, when image-size == region-size
1.1.x: just using exists(img, 0), sizes not checked |
static Image |
Image.create(Image imgSrc)
create a new Image as copy of the given Image
|
static String |
FindFailed.createdefault(Region reg,
Image img) |
String |
ImageFinder.find(Image img) |
String |
Finder.find(Image img)
do a find op with the given pattern in the Finder's image
(hasNext() and next() will reveal possible match results)
|
Match |
Image.find(Image img)
find an image in another image
|
String |
ImageFinder.findAll(Image img) |
String |
Finder.findAll(Image img)
do a findAll op with the given image in the Finder's image
(hasNext() and next() will reveal possible match results)
|
Iterator<Match> |
Image.findAll(Image img)
find all images in another image
|
void |
Finder.resetImage(Image img) |
Pattern |
Pattern.setFilename(Image img)
set a new image for this pattern
|
static void |
Image.setIDEshouldReload(Image img) |
boolean |
ImageFinder.setImage(Image base) |
Pattern |
Pattern.setImage(Image img)
sets the Pattern's image
|
Constructor and Description |
---|
Finder(Image img)
Finder constructor for special use from an Image
|
ImageFinder(Image base) |
Pattern(Image img)
create a Pattern with given image
|
Copyright © 2017. All rights reserved.