Beam halo is an important factor in any high intensity accelerator. It can cause difficulties in the control of the beam, emittance growth, particle loss, and even damage to the accelerator. It is therefore essential to understand the mechanisms of halo formation and its dynamics. Experimental measurement of the halo distribution is a fundamental tool for such studies. In this paper, we present a new high dynamic range, adaptive masking method to image beam halo, which uses a digital micromirror-array device. This method has been thoroughly tested in the laboratory using standard optical techniques, and with an actual beam produced by the University of Maryland Electron Ring (UMER). A high dynamic range (DR $ 10 5 ) has been demonstrated with this new method at UMER and recent studies, with more intense beams, indicate that this DR can be exceeded by more than an order of magnitude. The method is flexible, easy to implement, low cost, and can be used at any accelerator or light source. We present the results of our measurements of the performance of the method and illustrative images of beam halos produced under various experimental conditions.