<p>A lensless camera may include an array of MEMS-based light-modulating devices. A camera controller may control the MEMS-based light-modulating devices to transmit visible light through, or substantially prevent the transmission of visible light through, predetermined areas of the array. The array may be controlled in response to input from a user and/or in response to the location of a detected subject. The viewing direction of a lensless camera having such an array can be rapidly changed by changing the transmittance of different regions of the array.</p>