They image bones by shooting an x-ray beam through the body. The calcium in bone blocks penetration of the x-ray beam and the image of the bones is picked up as a shadow on a film positioned on the other side of the patient.
Learn more at http://www.spine-health.com/treatment/diagnostic-tests/x-ray