This nonprovisional application is based on Japanese Patent Application No. 2008-219755 filed on Aug. 28, 2008 with the Japan Patent Office, the entire contents of which are hereby incorporated by reference.
1. Field of the Invention
The present invention relates to creating data for displaying an image, and particularly to creating gradation data.
2. Description of the Background Art
Conventionally, when gradation data of an image for each pixel is generated from an original image of a graphic or the like, the gradation data is created, for example, by pulse-surface-area modulation. The pulse-surface-area modulation is a method of setting a matrix including a plurality of dots and varying a pseudo-density depending on how many dots are placed in the matrix (see “Tech-On!”, [online], Nikkei Business Publications, Inc., [Retrieval on Aug. 25, 2008], the Internet (http://techon.nikkeibp.co.jp/article/WORD/20061215/125470/)). Generation of gradation data using pulse-surface-area modulation will be described with reference to
With reference to
When gradation data of each pixel is created using pulse-surface-area modulation, for example, a sub-pixel of 10×10 is defined for each pixel as shown as a pattern P2, and the number of sampling points of sub-pixels enclosed in the outline of the original image is counted for each pixel. Specifically, sub-pixels of a pixel at row 1, column 4, in pattern P1 are schematically shown on an enlarged scale in pattern P2. In order to create gradation data of each pixel, it is determined whether or not there is a sampling point for each of 100 sub-pixels of each pixel in a region constituting an outline (region X). In this way, the number of sub-pixels each having a sampling point inside the outline is counted for each pixel. The counted number is defined as a gradation value of each pixel.
In pattern P2, a sampling point of each sub-pixel is indicated by a dot at a central portion of each pixel. In pattern P2 of
As described above, in conventional generation of gradation data, determination of whether or not a sampling position lies inside the outline has been needed for a large number of sub-pixels, such as 100 sub-pixels, for each pixel. Therefore, a disadvantage of requiring longer processing time has arisen.
The present invention is conceived in view of such circumstances. An object of the invention is to shorten processing time required for generating gradation data.
A data creating apparatus of the present invention is a data creating apparatus for creating image data for displaying a graphic on a displaying device. The data creating apparatus includes a first storing unit storing information representing a basic portion of the graphic, a gradation generating unit for generating gradation data of a portion other than the basic portion of the graphic by an oversampling process, and a second storing unit for storing oversampling information that is information for performing the oversampling process. In the data creating apparatus, the gradation generating unit generates the gradation data based on the oversampling information extracted from the second storing unit.
A drawing apparatus of the present invention is a drawing apparatus for causing the displaying device to display the graphic based on the image data created by the foregoing data creating apparatus. The drawing apparatus includes a data mixing unit for generating data for displaying by mixing display data of a graphic display color and display data of a background display color based on the gradation data, and a sending unit for sending the data for displaying generated by the data mixing unit to the displaying device.
A method of controlling a data creating apparatus of the present invention is a method of controlling a data creating apparatus that includes first and second storing units and creates image data for displaying a graphic on a displaying device. The method includes the steps of causing the first storing unit to store information representing a basic portion of the graphic, causing the second storing unit to store oversampling information that is information for performing an oversampling process, extracting the oversampling information from the second storing unit, and generating gradation data of a portion other than the basic portion of the graphic based on the extracted oversampling information by the oversampling process.
A recording medium according to an aspect of the present invention records a program for causing a computer to execute the steps included in the foregoing method of controlling a data creating apparatus.
A method of controlling a drawing apparatus of the present invention is a method of controlling a drawing apparatus for causing the graphic to be displayed on the displaying device by sending the image data created by the foregoing data creating method to the displaying device. The method of controlling the drawing apparatus includes the steps of generating data for displaying by mixing display data of a graphic display color and display data of a background display color based on the gradation data, and sending the data for displaying to the displaying device.
A recording medium according to another aspect of the present invention records a program for causing a computer to execute the steps included in the foregoing method of controlling a drawing apparatus.
The foregoing and other objects, features, aspects and advantages of the present invention will become more apparent from the following detailed description of the present invention when taken in conjunction with the accompanying drawings.
An embodiment of a data creating apparatus and a drawing apparatus of the present invention will be described below with reference to the accompanying drawings. Note that, in the following description, the same components are denoted by the same reference characters in each drawing, and the detailed description on the components is not repeated if their names and functions are the same.
1. Configuration of Apparatuses
1-1. Hardware Configuration
With reference to
Information processing device 1 includes a CPU (Central Processing Unit) 1A for controlling the whole of information processing device 1, a RAM (Random Access Memory) 2 to be a work area of CPU 1A, a ROM (Read Only Memory) 3 for storing programs executed by CPU 1A, and the like, a hard disk 5, an optical disk drive 6, a magnetic disk drive 7, a remote (remote controller) 8A and a remote I/F (interface) 8. In information processing device 1, components are connected through a bus 9.
Optical disk drive 6 and magnetic disk drive 7 can read and/or write information from and/or to an optical disk 6A and a magnetic disk 7A, respectively. Optical disk 6A and magnetic disk 7A are removable from information processing device 1. A user can input information to information processing device 1 by operating remote 8A. Remote I/F 8 receives information sent from remote 8A and sends the received information to CPU 1A.
Information processing device 1 is connected to displaying device 300. CPU 1A outputs information to be displayed on displaying device 300 to displaying device 300. This allows displaying device 300 to perform displaying based on display data sent from information processing device 1.
1-2. Control Block Configuration of Data Creating Apparatus
With reference to
Oversampling information 502 includes the number of sampling points for each pixel, the numbers of sub-pixels in the vertical and horizontal directions, and information specifying a sampling position in a sub-pixel when creating gradation data.
Oversampling information 502 is stored in ROM 3, RAM 2 or the like. If oversampling information 502 is stored in ROM 3, oversampling information 502 is predetermined information. Note that a user may input oversampling information by operating remote 8A or the like. The input oversampling information 502 is stored, for example, in RAM 2. Gradation information creating unit 10 acquires oversampling information 502 through an information extracting unit 11.
Gradation information creating unit 10 can also acquire character information 501 that is information specifying the kind of a graphic (a character, a symbol or the like) to be displayed on displaying device 300, and correct display data by using gradation information in accordance with character information 501. In data creating apparatus 100, character information 501 is stored in a character information storing unit 19. Gradation information creating unit 10 acquires character information 501 through a character information acquiring unit 16 when creating display data.
Note that, in data creating apparatus 100, it is possible to detect a slope of each portion in each graphic to be displayed on displaying device 300 and to divide the graphic into two or more blocks by using the detected slope. Gradation information creating unit 10 can generate gradation data for each block in gradation data of a graphic to be displayed on displaying device 300.
Gradation information creating unit 10 sends the generated gradation data through a drawing apparatus 200 to displaying device 300. Note that gradation information creating unit 10 can also send the gradation data through an outputting unit 12 to another device such as an external device 400.
As described above, data creating apparatus 100 described with reference to
1-3. Drawing Apparatus
Drawing apparatus 200 illustrated in
Drawing apparatus 200 is implemented with CPU 1A for executing programs stored on ROM 3 and/or hard disk 5 and the like.
1-4. Information Representing Basic Portion of Graphic
In character information storing unit 19, skeleton data (one example of information representing a basic portion of a character or a symbol) for a graphic, such as a character or a symbol, to be displayed on displaying device 300 is stored in association with a code number provided to each character or symbol.
In the present embodiment, as the skeleton data, or one example of information representing basic portions, coordinates for specifying lines representing skeletons (skeleton lines), or one example of basic portions of each graphic, are stored as shown in
Shown in
Note that, in the present embodiment, information representing a basic portion of a graphic is not limited to skeleton data, and may be outline data. That is, assuming that outline data is basic portion data, for the outline data or data obtained by subjecting the outline data to an anti-aliasing process, data creating apparatus 100 can also correct gradation data of a portion near a basic portion in that data.
2. Generation of Gradation Data
Next, a process that is performed when generating gradation data in data creating apparatus 100 will be described referring to
Referring to
In step SA20, gradation information creating unit 10 acquires information specifying a graphic to be displayed on displaying device 300 by extracting the information from an instruction content for displaying the graphic, or the like, and the process proceeds to step SA30.
In step SA30, gradation information creating unit 10 acquires information (e.g., skeleton data) specifying a basic portion of the graphic to be displayed on displaying device 300 through character information acquiring unit 16 from character information storing unit 19, and the process proceeds to step SA40.
In step SA40, oversampling is performed for the graphic for which the information specifying the basic portion has been acquired in step SA30, and the process proceeds to step SA50.
Note that the oversampling in step SA40 is performed based on the oversampling information acquired in step SA10.
In
Thus, in the present embodiment, gradation data is generated using an oversampling mode, not pulse-surface-area modulation as conventionally used. Processing time can therefore be shortened when gradation data is generated.
Note that, in the oversampling process, if outline data is a subject of processing, the contour of a region indicated by region XA corresponds to the outline of the outline data.
Referring back to
Note that, in the foregoing gradation data generation process, oversampling information is not limited to that mentioned above. For example, the sampling position may be in a lower end at the center in the lateral direction of each sub-pixel as shown in
3. Modification of Gradation Data Generation Process
In the present modification, an oversampling process is performed for each of a plurality of sampling positions regarding each sub-pixel, and the obtained gradation values of each pixel are added up, so that a gradation value of image data is determined.
Referring to
In step SA41, gradation information creating unit 10 performs an oversampling process while performing sampling at a first point (e.g., a central portion of each sub-pixel as shown in
As understood from
As understood from data DAM and data DA2 of
Note that, in data DA1 and data DA2 of
Referring back to
With reference to data DA3 of
Data DA3 of
Data DA3 is gradation data in eight gradations because it is generated by adding up two pieces of gradation data in five gradations.
Note that, when a plurality of pieces of gradation data are merged, gradation values of pixels corresponding to one another in a plurality of pieces of data may be added up without being changed as described with reference to data DA1 to DA 3 of
In the example described with reference to
4. Further Modification of Gradation Data Generation Process
Referring to
In step SA44, gradation information creating unit 10 divides a graphic that is being processed into blocks for each angle of outline data or a skeleton portion, and then the process proceeds to step SA45.
Note that such block dividing is achieved, for example, by dividing a graphic for every stroke in the skeleton data described with reference to
In step SA45, gradation information creating unit 10 performs an oversampling process for each block resulting from dividing in step SA44, and the process proceeds to step SA46. In this modification, oversampling information acquired in step SA10 includes information that specifies the number of sub-pixels corresponding to each pixel, and the number of sampling and a sampling position in each sub-pixel in a oversampling process, for example, by using the angle of outline data and a skeleton portion. In step SA45, the oversampling process is performed for each block based on oversampling information in accordance with the slope of the skeleton portion.
In step SA46, gradation information creating unit 10 generates gradation data for each block based on the result of the oversampling process in step SA45. In step SA52, the gradation data is combined to generate a gradation value of the entire graphic, and then the gradation data generation process ends.
According to the present embodiment, gradation data is generated by extracting oversampling information (including information that specifies the number of sampling of each pixel and a sampling position of coloring in a sub-pixel) from a storing unit and performing an oversampling process based on the oversampling information. That is, according to the present invention, gradation data is generated using an oversampling mode.
Thus, processing time can therefore be shortened more than with pulse-surface-area modulation when gradation data is generated.
Although the present invention has been described and illustrated in detail, it is clearly understood that the same is by way of illustration and example only and is not to be taken by way of limitation, the scope of the present invention being interpreted by the terms of the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
2008-219755 (P) | Aug 2008 | JP | national |