Shield material with some certain composition can absorb a large part of low energy photon of X-ray and reduce the radiation effect on electronic component. However,in some cases,photon quantity of several low energy bins in transmission spectrum will be larger than that in incidence spectrum due to Compton scattered photons. This is disadvantageous for radiation protection. The study discussed such factors relative to scattered photon impact as source photon energy,the place of detector,the composition and the thickness of shield material. Under several different conditions,X-ray transmission spectra were calculated. The rule of Compton photons affecting on X-ray transmission spectrum was found. Lastly,some countermeasures were put forward.