[X-rays]() use electromagnetic radiation to produce images of the inside of the body. They are often the first imaging test performed when cancer is suspected. X-rays can detect abnormalities such as tumors, fractures, and infections. In cancer diagnosis, X-rays are particularly useful for visualizing bones and detecting lung cancer.