The present invention is directed toward an X-ray scanner that has an electron source and an anode. The anode has a target surface with a series of material areas spaced along it in a scanning direction. The material areas are formed from different materials. The electron source is arranged to direct electrons at a series of target areas of the target surface, in a predetermined order, so as to generate X-ray beams having different energy spectra.