Theory of the spatial resolution of (scanning) transmission electron microscopy in liquid water or ice layers.