Measuring cosmological parameters with Gamma