Zoom in section of screen

Does anyone know a way in code to zoom in a section of the screen like looking through a scope? i want to add this to my game: