An image forming apparatus has: a recording head having plural unit
recording heads divided in a direction orthogonal to a moving direction
of a recording medium; a detecting section detecting at least offset of
an image recorded by a vicinity of an end portion, in the direction
orthogonal to the moving direction of the recording medium, of the plural
unit recording heads; and a correcting section correcting recording
offset of the recording head on the basis of results of detection of the
detecting section.