The image forming apparatus according to claim 1, wherein the designated pixel position indicates a position of a pixel after procession, the procession being a double density procession that makes density increase of a pixel that is before the double density procession included in the input image data,
- wherein the pattern is of a pattern of the pixel line formed of the pixel before the procession, and
- wherein the pattern recognizing unit recognizes whether the pixel line in the sub-scanning direction, formed of the pixel before the procession which corresponds to the pixel after the procession of which location is indicated by the designated pixel position, matches the pattern.