X-ray or radiography is a quick and painless test that uses ionizing radiation to produce images of the structures inside the body.