An image forming apparatus has a read unit to read a document image and
generate image data of the document image, a memory management unit to
manage a storage unit which is segmented into storage regions, and an
engine to write the image data generated by the read unit to the storage
unit. The engine acquires setting information related to writing of the
image data from the memory management unit to the storage unit, and
writes the image data to the storage unit based on the setting
information that is acquired.