1. A method of detecting and correcting camera rotation in a digital camera, comprising the steps of: a) capturing a digital image to provide a captured digital image; b) analyzing the captured digital image to detect a set of lines; c) using the set of lines to determine a rotation angle of the captured digital image; d) modifying the captured digital image based on the rotation angle; and e) storing the modified digital image.