A method of scanning a portion of a document using an electronic device includes activating a data input to a picture element of the display to illuminate the portion of the document, in which the document is located proximate to the display. The method also includes deactivating the data input and measuring, by way of the data input, a signal from a photosensitive device, the signal being indicative of the light reflected from the illuminated portion of the document.