1. A handheld digital camera device comprising: at least one image sensor for capturing images and generating image data; a color display for displaying captured images to a user; an orientation sensor for generating orientation data; and an integral processor configured for: controlling operation of the image sensor and the color display; determining a landscape or portrait orientation of the camera device using the orientation data; decoding an imaged coding pattern printed on a substrate; and performing an action in said handheld electronic device based on the decoded coding pattern.