New question #670826 on Sikuli:
https://answers.launchpad.net/sikuli/+question/670826

I want to save a region as a png file to process it in another app, so, no 
temporary save
my code is as follows: 

calc = find("calculator.png")

rows = 10
cols = 4
calc.setRaster(rows, cols)
result = calc.getRow(2) # result is a new region

path = Screen.capture(result,'result.png') # the .png part can be omitted, path 
should have the absolute path to the image named result.png


getting the error: 
"TypeError: capture(): self arg can't be coerced to org.sikuli.script.Screen "

read the documentation but I can't understand what's wrong

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to