A new way to study high-energy gamma rays