1. Field of the Invention
The present invention relates to image processing in displaying a document image.
2. Related Background Art
Conventionally, in display control for displaying documents prepared by various applications on a screen, in the case where scroll of a displayed part on a screen or re-drawing of a part hidden behind another window is performed, off-screen images (images prepared by developing drawing elements off-screen (on a virtual screen), are stored in an internal memory (off-screen buffer for storing off-screen data) in order to perform drawing quickly.
However, in the conventional system, since no off-screen image is stored in the internal memory (off-screen buffer) when drawing is performed for the first time, an overall off-screen image is created first and then transferred onto the screen (on-screen) to perform drawing. Thus, there is a problem in that, for example, a user cannot check the image until the overall off-screen image is created, and particularly when working on a document requiring longer time for drawing, the user becomes displeased and wonders if the application has become hung-up or frozen.
In order to solve the above-mentioned problem, an image processing apparatus according to an aspect of the present invention includes:
off-screen development means for developing drawing elements included in document data off-screen;
display drawing means for performing control to draw a developed off-screen drawing element on a display; and
intermediate drawing check means for, every time a predetermined number of drawing elements among the drawing elements are developed by the off-screen development means, checking whether or not the developed off-screen drawing elements satisfy predetermined intermediate drawing conditions and, when it is determined that the predetermined intermediate drawing conditions are satisfied, controlling the display drawing means to draw the developed off-screen drawing elements on the display.
In order to solve the above-mentioned problem, an image processing method according to another aspect of the present invention includes:
an off-screen development step of developing drawing elements included in document data off-screen;
display drawing steps which performs control to draw a developed off-screen drawing element on a display; and
an intermediate drawing check step of, every time a predetermined number of drawing elements among the drawing elements are developed by the off-screen development step, checking whether or not the developed off-screen drawing elements satisfy predetermined intermediate drawing conditions and, when it is determined that the predetermined intermediate drawing conditions are satisfied, controlling the display drawing step to draw the developed off-screen drawing elements on the display.
In order to solve the above-mentioned problem, according to another aspect of the present invention, a computer program executable by a computer for processing an image in an information processing apparatus includes a problem code for causing the computer to execute:
an off-screen development step of developing drawing elements included in document data off-screen;
a display drawing step of performing control to draw the developed off-screen drawing element on a display; and
an intermediate drawing check step of, every time a predetermined number of drawing elements among the drawing elements are developed by the off-screen development step, checking whether or not the developed off-screen drawing elements satisfy predetermined intermediate drawing conditions and, when it is determined that the predetermined intermediate drawing conditions are satisfied, controlling the display drawing step to draw the developed off-screen drawing elements on the display.
Other features and advantages of the patent invention will be apparent from the following description taken in conjunction with the accompanying drawings, in which like reference characters designate the same or similar parts throughout the figure thereof.
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
In the figure, reference numeral 1 denotes a CPU which executes a program for controlling this apparatus; 2, a keyboard for data input; 3, a display on which a document image is displayed; 4, a hard disk which stores a document; 5, a ROM which stores the program for controlling the apparatus and necessary information in advance; and 6, a RAM which is utilized as various work areas, in which an off-screen buffer for storing an image drawn off-screen (on a virtual screen) is assumed to be secured. Reference numeral 7 denotes a drawing unit which draws a document image off-screen or on the display 3 (on-screen), and 11 denotes a data bus which transfers various kinds of data. The drawing unit 7 includes: an off-screen drawing unit 8 which develops (draws) drawing elements in a document off-screen one by one; a display drawing unit 9 which draws contents developed (drawn) off-screen on the display 3; and an intermediate drawing check unit 10 which checks whether or not the contents which have already been developed (drawn) off-screen by the off-screen drawing unit 8 are developed (drawn) on the display by the display drawing unit 9.
Note that, the image processing apparatus of this embodiment mode is assumed to be realized by a program running on a computer. However, the computer may be constituted by one device or may be constituted by a plurality of devices. In addition, in this embodiment mode, a control program corresponding to a flowchart to be described later is assumed to be stored in a ROM. However, the control program may be stored in another internal storage medium such as a hard disk, or may be stored in an external storage medium such as a floppy (R) disk or a CD-ROM and read and executed if necessary, or may be received from an external device via a network and executed.
First Embodiment
The CPU 1 executes a control program stored in the ROM 5, which corresponds to the flowchart of
In step S1, a document to be developed is read from the hard disk 4, and one of drawing elements of the document is developed (drawn) off-screen by the off-screen drawing unit 8 in the drawing unit 7. Note that the drawing element is a character, a line-drawing, an image, or the like included in a document.
In step S2, the CPU 1 controls the intermediate drawing check unit 10 to check whether or not the drawing element drawn off-screen in step S1 satisfies intermediate drawing conditions.
As shown in
Condition 1: 50th line-drawing
Condition 2: Line-drawing having more than 1000 pixels width.
Condition 3: Line-drawing having more than 1000 pixels height
Condition 4: Line-drawing having more than 1000 pixels length
Condition 5: 5th image
Condition 6: Image having more than 200 pixels width
Condition 7: Image having more than 200 pixels height
Condition 8: Image having more than 3000 dimensions
Condition 9: Image having more than 24 bit/pixel
Condition 10: 3000th character
Condition 11: Character having more than 500 pixels width
Condition 12: Character having more than 500 pixels height
If at least one condition among these conditions is satisfied, the image processing proceeds to step S3. If no condition is satisfied, the image processing proceeds to step S4.
In step S3, the CPU 1 controls the display drawing unit 9 to draw contents, which have been developed (drawn) off-screen to that point, on the display 3. Thus, a user can check the drawn contents which have been processed to that point.
Next, in step S4, again, the CPU 1 controls the intermediate drawing check unit 10 to check if all the drawing elements included in the document to be developed have been developed (drawn) off-screen. If all the drawing elements have been developed (YES in S4), the image processing proceeds to step S5. If all the drawing elements have not been developed (NO in S4), the image processing returns to step S1, and the next one of the drawing elements is developed (drawn) off-screen.
In step S5, the CPU 1 transfers an off-screen image, which is created by developing all the drawing elements off-screen, to the display 3 (on-screen) and draws an image thereon.
As described above, according to this embodiment, a comfortable image processing apparatus can be provided with which, even in the case where there are a large number of drawn contents and image processing takes long time, an intermediate state is indicated to a user, thereby enabling the user to check a document quickly and reduce displeasure of the user.
In addition, by setting the intermediate drawing conditions properly, intermediate drawing can be performed at appropriate timing.
Second Embodiment
A second embodiment of the present invention will be described.
As shown in
Condition 1: 50th line-drawing
Condition 2: Line-drawing having more than 1000 pixels width.
Condition 3: Line-drawing having more than 1000 pixels height
Condition 4: Line-drawing having more than 1000 pixels length
Condition 5: 5th image
Condition 6: Image having more than 200 pixels width
Condition 7: Image having more than 200 pixels height
Condition 8: Image having more than 3000 dimensions
Condition 9: Image having more than 24 bit/pixel
Condition 10: 3000th character
Condition 11: Character having more than 500 pixels width
Condition 12: Character having more than 500 pixels height
Threshold of each condition shall be adjusted based on OS type as follows.
When the above-mentioned conditions are used, for example, in the case where the OS is Windows (registered trademark) 95, a threshold value 50 of the condition 1 is adjusted as 50×0.5=25. If the line-drawing has been performed for the 25th time, the CPU 1 checks that the condition 1 is satisfied and the image processing proceeds to step S3. The determines is also performed for the other OSs and the other conditions after the threshold values are adjusted in the same manner.
As described above, in the second embodiment, the same effect as in the first embodiment can be obtained and, at the same time, meticulous image processing control according to a processing capability of an OS can be performed.
Third Embodiment
A third embodiment of the present invention will be described.
As shown in
Condition 1: 50th line-drawing
Condition 2: Line-drawing having more than 1000 pixels width.
Condition 3: Line-drawing having more than 1000 pixels height
Condition 4: Line-drawing having more than 1000 pixels length
Condition 5: 5th image
Condition 6: Image having more than 200 pixels width
Condition 7: Image having more than 200 pixels height
Condition 8: Image having more than 3000 dimensions
Condition 9: Image having more than 24 bit/pixel
Condition 10: 3000th character
Condition 11: Character having more than 500 pixels width
Condition 12: Character having more than 500 pixels height
Threshold of each condition shall be adjusted based on CPU clock as follows.
(Threshold)=(above threshold)×(CPU clock)/(1 GHz)
When the above-mentioned conditions are used, for example, in the case where the CPU clock is 0.8 GHz, a threshold value of the condition 1 being 50 is adjusted as 50×0.8/1=40. If the line-drawing has been performed for the 40th time, the CPU 1 determines that the condition 1 is satisfied and the image processing proceeds to step S3. The check is also performed for the other clock and the other conditions after the thresholds are adjusted in the same manner.
As described above, in the third embodiment, the same effect as in the first embodiment can be obtained and, at the same time, meticulous image processing control according to a processing capability of a CPU can be performed.
Fourth Embodiment
In step S6 of
In step S62, in the intermediate drawing check unit 10, it is checked whether or not any one of the drawing elements, drawn off-screen in step S61 satisfies intermediate drawing conditions. As shown in
Condition 1: 50th line-drawing
Condition 2: Line-drawing having more than 1000 pixels width.
Condition 3: Line-drawing having more than 1000 pixels height
Condition 4: Line-drawing having more than 1000 pixels length
Condition 5: 5th image
Condition 6: Image having more than 200 pixels width
Condition 7: Image having more than 200 pixels height
Condition 8: Image having more than 3000 dimensions
Condition 9: Image having more than 24 bit/pixel
Condition 10: 3000th character
Condition 11: Character having more than 500 pixels width
Condition 12: Character having more than 500 pixels height
If at least one condition among these conditions is satisfied, the image processing proceeds to step S3. If no condition is satisfied, the image processing proceeds to step S4. The subsequent processing is the same as in the first embodiment, so that its description will be omitted.
As described above, according to the fourth embodiment, a comfortable image processing apparatus can be provided with which, even in the case where there are a large number of drawn contents and image processing takes long time, an intermediate state is indicated to a user, thereby enabling the user to check a document quickly and reduce displeasure of the user.
Fifth Embodiment
In the above-mentioned embodiments, the CPU 1 controls the intermediate drawing check unit 10 to check whether or not at least one of the intermediate drawing conditions is satisfied. However, the check may be performed based on whether or not a plurality of conditions set in advance among the intermediate drawing conditions are satisfied.
For example, if a drawing element, which has been developed (drawn) off-screen to that point, satisfies two or more conditions among the intermediate drawing conditions, the image processing proceeds to step S3. In that case, for example, if only the condition 1 is satisfied, the image processing proceeds to step S4 and returns to step S1. If another condition, for example, the condition 7 is also satisfied, the image processing proceeds to step S3, and developed (drawn) off-screen contents are drawn on the display.
As described above in the first to fifth embodiments, according to the present invention, even in the case where there are a large number of drawn contents and image processing takes long time, an intermediate state is indicated to a user, thereby enabling the user to check a document quickly and reduce displeasure of the user. Also, it becomes less likely that the user wonders if hung-up of an application has occurred.
Number | Date | Country | Kind |
---|---|---|---|
2002-117699 | Apr 2002 | JP | national |
Number | Name | Date | Kind |
---|---|---|---|
5363483 | Jones et al. | Nov 1994 | A |
5859646 | Takenaka | Jan 1999 | A |
5999207 | Rodriguez et al. | Dec 1999 | A |
6104832 | Saito et al. | Aug 2000 | A |
6385338 | Saito et al. | May 2002 | B1 |
Number | Date | Country | |
---|---|---|---|
20030197697 A1 | Oct 2003 | US |