How can I convert the captured image of a Scene capture component 2D during one frame to a static texture?

I would love to do this in blueprints but if anyone has a c++ answer that would be appreciated too.