An X-ray is a prevalent imaging test that can generate a picture of bones and tissues in your body. This image helps your doctor understand what’s happening in your body. One of the most common X-rays is a mammogram that doctors use to look for signs of breast cancer. Doctors can order X-rays to: