A method is provided for modifying an image of a pattern during a
lithographic imaging process, where the pattern is arranged on a mask for
imaging by a projection system on a surface, and the image is an image
formed from the pattern by the projection system. In this method the
imaging quality of the projection system is described by selected imaging
quality parameters, and the image is adjustable by image adjustment
parameters of the projection system. The method comprises the steps of
determining an ideal image of the pattern, determining a simulated
distorted image of the pattern based on the selected imaging quality
parameters; determining a deviation between the simulated distorted image
and the ideal image, and adapting the image adjustment parameters during
the imaging process to minimize the deviation between the simulated
distorted image and the ideal image on the basis of the selected imaging
quality parameters.