Re: [Sikuli-driver] [Question #678529]: How to create a Region from a Location

2019-02-14 Thread Rainer
Question #678529 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678529

Rainer confirmed that the question is solved:
Thanks RaiMan, that solved my question.

-- 
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


Re: [Sikuli-driver] [Question #678529]: How to create a Region from a Location

2019-02-14 Thread Rainer
Question #678529 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678529

Status: Answered => Solved

Rainer confirmed that the question is solved:
Thank you, RaiMan, I was quite close with my guesswork resp. suggestion
… :)

-- 
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


Re: [Sikuli-driver] [Question #678529]: How to create a Region from a Location

2019-02-14 Thread RaiMan
Question #678529 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/678529

Status: Open => Answered

RaiMan proposed the following answer:
sorry, not in the docs ;-)

quadratic: reg = someLoc.grow(size)

rectengular: reg = someLoc.grow(sizeWidth, sizeHeight)

-- 
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


[Sikuli-driver] [Question #678529]: How to create a Region from a Location

2019-02-13 Thread Rainer
New question #678529 on Sikuli:
https://answers.launchpad.net/sikuli/+question/678529

Is there a simple way to create a region from a location - a region that has 
the given location at its center?

Like the inverse of getCenter()  where I can get the location of the center of 
a region?

Something like location.grow(num) which should give a quadratic region with the 
location as its center and side lenghts of num?

Of course one can do that with Region(Location.x - num//2, Location.y - num//2, 
num, num) or the like, I was just wondering whether there might be a "nicer", 
more direct way?

Thank you. 


-- 
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