| 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... |
static Image |
Image.createThumbNail(String fName)
FOR INTERNAL USE: from IDE - suppresses load error message
|
protected static Image |
Image.get(String fName)
FOR INTERNAL USE: see get(String, boolean)
|
protected static Image |
Image.get(URL imgURL) |
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 |
Pattern.getImage()
get the Pattern's image
|
Image |
ObserveEvent.getImage() |
Image |
Match.getImage()
get the image used for searching
|
protected static <PSI> Image |
Image.getImageFromTarget(PSI target) |
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
|
protected Image |
Image.setBimg(BufferedImage bimg) |
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) |
protected Image |
Image.setLastSeen(Rectangle lastSeen,
double sim)
Internal Use: set the last seen info after a find
|
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 |
|---|---|
protected int[] |
ImageGroup.addImageFacts(Image img,
Rectangle r,
double score) |
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) |
Match |
Image.find(Image img)
find an image in another image
|
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)
|
String |
ImageFinder.findAll(Image img) |
Iterator<Match> |
Image.findAll(Image img)
find all images in another image
|
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)
|
void |
Finder.resetImage(Image img) |
protected static void |
Image.set(Image img) |
Pattern |
Pattern.setFilename(Image img)
set a new image for this pattern
|
static void |
Image.setIDEshouldReload(Image img) |
Pattern |
Pattern.setImage(Image img)
sets the Pattern's image
|
protected void |
Match.setImage(Image img)
set the image after finding with success
|
boolean |
ImageFinder.setImage(Image base) |
| 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.