Programable spatial light modulators (SLMs) have significantly advanced the configurable optical trapping of particles. Typically, these devices are utilized in the Fourier plane of an optical system, but direct imaging of an amplitude pattern can potentially result in increased simplicity and computational speed. Here we demonstrate high-resolution direct imaging of a digital micromirror device (DMD) at high numerical apertures (NA), which we apply to the optical trapping of a Bose-Einstein condensate (BEC). We utilise a (1200 x 1920) pixel DMD and commercially available 0.45 NA microscope objectives, finding that atoms confined in a hybrid optical/magnetic or all-optical potential can be patterned using repulsive blue-detuned (532 nm) light with 630(10) nm full-width at half-maximum (FWHM) resolution, within 5% of the diffraction limit. The result is near arbitrary control of the density the BEC without the need for expensive custom optics. We also introduce the technique of time-averaged DMD potentials, demonstrating the ability to produce multiple grayscale levels with minimal heating of the atomic cloud, by utilising the high switching speed (20 kHz maximum) of the DMD. These techniques will enable the realization and control of diverse optical potentials for superfluid dynamics and atomtronics applications with quantum gases. The performance of this system in a direct imaging configuration has wider application for optical trapping at non-trivial NAs.