Patent ID: 8009314

Claim:
An image processing apparatus comprising: an acquiring unit configured to acquire read data corresponding to a part of an original, the read data being obtained by a reading apparatus reading a part of the original sequentially; a storage unit in which a memory area of a read buffer, an image memory, or a record buffer can be allocated, the read buffer being configured to store the read data corresponding to a part of the original acquired by the acquiring unit; and the record buffer being configured to store recording data based on the read data stored in the read buffer, the image memory being configured to store image data corresponding to the original; a storing control unit configured to store image data corresponding to the original into the image memory, based on a plurality of the read data sequentially stored in the read buffer; a generating unit configured to generate recording data based on image data retrieved from the image memory, and to store the generated recording data into the record buffer; a recording control unit configured to cause a recording apparatus to record an image corresponding to the original based on the recording data stored in the record buffer; a determining unit configured to determine a data amount of image data corresponding to the original to be stored in the image memory based on the read data stored in the read buffer; and a control unit configured to, according to the data amount determined by the determining unit, allocate a memory area of the storage unit which was allocated as the read buffer when image data is stored into the image memory by the storing unit as the record buffer in response to completion of storing of image data corresponding to the original into the image memory by the storing control unit; wherein the generating unit stores recording data into the record buffer allocated by the control unit, and the recording control unit causes the recording apparatus to record an image based on the recoding data stored in the record buffer.