To calibrate a lithographic apparatus having a programmable patterning means, a sensor, such as a CCD, CMOS sensor or photo-diode array, having detector elements larger than the size of a spot corresponding to a single pixel of the programmable patterning means is used. Pixels are selectively activated singly or in groups.