Patent ID: 8587626

Claim:
A light source control circuit of an optical writing device that admits connection of any one of a plurality of different types of light sources and that is configured to form an electrostatic latent image on a photosensitive element by a connected light source controlled by the light source control circuit, the light source control circuit comprising: a skew correction unit configured to correct a skew of a main scanning line of an electrostatic latent image formed by the light source relative to the photosensitive element by acquiring image data of an image to be formed as the electrostatic latent image; a pattern generating unit configured to output image data for forming a pattern in an electrostatic latent image to be formed by acquiring image data in which the skew has been corrected; a local deviation correction unit configured to correct a local deviation of an electrostatic latent image formed by the light source on the main scanning line by acquiring image data processed to form the pattern; and a light source control unit configured to cause the light source to emit light based on image data in which the local deviation has been corrected, wherein the skew correction unit is configured to correct the skew between the light source and the photosensitive element by storing pixel data that includes information of each of a plurality of pixels configuring the image data in a first line memory for each main scanning line, and by reading, at at least one position on the main scanning line, the pixel data after shifting a main scanning line stored in the first line memory in a sub-scanning direction, the pattern generating unit is configured to convert pixel data read from the first line memory into the pattern formed in the electrostatic latent image, and the local deviation correction unit is configured to store the pixel data converted by the pattern generating unit into a second line memory by each main scanning line, multiply resolution in the sub-scanning direction by repeating operation of reading out the converted pixel data from the second line memory, read out pixel data on at least one position on the main scanning line, and shift a main scanning line formed of the read out pixel data in the sub-scanning direction so as to correct local deviation.