An image processing apparatus, for equally dividing an area of an arbitrary figure
by pixel units by a number of parallel lines, which includes an input element for
inputting a dividing number for a figure obtaining element which obtains a total
number of pixels of the figure, a calculating element for calculating an initial
ideal value by dividing the total number of pixels by the dividing number, a computing
element for computing an ideal value of the number of pixels of a kth divided region
in the figure using the initial ideal value and a sum of determined values of the
numbers of pixels of a first to a (k-;1)th divided region, and a determining element
for determining a determined value of the number of pixels of the kth divided region
such that an error between the determined value of the number of pixels of the
kth divided region and the ideal value of the number of pixels of the kth divided
region is minimized.