capture image without saving to disk

Asked by Jaroslav Novotny

Hello,

in the java version it's possible to get the intermediate result of cmdCapture as a ScreenImage object.

Is there something similar in the python version?
I could only find to save image to disk, then to use this image. Does this internally cache the image, or it does disk IO operation every time?

Thanks!

Question information

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

simply so ;-)
scrImg = cmdCapture() # ScreenImage
bufImg = scrImg.getImage() # BufferedImage
img = Image(bufImg) # Image

find(img).highlight(2)

Revision history for this message
Jaroslav Novotny (jaroslav-novotny) said :
#2

Thanks RaiMan, that solved my question.