X-rays, or radiography, use a very small dose of ionizing radiation to produce images of every bone in the body. An x-ray is a quick, painless test that creates images of internal body structures, especially bones. X-ray beams pass through the body and are absorbed in different amounts depending on the density of the material through which they pass.