Question about ImageCache and multiple plugin instances


#1

I load the images from the PluginEditor constructor using ImageCache::getFromMemory into Image object 

image = ImageCache::getFromMemory (BinaryData::file_png, BinaryData::file_pngSize);

Image object get a copy of "pixel data"? or it gets a reference to the pixel data stored in a static variable? 


#2

It'll return the same shared image each time. If you wanted it to load a new instance each time there'd be no need for the cache class, you could just repeatedly load it with ImageFileFormat::loadFrom