Patent ID: 8917303

Claim:
An optical writing device for forming an electrostatic latent image by exposing an image carrier in an image forming apparatus, comprising: a light source including a plurality of light-emitting element assemblies arranged in a main scanning direction, each light-emitting element assembly including a plurality of light-emitting elements arranged in the main scanning direction; a line information storage for storing pixel information constituting an image for each main scanning line along with the main scanning direction; a light source driver for driving the light-emitting elements, on the basis of the pixel information about the light-emitting elements; an error information acquire for acquiring inclination error information representing inclination of the main scanning line based on an error of attachment of the light source and arrangement error information representing an error of arrangement of the light-emitting element assemblies in the light source; a correction value generator for generating correction value information for correcting the inclination of the main scanning line based on the inclination error information and the arrangement error information thus acquired, by shifting the image at multiple positions on the main scanning line in a sub-scanning direction, the sub-scanning direction being perpendicular to the main scanning direction; a correction value holder for holding the generated correction value information in association with each of the multiple positions on the main scanning line; and a driven pixel adjuster for adjusting positions in the sub-scanning direction of the pixel information corresponding to the light-emitting elements, on the basis of the correction value information being held, wherein the correction value generator generates the correction value information such that a position of the image to be shifted on the main scanning line in the sub-scanning direction in order to correct the error of the arrangement of the light-emitting element assemblies is different from a position of the image to be shifted on the main scanning line in the sub-scanning direction in order to correct the inclination of the main scanning line based on inclination error information, and wherein the correction value generator generates shift information indicating a shift of the image in the sub-scanning direction on the basis of each of the inclination error information and the arrangement error information every first interval along with the main scanning line, and generates the correction value information by alternately applying the shift information generated on the basis of each of the arrangement error information and the inclination error information every second interval that is a half of the first interval.