In the memory control for writing/reading out data into/from the memory as described above, when an original image is to be printed as it is rotated 90???, the controller 8 performs control such that the calculated effective pixel count (N) in the main scan direction is N???4???K (K is a natural number), i.e., N is not a natural number.