Transient electromagnetic field plays very important roles in the evolution of high-energy-density matter or laser plasma. Now, a new design is proposed in this paper to diagnose the transient magnetic field, using relativistic electron bunch as a probe based on high-energy electron radiography. And based on this scheme, the continuous distribution of magnetic strength field can be snapshotted. For 1 mm thick quadrupole magnet model measured by 50 MeV probe electron beams, the simulation result indicates that this diagnosis has spatial resolution better than 4 microns and high measurement accuracy for strong magnetic strength and high magnetic gradient field no matter whether the magnetic interaction is focusing or defocusing for the range from -510 T
∗
μm to 510 T
∗
μm.