1. A method of controlling a digital photographing device, the method comprising the steps: (a) analyzing the color distribution of an input image by determining which one of a plurality of predetermined color domains a color of each pixel of the input image corresponds to, wherein the color domains are sections predetermined in a color space; (b) determining an enhancement color based on the analyzed color distribution such that a color domain distributed at a ratio higher than a predetermined ratio is determined as the enhancement color; (c) obtaining information relating the distance to a subject; (d) searching for a predetermined first color enhancement factor based on the information relating the distance to a subject, wherein the first color enhancement factor is a set of weights for the respective color domains for color enhancement, and is defined according to the distance information; (e) generating a second color enhancement factor in which a weight for the enhancement color is increased from the first color enhancement factor; and if) adjusting the input image using the second color enhancement factor.