Patent ID: 8175400

Claim:
A method of processing image data including a plurality of pixels, comprising: extracting a plurality of pixel groups sequentially, each of the pixel groups including a plurality of pixels, from the image data stored in a storage; judging whether each of the pixel groups includes only at least one of a white pixel and a black pixel; binarizing at least one first pixel group in the pixel groups in accordance with an arrangement of the at least one of the white pixel and the black pixel therein, in a case where it is judged that the first pixel group includes only at least one of the white pixel and the black pixel, thereby generating at least one first data item; reducing a first resolution of at least one second pixel group in the pixel groups to a second resolution, in a case where it is judged that the second pixel group includes at least one pixel other than the white pixel and the black pixel, thereby generating at least one second data item; compressing the first data item and the second data item by a processor; counting a first number that a plurality of first data items having the same value are generated consecutively; counting a second number that a plurality of the second data items having the same value are generated consecutively; compressing the first data items in accordance with the first number, in a case where the first number is obtained, thereby generating first compressed data compressing the second data items in accordance with the second number, in a case where the second number is obtained, thereby generating second compressed data; counting a third number that a plurality of first data items having different values are generated consecutively; counting a fourth number that a plurality of the second data items having different values are generated consecutively; compressing the first data items in accordance with the third number, in a case where the third number is obtained, thereby generating third compressed data; compressing the second data items in accordance with the fourth number, in a case where the fourth number is obtained, thereby generating fourth compressed data; and transmitting at least one of the first compressed data, the second compressed data, the third compressed data and the fourth compressed data to an outputting apparatus connected to the processor and configured to output an image, wherein: the first compressed data is generated to include a first identifier indicative of the first data item and first count data indicative of the first number, the second compressed data is generated to include a second identifier indicative of the second data item and second count data indicative of the second number, the third compressed data is generated to include the first identifier and third count data indicative of the third number, and the fourth compressed data is generated to include the second identifier and fourth count data indicative of the fourth number.