Text this: Towards a quantitative theory for transmission X-ray microscopy