An ultrafast spectrum programmable femtosecond laser may enhance the performance of a wide variety of scientific applications, e.g., multi-photon imaging. In this paper, we report a digital micromirror device (DMD)-based ultrafast pulse shaper, i.e.,