1. A method of controlling a digital photographing apparatus, the method comprising: displaying a residual image of a background image; setting a partial area of an area on which the residual image is displayed; capturing an image including a subject; extracting a subject image corresponding to the partial area, from the image; and generating a composite image by combining the background image and the subject image.