A method for printing is described. The method includes providing a
printing system for printing a code on a product moving in a direction.
The code is constructed from a plurality of pixels in a first data set
indicating the positions of the pixels and generates a corrected data set
indicating the position that each pixel would occupy if each pixel was
moved at the velocity of the product until the pixel was printed. The
method also includes printing the code according to the corrected data
set.