A method and apparatus for focusing an image on a pixel array. The method
includes the steps of continuously changing the distance between a lens
and a pixel array between a first distance and a second distance and
obtaining an image projected onto the pixel array through the distance is
changing. The apparatus includes a lens and an electromechanical
structure to continuously change the distance between the lens and the
pixel array between the first distance and the second distance.