@m.shams
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 pattern.
-- 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 back)
- 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, ...)
@m.shams
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 pattern.
-- one rescale factor for all images 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.
Pattern.
-- action per image 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:
Pattern.
- stop being called back (not needed)
- set a rescale factor to be used from now on (optionally stop being called back)
- 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