Getting the Screenshot from another Camera

I didnt find any sample with this name, I tried to save a buffer already, using this code snippet: [HDScreenShot)

but i dont want to save it to file, i adapted it as well, but i dont know why, the buffer started to act weird, it was like the buffer was being rendered together within the main buffer.