Making in image "copy" of a Component thats bufferedToImage


#1

Is there any easy way of getting the Image from the bufferedToImage cache from a Component?
I want to be able to make multiple copies of a component which only need to be images really, only updated when data changes.
Having an OwnedArray of the components and setting them all to bufferedToImage seems like overkill. Is there a way to tackle this simply or do I need to dig into e.g. StandardCachedComponentImage code in Component.cpp?


#2

You can’t use Component::createComponentSnapshot() or Component::getCachedComponentImage() ? You’d have to add a public getter for the image in StandardCachedComponentImage.

Rail


#3

Ah yes createComponentSnapshot was what I was after… cheers :slight_smile: