The X-rays emitted from the X-ray source attenuate due to absorption by the subject, and then are incident on the X-ray image detector.
The X-ray image detector detects an image based on intensity changes of the X-rays caused by absorption power of the subject.