Measuring the invisible and the visible with X-rays