Image forming apparatus includes elements as follows. Light-amount storing section stores, in the main scanning line divided into a plurality of blocks, light amounts of a light beam irradiated on the blocks. Change-data storing section stores a plurality of change data items set in the vicinity of each of block boundaries of the plurality of blocks. The plurality of change data items are used to cope with each of a plurality of events that are likely to affect the image quality in the vicinity of the block boundary. Irradiation control section selects, out of the plurality of change data items, change data for coping with an event selected out of the plurality of events and instructs Pulse generating section to generate, in the vicinity of the block boundary, pulse signal from which analog signal indicating a change in a value represented by the selected change data is obtained.
展开▼