Fourier single-pixel imaging has been widely concerned with its real-time and high quality. However, DMD (Digital Micromirror Array) as an illumination source cannot produce a continuous gray level of the Fourier basis pattern. Therefore, the inevitable error is produced. This paper proposes a halftone technique based on edge attenuation, which can be applied to the Fourier basis pattern generation method on DMD without loss of resolution, and compared with the traditional methods, the invention solves the problem that the traditional methods has a single scanning direction and accumulated errors, finally; we improve the image quality.