Render a camera view to a texture?

Thanks for the tips. I will look into all of these.

What I am wanting to do is this:

I have created a mastermind style code breaker game. I want to have a “snapshot” taken of the player’s guess that would appear in small window in the corner of their screen that they could reference for their next guess. I figured the screen capture would be a good way to make this work.