Just decided, to take this feature back to version 1.1.3, since implementing a 
basic support is not so complex, as long as it is only about rescaling.

It can be implemented completely in the Pattern class with a callback

-- one rescale factor for all images
Pattern.setScale(factor) - you have to decide for a factor somehow in advance. 
After that all images are rescaled with the standard image resize internally 
before use.

-- action per image
Pattern.setScale(callback_function) - somewhere you have defined the 
callback_function, which is called with the actual Pattern object. You evaluate 
the situation and do one of the following:
- stop being called back (not needed)
- set a rescale factor to be used from now on (optionally stop being called 
- do something with the image and tell the Pattern to reset the image to your 
new version (this would allow to do more than just rescaling: change color, 
recapture on the fly, ...)

Thanks for the reminder

You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.

  [request] want Pattern.anySize() and Pattern.anyColor()

Status in Sikuli:
  In Progress

Bug description:
  as a general solution, Sikuli needs to know, how the image should be

  the same image is found in different screen resolutions by Sikuli

  based on the original description of the planned Sikuli features:

  anySize() was supossed to solve different resolutions problems.

  But it is not yet available in Sikuli script.

To manage notifications about this bug go to:

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