I am trying to draw onto separate Image Objects within the context of a controllable image sequence. I can’t seem to figure out how to pass an Image& into a Graphics (const Image&) or how to return an Image& from my OwnedArray imageSequence.

I’m new to C++ and JUCE and am still learning RAII concepts so maybe I’m thinking about this problem in a fundamentally wrong way.


Not quite sure exactly what you’re asking, but Image is a by-value class, so you’d probably want to use Array rather than OwnedArray


I got it working now using an Array instead of an OwnedArray. Thank you very much!