How X-rays work. X-rays are a type of radiation that can pass through the body . … As they pass through the body, the energy from X-rays is absorbed at different rates by different parts of the body. A detector on the other side of the body picks up the X-rays after they’ve passed through and turns them into an image.