Digital microscopes have the ability to scan an entire surface and capture each different area that comes into focus, combining them into one fully-focused image.
The relative height data from each focal plane can then be used to reconstruct the surface into a 3D image that users can freely manipulate, making it easy to understand the true shape of the surface.