Digital images in whole slide imaging are generated by scanning the entire glass slide using a scanner and then stored electronically in a digital format. The images are typically stored on a computer or server and can be accessed, viewed, and analyzed using specialized software.