Synchrotron beam measurements were performed with a single-photon-counting pixel detector to investigate the influence of threshold settings on charge sharing. Improvement of image homogeneity by adjusting the threshold of each pixel individually was demonstrated. With a flat-field correction, the homogeneity could be improved. A measurement of the point spread function is reported.