Canvas in Sikuli java

Asked by Giuseppe Marullo

I would like to have an example where I could search for an image (icon on desktop) and if found draw a frame around it. I am unable to draw on the screen.
How to I use the canvas on it?
Thanks in advance.

Giuseppe Marullo

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Giuseppe Marullo
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

What Sikuli are you taking about?

Is it Sikuli Java API? (http://code.google.com/p/sikuli-api/)

*** recommendation for issues with Sikuli Java API:
pls. post on
http://code.google.com/p/sikuli-api/issues/list
which is the direct access to the developers.

--- with SikuliX 1.0.0 (http://www.sikuli.org/download.html)
Using the Java API:

Screen s = new Screen();
Match m = s.find("some_image.png")
m.highlight(2)

Revision history for this message
Giuseppe Marullo (giuseppe-9) said :
#2

>What Sikuli are you taking about?

>Is it Sikuli Java API? (http://code.google.com/p/sikuli-api/)

I am trying both, I was able to do this in the Java API but not in the SikuliX 1.0.0 one.

Thank you RaiMan, this work perfectly.