Nico Vink wrote
The resulting image includes my rendering, but in the background I'm getting transparent dialogs from my application. Interestingly, I never actually opened these dialogs, but somehow they are in the buffer when I read the image.
I've seen this happen before -- usually it just means that the previous time you ran your app, it rendered the dialogs into video memory, and those contents are still there next time you start your app (since some drivers don't clear that memory for you).