What is "the background"? You can briefly hide a layer, take the screenshot, then show the layer again. Or you mean transparency?
What I mean the background of the image is similar to the iPhone camera function which lets users remove the background of their photo automatically. It is like a photoshop function that removes the background and only leaves the subject of the picture.