Outputting method

Abstract: There is provided an outputting method in a laser beam printer or the like which handles binary data or multivalue data and can express a density of a half tone. A capacity of a memory provided in the printer is detected and the gradation number of multivalue image data is changed or reduced into a small gradation number of e.g., binary data in accordance with the memory capacity. A part of the input multivalue image data is set into the white or black binary data. Thus, an image of a high quality can be promptly generated at a high precision and a data amount can be reduced.

Description: BACKGROUND OF THE INVENTION Field of the Invention The present invention relates to an outputting apparatus and method in a laser beam printer or the like which handles binary data or multivalue data and can express a density of a half tone. Related Background Art Hitherto, in image data having gradations of a half tone, multivalue data in which one pixel is constructed by a plurality of bits is needed to express the gradation number. A dither method, a density pattern method, or the like has been known as means for binarizing and expressing the multivalue data. A phase control method (time modulation method) has been known as one of the density pattern methods. According to the time modulation method, one pixel is divided in the main scanning direction of a laser and the on/off operations are repeated, thereby expressing an image of a half tone. Fig. 7A shows an example in the case where one pixel has been divided into eight data DATA0 to DATA7 by the time modulation method. Now, assuming that DATA7 is the MSB and DATA0 is the LSB, a density pattern which is expressed by data of, e.g., 55(H) (H indicates a hexadecimal number) is as shown in Fig. 7B. The pixel of the image data obviously needs a memory of excessively large capacity compared to the binary data of black and white such as character data. Fig. 8 shows an example in which an image of a half tone has been expressed by a plurality of pixels divided by the time modulation method. In the diagram, a pixel "E" as an image near black (corresponding to data FF(H)) is expressed by FD(H). A pixel "G" is expressed by 7F(H). A pixel "J" is expressed by F7(H). A pixel "A" as an image near white (corresponding to data 00(H)) is expressed by 40(H). A pixel "C" is expressed by 01(H). A pixel "D" is expressed by 80(H). However, in the above conventional example, the amount of data which is necessary to express an image which is close to black or white is equal to the amount of data which is required to express a half tone such as "M", "N", or the like (data length is set to 8 bits), so that there is a problem such that the memories having the same capacity must be prepared irrespective of the nature of the data. There is also a problem such that the number of gradations is also influenced by a capacity of a memory installed in the apparatus at present and it is desirable that the gradation can be variably set. The invention is made in consideration of the above problems and it is a concern of the invention to provide an outputting method whereby in the case of processing an image near black or an image near white, an image expressed by multivalue data is converted into binary black or white data, so that a high quality can be held in accordance with the memory capacity. Japanese Specification No. JP-A-2-153764 discloses the conversion of the gradation number of a computer to that of a printer but does not disclose how to solve the problem with which the present invention is concerned. In accordance with a first aspect of the invention there is provided output apparatus as set out in claim 1. In accordance with a second aspect of the invention there is provided an output method as set out in claim 7. In order that the present invention may be more readily understood, embodiments thereof will now be described by way of example and with reference to the accompanying drawings in which: Fig. 1 is a block diagram showing a construction of a whole printer as an embodiment of the invention; Figs. 2A and 2B are diagrams for explaining states in which pixels divided by a time modulation method are converted into white or black binary data; Fig. 3 is a block diagram showing a construction of a printer engine I/F and its peripheral components; Fig. 4A is a diagram showing the transfer direction of multivalue data; Fig. 4B is an output time chart of binary data which is transferred from a binary/multivalue control circuit to a printer engine; Fig. 4C is an output time charge of the multivalue data; Fig. 5 is a flowchart showing a printing processing procedure in the printer of the embodiment; Fig. 6 is a diagram showing another example in the case of converting multivalue data into binary data; Fig. 7A is a diagram showing an example in which one pixel has been divided into eight portions by the time modulation method; Fig. 7B is a diagram showing an example of a density pattern of the divided pixels; Fig. 8 is a diagram showing an example in which an image of a half tone (intermediate gradation) has been expressed by a plurality of pixels divided by the time modulation method; Fig. 9 is a flowchart for variably setting a region to approximate multivalue data by binary black or white; Fig. 10 is an explanatory diagram for setting the region shown in Fig. 9; Fig. 11 is a constructional block diagram in the case where a memory capacity can be expanded; Fig. 12 is a diagram showing the relation between the gradation number and the memory capacity; Fig. 13 is a diagram showing the relation between the gradation number of input data and the gradation number of output data; and Fig. 14 is a diagram showing a structure of a laser beam printer. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS A preferred embodiment according to the invention will be described in detail hereinbelow with reference to the drawings. The invention can be accomplished by a system comprising a plurality of apparatuses or can be also accomplished by an apparatus comprising one unit. The invention can be also applied to the case where the invention is accomplished by providing a program to the system or apparatus. Fig. 1 is a block diagram showing a construction of a printer according to an embodiment of the invention. In the diagram, a main controller 106 controls the whole printer in accordance with a program stored in an ROM (not shown). Print data such as image, character, or the like with the gradation number which is sent from a host computer 101 is stored into individual memories corresponding to the kind of data through an interface I/F 102. That is, image data is stored in a multivalue data page memory 104 and character data such as a character code or the like is stored in a binary data page memory 103. Font data for the character data is stored in a font memory 105. The gradation number of the multivalue data is stored in a gradation number setting unit 107. Binary data such as a character or the like is sent from the binary data page memory 103 to a printer engine I/F 110 through a bus 113 and a binary data signal line 115. As will be explained herein-later, predetermined multivalue data is supplied from the multivalue data page memory 104 to a multivalue-to-binary converter (hereinafter, referred to as an MB converter) 108. After the multivalue data has been converted into the binary data by the MB converter 108, it is sent to the printer engine I/F 110. The multivalue data other than the above data is sent from the multivalue data page memory 104 to the printer engine I/F 110 as the multivalue data through the bus 113 and a multivalue data bus 116. The printer engine I/F 110 switches the input binary data and multivalue data under control of the main controller 106 and transfers to a printer engine 111. The gradation number can be set or changed in accordance with the operation of an operation panel 112 and input data from the host computer 101. The set value of the gradation number is stored into the gradation number setting unit 107. Fig. 2A shows a state in which a pixel divided into eight portions by the time modulation method on the basis of multivalue data and only arbitrary one bit of the pixel indicates black and image data which is close to white as a whole is converted into binary white data. That is, the data corresponding to 80(H) or 01(H) or the like is converted into 0(B) as white binary data here. In a manner similar to the above, for the image data in which only one bit of the pixel indicates white and which is close to black as a whole, as shown in Fig. 2B, the data corresponding to 7F(H), FE(H), or the like is converted into black binary data 1(B). A process of the binary data or multivalue data in the printer engine I/F 110 will now be described. Fig. 3 is a block diagram showing a construction of the printer engine I/F 110 and its peripheral components. In the diagram, a switching signal /VSG indicating whether the input data to a binary/multivalue control circuit 110a is binary data or multivalue data is supplied from the main controller 106 to the binary/multivalue control circuit 110a. That is, multivalue data /VDO 7 to /VDO 0 constructed by eight bits are supplied to the binary/multivalue control circuit 110a of the printer engine I/F 110 through the multivalue data bus 116 (Fig. 1) corresponding to those signals. The binary data is supplied through the binary data signal line 115, namely, a /VDO 7 signal line. Fig. 4B is an output time chart of multivalue data which is sent from the binary/multivalue control circuit 110a to the printer engine 111. As shown in Fig. 4B, the multivalue data /VDO is transferred to the printer engine 111 in the transfer direction shown by an arrow in Fig. 4A synchronously with a clock signal /VCLK from a clock generating unit (not shown) for a period of time when the /VSZ signal is at the low "L" level. On the other hand, as shown in Fig. 4C, the binary data is transferred for a period of time when the /VSZ signal is at the high "H" level (by eight clocks of the /VCLK signal). If the /VDO 7 signal is at the "H" level for such a period of time, the binary data is black data (in the case of Fig. 4C). If it is at the "L" level, the binary data is white data. When the binary data is transferred, that is, when the /VSZ signal is at the "H" level, the input signals to /VDO 6 to /VDO 0 of the binary/multivalue control circuit 110a are ignored. A printing processing procedure in the printer of the embodiment will now be described hereinbelow with reference to a flowchart shown in Fig. 5. In step S1 in Fig. 5, the main controller 106 checks to see if there is a request to print from the operation panel 112 or host computer 101 or not. If YES, step S2 follows and the data are fetched from the binary data page memory 103 and multivalue data page memory 104. In step S3, a check is made to see if the fetched data is the binary data or multivalue data. If the input data is the binary data in step S3, the processing routine advances to step S9, which will be explained hereinlater. If the input data is the multivalue data, step S4 follows and the main controller 106 checks to see if the gradation number of the multivalue data stored in the gradation number setting unit 107 and the gradation number of the print request have been changed when the data had been stored from the host computer 101 into the multivalue data page memory 104 or not. If YES, the gradation is changed in step S5. After completion of the process in step S5, or if there is no change in gradation number of the multivalue data in the discriminating step S4, step S7 follows and the main controller 106 analyzes the input multivalue data, thereby discriminating whether the multivalue data is data near black or white or not on the basis of the bit pattern obtained by dividing the pixel by the time modulation method. If it is determined in step S7 that the multivalue data should be generated as it is, namely, if NO in step S7, the processing routine advances to step S6 and the multivalue data is transferred to the printer engine I/F 110. In subsequent step S10, the multivalue data is printed by the printer engine 111. However, if the multivalue data should be converted into the binary data on the basis of the bit pattern, the processing routine advances to step S8 and the multivalue data is converted into the binary black or white data. The converted binary data is transferred to the printer engine I/F 110 in step S9 and printed by the printer engine 111 in step S10. As described above, according to the embodiment, by converting the multivalue data of an image near black or white into the binary black or white data, there is an effect such that a use efficiency of the memory which is required for the image data processes can be improved. In the embodiment, the image data in which only one bit of the pixel divided by the time modulation method in the multivalue image data indicates black or white has been converted into the binary data. However, as shown in Fig. 6, image data in which two or more bits of the pixel divided by the time modulation method indicate black or white can be also converted into the binary data. Although the embodiment has been described with respect to the time modulation method as an example of a method of expressing a half tone, the invention can be also applied to a dither method or a density pattern method. (Another embodiment) Fig. 9 shows a flowchart in the case of setting an approximate gradation number in the case of changing the multivalue data into the binary data in the flowchart shown in Fig. 5. Steps S1 to S3 in Fig. 9 are the same as those in Fig. 5. In step S4, a gradation number a of the multivalue data is checked. Assuming that the maximum value of the gradation number at which the printer can print is set to b, a check is made in step S5 to see if the value of a is equal to or larger than the value of b or not. If a ≧ b, the gradation number of the multivalue data is reduced from a to b in step S6. Since the print result cannot exceed the maximum value of the half tone which can be printed by the printer, the gradation number of the multivalue data is previously set in accordance with the maximum value of the gradation number of the printer. A check is now made in step S7 to see if the multivalue data is approximated to the binary data or not. If NO in step S7, step S11 follows and the multivalue data is transferred to the printer engine. Such a discrimination can be also set by a command from the host computer or the operation panel or can be set by discriminating the memory capacity. If the approximation is executed, gradation numbers k (black) and ℓ (white) which are approximated to binary black data and binary white data are respectively set in step S8. As shown in Fig. 10, the values of k and ℓ are stored into the gradation number setting unit 107 in Fig. 1. The values of k and ℓ can be also sequentially set by the user by a command from the host computer (for instance, on a page unit basis) or through the operation panel. For instance, in the case where a draft of a design for a block copy is formed and an examination such as layout or the like is executed, there is no need to express and reproduce the multivalue data at a high precision. Therefore, by setting the values of k and ℓ to values near the intermediate gradation numbers in step S8, respectively, the processing time of the multivalue data is reduced. Thus, the print result can be rapidly obtained. (Another embodiment) The case of changing the gradation number of the multivalue image in accordance with the capacity of the memory provided in the printer will now be described. Fig. 11 is a diagram most suitably showing an example of a construction of still another embodiment of the invention. In the diagram, reference numeral 101' denotes print data which is sent from the host computer; 102 the host computer I/F; 103 the binary data page memory; 104 the multivalue data page memory; 195 an auxiliary memory which can be expanded; 106 the main controller of the printer; 107 the setting unit to set the gradation number of the multivalue data; 105 a font memory; 199 a dot pattern developing unit; 110 the printer engine I/F; and 111 the printer engine. The print data 101' which is sent from the host computer is stored into individual memories by the main controller 106 on the basis of the kind of data. That is, image data is stored into the multivalue data page memory 104 and character data is stored into the binary data page memory 103. In the case of a page printer, print data of one page has been prepared in the page memory. Therefore, the print data is developed into the dot pattern developing unit 199 and is generated as an on/off signal (serial signal) 9 of the laser to the printer engine. If the capacity of the multivalue data page memory 104 is insufficient as a capacity of one page of the multivalue data sent from the host computer, the gradation number setting unit 107 sets the gradation number into a value smaller than the gradation number of the multivalue data, thereby enabling the multivalue data to be stored into the multivalue data page memory 104. Assuming that the multivalue input data from the host computer has n gradations (n ≧ 16), the printer judges whether the multivalue input data is stored into the memory by 16 gradations or by, for instance, 4 gradations by referring to the capacity of the memory provided in the printer. The relation between the gradation number and the memory capacity and a method of reducing the gradation number will now be described. Fig. 12 shows the relation between the memory capacity which is required to express the gradation number of one pixel of the multivalue image and the gradation number of the image. An axis of ordinate indicates the gradation number of an image and shows an interval converted into a logarithmic value. An axis of abscissa indicates the memory capacity of one pixel of the image. For instance, in the case of 64 gradations, data of 6 bits is needed because 2 6 = 64. As shown in the diagram, the memory capacity also increases with an increase in number of gradations. Fig. 13 shows the gradation number of the input data and the gradation number of the output data. A straight line 1 ○ shows the case where the input multivalue data has been generated by the original gradation number at a high precision and a straight line 2 ○ indicates the case where it has been generated by a gradation number smaller than the gradation number of 1 ○. For instance, by reducing the output gradation number at a point B, the output gradation number decreases to a point B'. The reduced gradation number is changed step by step without continuously changing the gradation number as shown in 1 ○. As mentioned above, the embodiment has devised so as to process the multivalue data which needs a memory capacity larger than that in the case of the binary character data. In the above embodiment, the printer side detects the capacity of the multivalue data page memory provided in the printer. However, the output gradation number can be also set by an application software on the host computer side. Further, if the set gradation number is too large and the memory capacity in the printer lacks, the printer sends a status to the host computer, thereby also enabling the status to be displayed on the application software of the host computer. [Description of laser beam printer (Fig. 14)] A construction of a laser beam printer to which the embodiment is applied will now be described with reference to Fig. 14. Fig. 14 is a cross sectional view showing an internal structure of the laser beam printer (hereinafter, abbreviated to an LBP) of the embodiment. The LBP can register a character pattern from a data source (not shown) or can register a form data or the like. In the diagram, reference numeral 900 denotes an LBP main body. The LBP main body receives and stores character data (character code), form data, macro instruction, and the like which are supplied from the host computer (101 in Fig. 1) connected to the outside. In accordance with the above data, the LBP main body 900 forms a corresponding character pattern, a form pattern, or the like and forms an image onto a recording paper as a recording medium. Reference numeral 3107 denotes an operation panel on which switches for operation, an LED display, and the like are arranged. Reference numeral 106 denotes the printer control unit (main controller) to control the whole LBP 900 and to analyze the character data or the like which is sent from the host computer. The printer control unit 106 mainly converts the character data into the video signal of the corresponding character pattern and supplies to a laser driver 1002. The laser driver 1002 is a circuit to drive a semiconductor laser 1003 and on/off switches a laser beam 1004 which is emitted from the semiconductor laser 1003 in accordance with an input video signal. The laser beam 1004 is oscillated to the right and left by a rotary polygon mirror 1005 and scans on an electrostatic drum 1006. Due to this, an electrostatic latent image of a character pattern is formed on the drum 1006. The latent image is developed by a developing unit 1007 arranged around the drum 1006 and, after that, it is copy transferred onto the recording paper. A cut sheet is used as a recording paper. The cut sheet recording papers are enclosed in a sheet cassette 1008 attached in the LBP 900 and are conveyed one by one into the apparatus by a paper feed roller 1090 and conveying rollers 1100 and 1110 and supplied to the drum 1006. As described above, the gradation number can be variably set in accordance with the memory capacity. As described above, according to the invention, by variably setting a range to convert the multivalue data near white or black into the data of white or black, there is an effect such that an image of a high quality can be generated and a data amount can be reduced.

