← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #293396]: reload image dynamically

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
You might generally switch off image caching:
Settings.setImageCache(0)

this will stop caching and each image will be loaded again and again
from file system.

Using later on 
Settings.setImageCache(64)
will start caching again with the standard cache size of 64MB

To individually reload a cached image, you can say:
Image.reload("image.png")

If caching is switched off, reload() is a noop.

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