For example, if you have Safari and iTunes open, but iTunes is active and Safari is minimized, a screenshot will take a screenshot of your Mac OS X desktop just as you see it. Screenshots work by taking a shot of everything exactly how it is arranged, with active windows open and everything.
Screenshots are basically a picture of the entire screen, or the entire desktop.