Novel and advantageous systems and methods for performing X-ray imaging by using an X-ray source with source grating functionality incorporated therein are provided. An electron beam can be electromagnetically manipulated such that the X-ray source emits radiation in a pattern that is the same as if the radiation had already passed through a source grating.