Claims: Output apparatus including means (102, 106) for receiving data which includes both image data and character data, for distinguishing between received image and character data, and for converting the received image and character data into appropriate formats for output, and characterised in that the apparatus further comprises means for converting selected values of the image data into the same format for output as the character data. Apparatus according to claim 1, wherein the input image data is multi-value data and the selected values of the image data converted into the format of the character data are values which are close to black. Apparatus according to claim 1, wherein the input image data is multi-value data and the selected values of the image data converted into the format of the character data are values which are close to white. Apparatus according to either of claims 2 or 3 and further comprising converting means (108) for converting the multi-value image data into binary data. Apparatus according to claim 4, and comprising an output interface (110) to which is connected multi-value image data, binary character data, and binary data generated by said converting means. Apparatus according to any one of the preceding claims, and including means (107) for setting a number of gradations by means of which the image data can be expressed. Apparatus according to any one of the preceding claims wherein the formats comprise a plurality of gradations. A method of outputting image data comprising receiving data which includes both image and character data; distinguishing between the received image and character data, and processing the received image and character data into suitable formats for output, and characterised in that selected values of the image data are converted into the same format for output as the character data. A method according to claim 8, wherein the image data is multi-value data and the selected values of the image data are values which are close to black. A method according to claim 8, wherein the image data is multi-value data and the selected values of the image data are values which are close to white. A method according to either of claims 9 or 10, wherein the input image data is multi-value data and the character data is binary data, the selected values of the input image data being converted into binary data. A method according to any one of claims 8 to 11 wherein the formats comprise a plurality of gradations.

Inventors: NOBUYASU ITO, NOBUYASU, ITO, Nobuyasu, Ito, c/o Canon Kabushiki Kaisha
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1991
Main classification: B41J2
IPC codes: H04N1, B41J2, G06F3, G06T5