Semiconductor photocathodes are electron beam sources with versatile electron beam performance such as pulsed structure as well as high beam current with high monochromaticity. Photocathode using GaN semiconductor material has solved the durability problem, resulting in the development of a compact photocathode electron gun suitable for industrial technology. The photocathode electron gun can be retrofitted to existing electron microscopes, has the same brightness as a cold field emitter cathode, and the pulsed beam not only brings selective beam irradiation to arbitrary area in the field of view in SEM imaging, but also allows blur-free TEM imaging of moving samples.