He invented the camera obscura, the precursor to the pinhole camera, to demonstrate how light can be used to project an image onto a flat surface. Earlier references to the camera obscura have been found in Chinese texts dating to about 400 B.C. and in the writings of Aristotle around 330 B.C.