A non-transitory computer readable medium storing a computer-executable program for causing a computer to perform an image processing method of outputting an image signal to an image forming device which uses an electrophotographic method, the image processing method comprising the steps of:
- generating directional data representing a pattern which indicates a growing direction of a dot on a scanning line and in which the growing direction changes every predetermined number of scanning lines;
- setting correction coefficients to be used to distribute image data of a pixel of interest to the pixel of interest and an adjacent pixel adjacent to the pixel of interest in a sub-scanning direction;
- detecting an edge portion of an image represented by input image data;
- distributing the image data of the pixel of interest of the input image data to the pixel of interest and the adjacent pixel in accordance with the correction coefficients;
- adding the image data distributed from the adjacent pixel to image data of the pixel of interest on which the distribution is performed, and outputting the added image data as corrected image data of the pixel of interest;
- selecting the corrected image data of the pixel of interest and the generated directional data for an edge portion of the image, and selecting the image data of the pixel of interest and input directional data supplied together with the input image data for a non-edge portion of the image;
- generating an image signal pulse-width modulated using the image data of the pixel of interest and the directional data selected in the selecting step;
- and
- outputting the pulse-width modulated image signal to the image forming device.