← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #271703]: Once custom targerOffset is used then image is like updated with targetOffset used

 

Question #271703 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271703

    Status: Open => Answered

RaiMan proposed the following answer:
the correct way is:

img = "POLICY_source_rule_centos_smc5.10.0.png"
p1 = Pattern(img)
p2 = Pattern(img).targetOffset()

or
p2 = Pattern(p1).targetOffset()

targetOffset() by design changes the respective settings of the given
Pattern object.

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