Radiography, sometimes known as X-ray, is used to diagnose fractured bones, identify injury or infection, and discover foreign objects in soft tissue. An iodine-based contrast material is used in some x-ray tests to make specific organs, such as the heart, lungs, blood arteries, and tissues, more visible.