Lithographically patterned perovskite nanocrystal arrays were used to determine radiation vectors from X-rays to visible light and the emission colours of the nanoparticles was used to create images of three-dimensional objects and for phase-contrast imaging.