The number of colors used in the object image indicated by a raster image rendering
command is counted. The format of the object image is then converted according
to the number of counted colors. The data size of the raster image is then reduced
without impairing the quality of the raster image, thereby increasing processing performance.