Release an image from ImageCache

gui
#1

Hi Jucers!
I hope you are all right.

Here a little feature request:

juce::ImageCache is very helpfull to avoid several juce::Image loading from the same juce::File.

But, when rare image file content modifications occured, It could be nice to be able to remove a juce::Image from this cache.

So, in my case, I propose to add the following entry point:
void ImageCache::releaseImage(Image* image);

Here a patch proposal on top of current Juce Develop branch.
http://download.smode.fr/forum/ImageCache_releaseImages.patch

May be an overload like
void ImageCache::releaseImage(const File& image);
Should be added too…

Hopping this can helps.
Thanks for your concern about this.

0 Likes