createComponentSnapshot()


#1

So I’m trying to grab a snapshot of a complete application window using createComponentSnapshot().

The snapshot is being used by some component of arbitrary hierarchy depth.

It seems like I should be able to simply use:


Image* myImage = getTopLevelComponent()->createComponentSnapshot();

but this is just returning a blank canvas.

My application is a resizer app based around the DialogWindow class. resizer::setContentComponent() contains a TabbedComponent sub-class.

what am I doing wrong?


#2

Should work fine… I’d suggest just stepping into the createComponentSnapshot method and see what is does (or doesn’t do)


#3