An X-ray is a quick, painless test that is used to help diagnose a wide variety of conditions. The most familiar use of x-rays is checking for fractures in bones. X-ray imaging creates pictures of the inside of your body. The images show the parts of your body in different shades of black and white. The duration of the scan varies by body part and x-rays can be performed standing or lying down.