Use GUI element as a mask for taking a snapshot of the viewport

My guess is you will have to do some math to get the camera view port to match up with whatever the GUI dimensions are.

As for the specific math I’m unfortunately still working that out.