JP4361118B2 - Information processing apparatus, information processing method, and program - Google Patents

Information processing apparatus, information processing method, and program Download PDF

Info

Publication number
JP4361118B2
JP4361118B2 JP2008048398A JP2008048398A JP4361118B2 JP 4361118 B2 JP4361118 B2 JP 4361118B2 JP 2008048398 A JP2008048398 A JP 2008048398A JP 2008048398 A JP2008048398 A JP 2008048398A JP 4361118 B2 JP4361118 B2 JP 4361118B2
Authority
JP
Japan
Prior art keywords
pixel
line
gradation
line segment
correction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2008048398A
Other languages
Japanese (ja)
Other versions
JP2009204989A (en
Inventor
安久 中村
佳世 岡本
瑞 作田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sharp Corp
Original Assignee
Sharp Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sharp Corp filed Critical Sharp Corp
Priority to JP2008048398A priority Critical patent/JP4361118B2/en
Priority to CN200980106789.6A priority patent/CN101960512A/en
Priority to PCT/JP2009/053019 priority patent/WO2009107554A1/en
Publication of JP2009204989A publication Critical patent/JP2009204989A/en
Application granted granted Critical
Publication of JP4361118B2 publication Critical patent/JP4361118B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/40Picture signal circuits
    • H04N1/409Edge or detail enhancement; Noise or error suppression
    • H04N1/4092Edge or detail enhancement
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • G06T5/92Dynamic range modification of images or parts thereof based on global image properties
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/22Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of characters or indicia using display control signals derived from coded signals representing the characters or indicia, e.g. with a character-code memory
    • G09G5/24Generation of individual character patterns
    • G09G5/28Generation of individual character patterns for enhancement of character form, e.g. smoothing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

An information processing device enables shaggy to be inconspicuous in a short processing time without using data such as in a look-up table. The information processing device (1) includes a display control section (16) for determining the gray scale of the displaying pixels out of the pixels. The display control section (16) includes a distance calculating subsection (20), a gray-scale correcting subsection (21), and a display data generating subsection (22). A group of displaying pixels of one column arrayed in the direction of the line width, which are part of pixels constituting the displaying pixels of a symbol, is defined as an element pixel group. The distance calculating subsection (20) calculates the distance in the direction of the line width between an element line segment and the center point of each element pixel group including pixels overlapping with the element line segment. The gray-scale correcting subsection (21) corrects the gray scale of the pixel at one end included in the element pixel group containing the center point to a gray scale which is between a specified gray scale and the gray scale of the background of the displayed symbol and which corresponds to the calculated distance. The display data generating subsection (22) generates display data for displaying the symbol on a display screen according to the correction by the gray-scale correcting subsection (21).

Description

本発明は、ストロークフォントによって記号を表示画面に表示させることが可能な情報処理装置、情報処理方法、およびプログラムに関する。   The present invention relates to an information processing apparatus, an information processing method, and a program capable of displaying a symbol on a display screen using a stroke font.

従来より、スケーラブルフォントの一種であるストロークフォントが知られている。スクロールフォントとは、文字の形をコンピュータ上で表現するためのデータ形式の一つである。また、スクロールフォントは、文字の形状を、中心線(骨格線)のパラメータ(ベクタデータ)として表現する形式でもある。   Conventionally, a stroke font which is a kind of scalable font is known. A scroll font is one of data formats for expressing the shape of a character on a computer. The scroll font is also a format for expressing the character shape as a center line (skeleton line) parameter (vector data).

例えば、特許文献1には、スクロールフォントを用いた文字表示装置が開示されている。   For example, Patent Document 1 discloses a character display device using a scroll font.

この文字表示装置においては、スケルトンデータと呼ばれる文字の骨格を示したデータ(つまり、ストロークフォント)に基づいて、文字を表示画面に表示させている。   In this character display device, characters are displayed on the display screen based on data indicating the skeleton of characters called skeleton data (that is, stroke font).

図27は、上記スケルトンデータのデータ構造を示した図である。同図に示すとおり、スケルトンデータ100は、文字の種別を区別するための文字コード101と、一つの文字を構成するストロークの数を示すストローク数102と、各ストロークに対応するストローク情報103とが含まれている。なお、この例では、一つのストロークが、文字の画数のうち一画分に対応する。言い換えれば、ストロークとは、表示画面に表示される線幅を有する文字の一部でもある。   FIG. 27 shows the data structure of the skeleton data. As shown in the figure, the skeleton data 100 includes a character code 101 for distinguishing character types, a stroke number 102 indicating the number of strokes constituting one character, and stroke information 103 corresponding to each stroke. include. In this example, one stroke corresponds to one stroke of the number of strokes of characters. In other words, the stroke is also a part of a character having a line width displayed on the display screen.

また、ストローク情報103には、ストロークを構成する複数の点の座標の数を示す座標の数104と、ストロークを構成する複数の点の座標をぞれぞれ示す複数の座標データ105…とが含まれている。   The stroke information 103 includes a coordinate number 104 indicating the number of coordinates of a plurality of points constituting the stroke, and a plurality of coordinate data 105 indicating the coordinates of the plurality of points constituting the stroke. include.

図28は、「木」といった漢字(文字)に関するスケルトンデータをデータ構造を示した図である。同図に示すとおり、「木」に関するスケルトンデータは、4つのストローク情報を含んでいる。言い換えれば、「木」に関するスケルトンデータは、4つのストロークの骨格線を示したデータ含んでいる。同図では、各ストローク情報に対応するストロークの骨格線に対して、ストローク#1〜ストローク#4として表示している。   FIG. 28 is a diagram showing a data structure of skeleton data related to a Chinese character (character) such as “tree”. As shown in the figure, the skeleton data relating to “tree” includes four pieces of stroke information. In other words, the skeleton data related to “tree” includes data indicating the skeleton lines of four strokes. In the figure, the stroke skeleton lines corresponding to each stroke information are displayed as stroke # 1 to stroke # 4.

例えば、ストローク#1については、始点(4,192)と終点(245,192)とを結ぶ線分として定義されている。また、ストローク#3については、始点(121,192)と点(97,141)とを結ぶ線分と、点(97,141)と点(72,103)とを結ぶ線分と、点(72,103)と点(41,69)とを結ぶ線分と、点(41,69)と終点(0,42)とを結ぶ線分とからなる折線として定義されている。図29は、漢字「木」の骨格を示した図28のスケルトンデータを座標平面上に示した図である。   For example, stroke # 1 is defined as a line segment connecting the start point (4, 192) and the end point (245, 192). For stroke # 3, a line segment connecting the start point (121, 192) and the point (97, 141), a line segment connecting the point (97, 141) and the point (72, 103), and a point ( 72, 103) and a point (41, 69) and a broken line consisting of a line connecting the point (41, 69) and the end point (0, 42). FIG. 29 is a diagram showing the skeleton data of FIG. 28 showing the skeleton of the Chinese character “tree” on the coordinate plane.

特許文献1では、記憶装置からスケルトンデータ100を読み出した後、指定された文字サイズにしたがって、当該スケルトンデータの座標データ(座標値)105…がスケーリングされる。このスケーリングにより、スケルトンデータ100の座標データ105…のために予め設定されていた座標系が、表示画面用の実ピクセル座標系に変換される。   In Patent Document 1, after the skeleton data 100 is read from the storage device, the coordinate data (coordinate values) 105 of the skeleton data are scaled according to the designated character size. By this scaling, the coordinate system set in advance for the coordinate data 105 of the skeleton data 100 is converted into an actual pixel coordinate system for the display screen.

その後、スケーリングされることにより得られた骨格線を示した情報を用いて、文字の描画が行われる。具体的には、骨格線の要素となる各線分に対して、所定の線幅を持たせることにより、表示画面に表示させる文字が構成される。   Thereafter, the character is drawn using the information indicating the skeleton line obtained by scaling. Specifically, characters to be displayed on the display screen are configured by giving each line segment that is an element of the skeleton line a predetermined line width.

図30は、上記線分に対して所定の線幅の持たせた例を示した図である。ここで、図30(a)は、線幅を奇数とした場合の例であり、図30(b)は、線幅を偶数とした場合の例である。そして、同図に示す太線で囲まれた画素の階調を指定された階調(例えば、背景の階調(例えば、白色)と異なる階調(例えば、黒色))に設定することにより、文字が表示画面に視認可能に表示されることになる。   FIG. 30 is a diagram showing an example in which a predetermined line width is given to the line segment. Here, FIG. 30A is an example when the line width is an odd number, and FIG. 30B is an example when the line width is an even number. Then, by setting the gradation of the pixel surrounded by the thick line shown in the figure to a designated gradation (for example, a gradation (for example, black) different from the background gradation (for example, white)), the character Will be displayed on the display screen so as to be visible.

しかしながら、このような構成では、図30(a)(b)にも示すとおり、表示画面に文字を表示する際に、斜線に発生する階段状のギザギザ(ジャギー)が目立ってしまう。   However, in such a configuration, as shown in FIGS. 30 (a) and 30 (b), when displaying characters on the display screen, stepped jagged (jaggy) generated in a diagonal line becomes conspicuous.

一方、特許文献2には、線分の副軸方向に対して複数個の画素データを順次発生させる発生手段と、各画素の輝度低減率を保持するレジスタと、上記発生手段の動作に同期して上記レジスタから必要な低減率データを取り出して各画素データを出力する出力手段とを備えた線分アンチエイリアシング装置が開示されている。   On the other hand, Japanese Patent Laid-Open No. 2004-228561 is synchronized with the operation of a generating unit that sequentially generates a plurality of pixel data in the sub-axis direction of a line segment, a register that holds a luminance reduction rate of each pixel, and the generating unit. In addition, a line segment antialiasing device is disclosed that includes output means for extracting necessary reduction rate data from the register and outputting each pixel data.

この装置によると、線分表示においてエイリアシングと呼ばれるギザギザの発生を抑えることが可能となる。
特開2005-24987号公報 特開平8−138067号公報
According to this apparatus, it is possible to suppress the occurrence of jaggedness called aliasing in line segment display.
Japanese Patent Laid-Open No. 2005-24987 JP-A-8-138067

ところで、特許文献2は、理論線と描画画素との距離の小数部(同文献におけるd11やd01(同文献の図4および図5参照))に対する低減率をルックアップテーブル(LUT)に保持しており、当該LUTを直接参照することにより低減率データを取得する構成となっている(同文献の図4および図5参照)。   By the way, in Patent Document 2, the reduction rate for the decimal part of the distance between the theoretical line and the drawing pixel (d11 and d01 in the document (see FIGS. 4 and 5 of the document)) is held in a lookup table (LUT). The reduction rate data is obtained by directly referring to the LUT (see FIGS. 4 and 5 of the same document).

このため、(小数部の取り得る値の数)×(線幅ドット数)個の低減率データをLUTに記憶させておく必要がある。このため、例えば同文献の図5においては、16×3=48バイトの記憶容量が必要になる。   For this reason, it is necessary to store (number of values that the decimal part can take) × (number of line width dots) in the LUT. For this reason, for example, in FIG. 5 of the same document, a storage capacity of 16 × 3 = 48 bytes is required.

また、同文献では、LUTで対応している線幅分しか線画像を生成できないため、任意の線幅の線画像を出力できない。仮に、数多くの種類の線幅の線画像を出力可能にしようとすると、膨大な数の低減率データをLUTに保持しなければならない。このため、この場合も、多くの記憶容量が必要になる。   Further, in this document, since line images can be generated only for the line width corresponding to the LUT, a line image having an arbitrary line width cannot be output. If an attempt is made to output line images having many types of line widths, an enormous number of reduction rate data must be held in the LUT. For this reason, a large amount of storage capacity is also required in this case.

さらに、同文献では、線に属する全ての画素の輝度値が低減する可能性があるため、この場合、全ての画素について輝度値を低減するための演算が必要になる。   Further, in this document, there is a possibility that the luminance values of all the pixels belonging to the line may be reduced. In this case, an operation for reducing the luminance values of all the pixels is necessary.

本発明は上記の問題点にみなされたものであって、その目的は、ルックアップテーブル等のデータを用いることなく、短い処理時間でシャギーを目立たなくさせることが可能な情報処理装置、情報処理方法、およびプログラムを提供することにある。 The present invention was considered Kan of the above problems, and an object without using data such as look-up table, a short processing time information processing apparatus capable to obscure Shaggy, the information To provide a processing method and a program.

本発明のある局面に従うと、情報処理装置は、マトリックス状に複数の画素が配された表示画面に、記号を表示させるための情報処理装置であって、記号の骨格を示す情報を記憶する記憶手段を備え、骨格を示す情報は、骨格を構成する各骨格線の要素である要素線分を示す情報を含み、骨格を示す情報に基づいて、指定された階調および前記マトリックスの行方向または列方向のいずれかにおいて指定された線幅を有するように前記記号を表示する際に、複数の画素のうちの表示画素の階調を決定する表示制御手段をさらに備え、表示制御手段は、記号の表示画素を構成する画素群の一部であって、表示画素が線幅の方向に一列に並んだ線幅分の画素群を要素画素群とするとき、要素線分と当該要素線分と重なる画素を含んだ要素画素群の中心点との線幅の方向の距離を、各要素画素群について算出する距離算出手段と、中心点を含んだ要素画素群に含まれる一方の端部の画素の階調を、指定された階調と表示される記号の背景の階調との間の階調であって、距離算出手段で算出した距離に応じた階調に補正する階調補正手段と、階調補正手段での補正に基づき、記号を表示画面に表示させるための表示データを生成する表示データ生成手段とを含んでいる。   According to an aspect of the present invention, an information processing apparatus is an information processing apparatus for displaying a symbol on a display screen in which a plurality of pixels are arranged in a matrix, and stores information indicating a skeleton of the symbol The information indicating the skeleton includes information indicating an element line segment that is an element of each skeleton line constituting the skeleton, and based on the information indicating the skeleton, the specified gradation and the row direction of the matrix or When the symbol is displayed so as to have a line width specified in any of the column directions, the display control unit further determines a gradation of a display pixel of the plurality of pixels, and the display control unit includes the symbol When an element pixel group is a pixel group for a line width that is a part of a pixel group that constitutes the display pixel and the display pixels are arranged in a line in the direction of the line width, the element line segment and the element line segment Element pixel group including overlapping pixels Distance calculation means for calculating the distance in the direction of the line width with respect to the center point for each element pixel group, and the gradation of one end pixel included in the element pixel group including the center point according to the designated floor Gradation correction means for correcting the gradation to a gradation corresponding to the distance calculated by the distance calculation means, and a correction between the gradation correction means and the gradation of the background of the symbol to be displayed And display data generating means for generating display data for displaying symbols on the display screen.

また、一方の端部の画素は、中心点に対して、当該中心点から線幅の方向に距離だけ離れた要素線分上の点とは反対側に位置する画素であることが好ましい。 Further, the pixel at one end is preferably a pixel located on the opposite side of the center point from the point on the element line segment that is away from the center point in the line width direction by a distance .

また、階調補正手段は、補正を行った画素を含んだ要素画素群における他方の端部の画素と線幅の方向に隣接する画素であって、当該要素画素群に含まれていない画素についても、記号の階調と当該記号の背景の階調との間の階調であって、距離算出手段で算出した距離に応じた階調に補正することが好ましい。   In addition, the gradation correction unit is a pixel adjacent to the other end pixel in the element pixel group including the corrected pixel in the line width direction and not included in the element pixel group. Also, it is preferable to correct the gradation according to the distance calculated by the distance calculating means between the gradation of the symbol and the gradation of the background of the symbol.

また、階調補正手段は、一方の端部の画素については、距離が長くなるにつれて、記号の階調か記背景の階調に近づく補正をし、隣接する画素については、距離が長くなるにつれて、背景の階調から記号の階調に近づく補正をすることが好ましい。   Further, the gradation correction means corrects the gradation of the symbol or the gradation of the background as the distance increases for the pixel at one end, and as the distance increases for the adjacent pixel. It is preferable to perform correction that approaches the gradation of the symbol from the gradation of the background.

また、複数の前記要素線分に基づき記号が表示される場合、各要素線分が、行方向または列方向と平行な直線であるか否かを、骨格線を示した情報に基づいて判定する平行判定手段と、平行判手段によって平行であると判された要素線分と重なる画素を含んだ前記要素画素群における一方の端部の画素と、当該要素画素群における他方の端部の画素と線幅の方向に隣接する画素であるとともに当該要素画素群に含まれていない画素とについては、階調補正手段による補正を制限する補正制限手段とを備えることが好ましい。 Further, when a symbol is displayed based on a plurality of the element line segments, it is determined based on the information indicating the skeleton lines whether each element line segment is a straight line parallel to the row direction or the column direction. parallel decision means, and the pixel of the one end of the element group of pixels including a pixel overlapping with determine constant by element segment is parallel with the parallel determination Priority determination means, the other end of the element group of pixels It is preferable to provide correction limiting means for limiting correction by the gradation correction means for pixels that are adjacent to the pixel in the direction of the line width and are not included in the element pixel group.

また、行方向または列方向に平行な要素線分と、平行な要素線分と連続するとともに当該要素線分に対して傾きを有する他の要素線分とに基づき記号が表示される場合、平行な要素線分と重なる画素を含んだ各要素画素群における各中心点を通る線を第1仮想線とし、他の要素線分と重なる画素を含んだ要素画素群における中心点を通る、第1仮想線と垂直な線を第2仮想線とすると、第2仮想線と他の要素線分との交点の位置と、第1仮想線位置とが所定の関係を満たす場合、当該交点と重なる画素を含んだ要素画素群における一方の端部の画素と、当該要素画素群に隣接する他方の端部の画素についての階調補正手段による階調の補正を制限する補正制限手段を備えることが好ましい。 In addition, when a symbol is displayed based on an element line segment parallel to the row direction or the column direction and another element line segment that is continuous with the parallel element line segment and has an inclination with respect to the element line segment, the symbol is displayed in parallel. A line passing through each center point in each element pixel group including pixels overlapping with a different element line segment is defined as a first virtual line, and a first point passing through the center point in the element pixel group including pixels overlapping with other element line segments is provided. when an imaginary line perpendicular to the line and the second imaginary line, when the position of the intersection between the second imaginary line and the other element line, the position of the first virtual line satisfies a predetermined relationship, overlapping with the intersection point Correction correction means for restricting gradation correction by the gradation correction means for one end pixel in the element pixel group including the pixel and the other end pixel adjacent to the element pixel group; preferable.

また、表示画面においてX軸の正方向を行方向とし、Y軸の負方向を列方向とすると、第1仮想線がY軸と平行であって、かつ他の要素線分が第1仮想線よりもX軸の負方向側に存在する場合、所定の関係は、交点のX座標の値が第1仮想線のX座標の値よりも大きいことであることが好ましい。   On the display screen, if the positive direction of the X axis is the row direction and the negative direction of the Y axis is the column direction, the first imaginary line is parallel to the Y axis, and the other element line segments are the first imaginary lines. If the X axis is on the negative direction side, the predetermined relationship is preferably that the value of the X coordinate of the intersection is larger than the value of the X coordinate of the first virtual line.

また、表示画面においてX軸の正方向を行方向とし、Y軸の負方向を列方向とすると、第1仮想線がY軸と平行であって、かつ他の要素線分が第1仮想線よりもX軸の正方向側に存在する場合、所定の関係は、交点のX座標の値が第1仮想線のX座標の値よりも小さいことであることが好ましい。   On the display screen, if the positive direction of the X axis is the row direction and the negative direction of the Y axis is the column direction, the first imaginary line is parallel to the Y axis, and the other element line segments are the first imaginary lines. If the X-axis is present on the positive direction side, the predetermined relationship is preferably that the X-coordinate value of the intersection is smaller than the X-coordinate value of the first imaginary line.

また、表示画面においてX軸の正方向を行方向とし、Y軸の負方向を列方向とすると、第1仮想線がX軸と平行であって、かつ、他の要素線分が第1仮想線よりもY軸の負方向側に存在する場合、所定の関係は、交点のY座標の値が第1仮想線のY座標の値よりも大きいことであることが好ましい。   On the display screen, if the positive direction of the X axis is the row direction and the negative direction of the Y axis is the column direction, the first virtual line is parallel to the X axis and the other element line segments are the first virtual line. When present on the negative direction side of the Y axis from the line, the predetermined relationship is preferably that the value of the Y coordinate of the intersection is larger than the value of the Y coordinate of the first virtual line.

また、表示画面においてX軸の正方向を行方向とし、Y軸の負方向を列方向とすると、第1仮想線がX軸と平行であって、かつ、他の要素線分が第1仮想線よりもY軸の正方向側に存在する場合、所定の関係は、交点のY座標の値が第1仮想線のY座標の値よりも小さいことであることが好ましい。   On the display screen, if the positive direction of the X axis is the row direction and the negative direction of the Y axis is the column direction, the first virtual line is parallel to the X axis and the other element line segments are the first virtual line. When present on the positive side of the Y axis from the line, the predetermined relationship is preferably that the value of the Y coordinate of the intersection is smaller than the value of the Y coordinate of the first virtual line.

また、行方向または列方向に平行な要素線分と、平行な要素線分と連続するとともに当該要素線分に対して傾きを有する他の要素線分とに基づき記号が表示される場合、平行な要素線分と重なる画素を含んだ各要素画素群における各中心点を通る線を第1仮想線とすると、第1要素線分と重なる画素に第1仮想線が重なっており、かつ第1仮想線と第2要素線分とが交わる場合、第2要素線分の長さを、当該交わった点を含む画素に隣接する画素までしか達しない長さに補正するとともに、第1要素線分の長さを、交わった点を含む画素まで達する長さに補正する要素線分補正手段を備えることが好ましい。   In addition, when a symbol is displayed based on an element line segment parallel to the row direction or the column direction and another element line segment that is continuous with the parallel element line segment and has an inclination with respect to the element line segment, the symbol is displayed in parallel. Assuming that a line passing through each center point in each element pixel group including a pixel that overlaps an element line segment is a first virtual line, the first virtual line overlaps the pixel overlapping the first element line segment, and the first When the virtual line and the second element line segment intersect, the length of the second element line segment is corrected so as to reach only a pixel adjacent to the pixel including the intersected point, and the first element line segment is corrected. It is preferable to include an element line segment correcting unit that corrects the length to a length that reaches the pixel including the intersecting point.

また、記号は、加法混色により色が決定されるものであり、階調補正手段は、加法混色の原色のそれぞれについて画素値を補正することにより階調の補正を行うことが好ましい。   Further, it is preferable that the color of the symbol is determined by additive color mixture, and the gradation correction unit corrects the gradation by correcting the pixel value for each of the primary colors of additive color mixture.

本発明の他の局面に従うと、情報処理装置は、マトリックス状に複数の画素が配された表示画面に、記号を表示させるための情報処理装置であって、記憶装置に記憶された記号の骨格を示す情報に基づいて、指定された階調および前記マトリックスの行方向または列方向のいずれかにおいて指定された線幅を有するように表示画面に記号を表示する際に、複数の画素のうちの表示画素の階調を決定する表示制御手段を備え、骨格を示す情報は、骨格を構成する各骨格線の要素である要素線分を示す情報を含み、表示制御手段は、要素線分として、行方向または列方向と平行な第1要素線分と、当該第1要素線分と連続するとともに当該第1要素線分に対して傾きを有する第2要素線分とを含む記号を表示する際に、指定された階調を補正する階調補正手段を含み、階調補正手段は、記号の表示画素を構成する画素群の一部であって、第1要素線分と第2要素線分との交点と重なる画素を含んだ線幅の方向に連続した線幅分の画素群を要素画素群とすると、当該要素画素群における端部の画素に線幅の方向に隣接する画素であるとともに当該要素画素群に含まれていない画素であって、連続した両要素線分により形成される角度のうち優角側の領域の画素については、前記階調の補正を行わない。   According to another aspect of the present invention, an information processing device is an information processing device for displaying a symbol on a display screen in which a plurality of pixels are arranged in a matrix, and the symbol skeleton stored in the storage device When displaying a symbol on the display screen so as to have a specified gradation and a line width specified in either the row direction or the column direction of the matrix based on the information indicating Display control means for determining the gradation of the display pixel, the information indicating the skeleton includes information indicating the element line segment that is an element of each skeleton line constituting the skeleton, the display control means, as the element line segment, When displaying a symbol including a first element line segment parallel to the row direction or the column direction and a second element line segment that is continuous with the first element line segment and has an inclination with respect to the first element line segment To correct the specified gradation The tone correction means includes a tone correction means, and the gradation correction means is a part of a group of pixels constituting a symbol display pixel, and includes a line width including a pixel that overlaps an intersection of the first element line segment and the second element line segment. If the pixel group corresponding to the line width continuous in the direction is the element pixel group, the pixel adjacent to the end pixel in the element pixel group in the line width direction and not included in the element pixel group Thus, the gradation correction is not performed on the pixels in the region on the dominant angle side among the angles formed by the continuous element line segments.

本発明のさらに他の局面に従うと、情報処理装置は、マトリックス状に複数の画素が配された表示画面に、記号を表示させるための情報処理装置であって、記憶装置に記憶された記号の骨格を示す情報に基づいて、指定された階調および前記マトリックスの行方向または列方向のいずれかにおいて指定された線幅を有するように表示画面に記号を表示する際に、複数の画素のうちの表示画素の階調を決定する表示制御手段を備え、骨格を示す情報は、骨格を構成する各骨格線の要素である要素線分を示す情報を含み、表示制御手段は、要素線分として、行方向または列方向と平行な第1要素線分と、当該第1要素線分と連続するとともに当該第1要素線分に対して傾きを有する第2要素線分とを含む記号を表示する際に、指定された階調を補正する階調補正手段を含み、階調補正手段は、第1要素線分と第2要素線分との交点と重なる画素に関して線幅の方向に配された画素であって、連続した両要素線分により形成される角度のうち優角側の領域の画素については、線幅を太くするような階調の補正を行わない。   According to still another aspect of the present invention, an information processing device is an information processing device for displaying a symbol on a display screen in which a plurality of pixels are arranged in a matrix, wherein the symbol stored in the storage device is stored in the information processing device. Based on the information indicating the skeleton, when displaying the symbol on the display screen so as to have the specified gradation and the line width specified in either the row direction or the column direction of the matrix, Display control means for determining the gradation of the display pixels, the information indicating the skeleton includes information indicating element line segments that are elements of each skeleton line constituting the skeleton, and the display control means includes element line segments. A symbol including a first element line parallel to the row direction or the column direction and a second element line that is continuous with the first element line and has an inclination with respect to the first element line. The specified gradation is compensated. Gradation correction means, wherein the gradation correction means is a pixel arranged in the direction of the line width with respect to a pixel that overlaps the intersection of the first element line segment and the second element line segment, and both continuous element lines Of the angle formed by the minute, pixels in the region on the dominant angle side are not subjected to gradation correction to increase the line width.

また、表示制御手段は、記号の表示画素を構成する画素群の一部であって、表示画素が線幅の方向に一列に並んだ線幅分の画素群を要素画素群とするとき、要素線分と当該要素線分と重なる画素を含んだ要素画素群の中心点との線幅の方向の距離を、各要素画素群について算出する距離算出手段を、さらに備え、階調補正手段は、要素画素群の一方の端部の画素と、当該要素画素群に隣接する他方の端部の画素と線幅の方向に隣接する画素であるとともに当該要素画素群に含まれていない画素については、指定された階調と表示される記号の背景の階調との間の階調であって、距離算出手段で算出した距離に応じた階調に補正することが好ましい。   Further, the display control means is a part of a pixel group constituting the display pixel of the symbol, and when the pixel group corresponding to the line width in which the display pixels are arranged in a line in the line width direction is an element pixel group, A distance calculation unit that calculates the distance in the direction of the line width between the line segment and the center point of the element pixel group including the pixel overlapping the element line segment for each element pixel group, and the gradation correction unit includes: Regarding the pixel at one end of the element pixel group and the pixel at the other end adjacent to the element pixel group in the line width direction and not included in the element pixel group, It is preferable to correct the gradation according to the distance calculated by the distance calculating means between the designated gradation and the gradation of the background of the symbol to be displayed.

本発明のさらに他の局面に従うと、情報処理方法は、記号の骨格を示した情報に基づき、マトリックス状に画素が配された表示画面に、指定された階調および前記マトリックスの行方向または列方向のいずれかにおいて指定された線幅を有する記号を表示させる情報処理方法であって、記号の表示画素を構成する構成する画素群の一部であって、表示画素が線幅の方向に一列に並んだ線幅分の画素群を要素画素群とするとき、骨格を構成する骨格線の要素である要素線分と、当該要素線分と重なる表示画素を含んだ要素画素群における中心点との、線幅の方向における距離を算出する距離算出ステップと、中心点を含んだ要素画素群に含まれる一方の端部の画素の階調を、記号の階調と当該記号の背景の階調との間の階調であって、距離算出ステップで算出した距離に応じた階調に補正する階調補正ステップと、階調補正ステップで補正した後の記号を、表示画面に表示させる表示ステップとを含む。   According to still another aspect of the present invention, an information processing method is based on information indicating a skeleton of a symbol, on a display screen in which pixels are arranged in a matrix, with a specified gradation and a row direction or column of the matrix. An information processing method for displaying a symbol having a line width specified in one of directions, wherein the display pixel is a part of a pixel group constituting a display pixel of the symbol, and the display pixels are arranged in a line in the line width direction. If the pixel group corresponding to the line width arranged in the line is used as the element pixel group, the element line segment that is an element of the skeleton line constituting the skeleton, and the center point in the element pixel group including the display pixel that overlaps the element line segment, The distance calculation step for calculating the distance in the line width direction, the gradation of the pixel at one end included in the element pixel group including the center point, the gradation of the symbol and the gradation of the background of the symbol And the distance between And gradation correction step of correcting the gradation corresponding to the distance calculated in step, the symbol after correction by the gradation correction step, and a display step of displaying on the display screen.

本発明のさらに他の局面に従うと、プログラムは、上記情報処理方法をコンピュータに実行させるためのプログラムである。   According to still another aspect of the present invention, the program is a program for causing a computer to execute the information processing method.

本発明により。ルックアップテーブル等のデータを用いることなく、短い処理時間でシャギーを目立たなくさせることができるといった効果を奏する。   According to the present invention. There is an effect that shaggy can be made inconspicuous in a short processing time without using data such as a lookup table.

本発明に係る情報処理装置の一実施の形態について、図1〜図26に基づいて説明すると、以下のとおりである。   An embodiment of an information processing apparatus according to the present invention will be described below with reference to FIGS.

図1は、情報処理装置1の概略構成を示したブロック図である。同図に示すとおり、情報処理装置1は、入力部10と、出力部11と、記憶装置12と、第1メモリ13と、第2メモリ14と、制御部15とを備えている。   FIG. 1 is a block diagram showing a schematic configuration of the information processing apparatus 1. As illustrated in FIG. 1, the information processing apparatus 1 includes an input unit 10, an output unit 11, a storage device 12, a first memory 13, a second memory 14, and a control unit 15.

入力部10は、ユーザからの入力を受け付けるための入力デバイスである。入力部10を介してユーザがデータの入力を行うことにより、第1メモリ13に当該入力されたデータが記憶される。入力部10を介して、入力されるデータとしては、例えば、記号を特定するためのデータ(例えば、文字コード)、記号のサイズのデータ、記号の線幅の種別情報(例えば、太、中、細)を特定するためのデータ、記号の色を特定するためのデータ等が挙げられる。なお、以下では、記号の線幅の種別、および記号の色については、予めデフォルト値が記憶装置12に記憶されており、ユーザが変更指示を入力部10を介して情報処理装置1に入力しない限り、デフォルト値に基づいた表示がなされる構成としておく。   The input unit 10 is an input device for receiving input from a user. When the user inputs data via the input unit 10, the input data is stored in the first memory 13. Examples of data input via the input unit 10 include data for specifying a symbol (for example, a character code), symbol size data, symbol line width type information (for example, thick, medium, Data for specifying the details), data for specifying the color of the symbols, and the like. In the following description, the default values for the type of the line width of the symbol and the color of the symbol are stored in advance in the storage device 12, and the user does not input a change instruction to the information processing device 1 via the input unit 10. As long as the display is based on the default value.

出力部11は、制御部15からの指示に基づき、入力部10を介して入力されたデータ、および制御部15における各種の処理の結果を表示するためのデバイスである。また、出力部11は、マトリックス状に画素が配された表示画面を備えている。以下では、マトリックスに対してXY座標を設定し、X軸の正方向をマトリックスの行方向と、Y軸の負方向をマトリックスの列方向とする。つまり、ユーザが対峙する表示画面に対して、右方向がX軸方向、上方向がY軸方向とする。   The output unit 11 is a device for displaying data input via the input unit 10 and results of various processes in the control unit 15 based on instructions from the control unit 15. The output unit 11 includes a display screen in which pixels are arranged in a matrix. In the following, XY coordinates are set for the matrix, the positive direction of the X axis is the row direction of the matrix, and the negative direction of the Y axis is the column direction of the matrix. That is, the right direction is the X-axis direction and the upper direction is the Y-axis direction with respect to the display screen facing the user.

なお、以下では、出力部11が、カラーモデルの一例として、RGBカラーモデルを用いた表示を行うものとする。また、以下では画素の画素値を、(R,G,B)として表記する。さらに、以下では、画素値(R,G,B)のうちRの要素の値をR成分の値と、Gの要素の値をG成分の値と、Bの要素の値をB成分の値と称する。   In the following, it is assumed that the output unit 11 performs display using an RGB color model as an example of a color model. Hereinafter, the pixel value of the pixel is expressed as (R, G, B). Further, in the following, among the pixel values (R, G, B), the R element value is the R component value, the G element value is the G component value, and the B element value is the B component value. Called.

記憶装置12は、各種記号のスケルトンデータを記号毎に記憶している。また、記憶装置12は、例えば、ハードディスク装置や、フラッシュメモリで構成される。ここで、記号とは、文字、図形、符号等を含む概念である。なお、スケルトンデータの構成については、図27および図28に示した従来の構成と同様であるため、ここでの説明は省略する。   The storage device 12 stores skeleton data of various symbols for each symbol. Further, the storage device 12 is constituted by, for example, a hard disk device or a flash memory. Here, the symbol is a concept including characters, figures, codes, and the like. Note that the configuration of the skeleton data is the same as the conventional configuration shown in FIGS. 27 and 28, and thus the description thereof is omitted here.

第1メモリ13は、RAM(Random Access Memory)等の揮発性の半導体メモリで構成される。また、第1メモリ13は、制御15のCPU(図示せず)が直接データをやり取りする主記憶装置としての役割を果たす。第1メモリ13には、ユーザにより入力されたデータ、記憶装置12に記憶されたデータ等が一時的に記憶される。 The first memory 13 is composed of a volatile semiconductor memory such as a RAM (Random Access Memory). The first memory 13 serves as a main storage device that directly exchanges data with a CPU (not shown) of the control unit 15. The first memory 13 temporarily stores data input by the user, data stored in the storage device 12, and the like.

第2メモリ14は、VRAM(Video RAM)であり、出力部11に表示するデータを保持しておくためのメモリである。なお、本実施の形態の情報処理装置1は、第1メモリ13と第2メモリ14とを備えているが、第2メモリ14を独立して備えずに第1メモリ13の一部の領域をVRAM用のメモリ領域として割り当てる構成としてもよい。   The second memory 14 is a VRAM (Video RAM), and is a memory for holding data to be displayed on the output unit 11. Note that the information processing apparatus 1 according to the present embodiment includes the first memory 13 and the second memory 14, but does not include the second memory 14 independently, and a partial area of the first memory 13 is provided. A configuration may be adopted in which the memory area is allocated as a VRAM memory area.

制御部15は、情報処理装置1における各種の処理を制御する。
制御部15内の表示制御部16は、距離算出部20と、階調補正部21と、表示データ生成部22とを備えている。さらに、階調補正部21は、平行判定部30と、補正制限部31と、線分補正部32とを備えている。なお、制御部15および制御部15内の各部は機能ブロックであり、これらのブロックにおける処理は、後述するCPUにより実行されるソフトウェアによって実現される。
The control unit 15 controls various processes in the information processing apparatus 1.
The display control unit 16 in the control unit 15 includes a distance calculation unit 20, a gradation correction unit 21, and a display data generation unit 22. Furthermore, the gradation correction unit 21 includes a parallel determination unit 30, a correction restriction unit 31, and a line segment correction unit 32. Note that the control unit 15 and each unit in the control unit 15 are functional blocks, and processing in these blocks is realized by software executed by a CPU described later.

表示制御部16は、制御部15内で処理したデータを出力部11に表示させる。具体的には、表示制御部16は、VRAMとして機能する第2メモリ14に画像データを記憶させるとともに、当該記憶させた画像データを出力部11で出力させる。   The display control unit 16 causes the output unit 11 to display data processed in the control unit 15. Specifically, the display control unit 16 stores the image data in the second memory 14 functioning as a VRAM, and causes the output unit 11 to output the stored image data.

より詳しくは、表示制御部16は、スケルトンデータ(記号の骨格を示す情報)に基づいて、マトリックスの行方向または列方向のいずれかにおいて指定された線幅および指定された階調を有するように記号を表示画面に表示する際に、複数の画素のうちの表示画素の階調を決定する。   More specifically, the display control unit 16 has a specified line width and specified gradation in either the row direction or the column direction of the matrix based on the skeleton data (information indicating the skeleton of the symbol). When displaying the symbol on the display screen, the gradation of the display pixel of the plurality of pixels is determined.

以下では、スケルトンデータの座標データ(図28参照)をスケーリングして得られる座標データに基づき構成される記号の骨格を示す線を骨格線と称する。つまり、骨格線とは、出力部11で表示される際のサイズに変更された後の、記号の骨格を示す線として説明する。   Hereinafter, a line indicating a skeleton of a symbol configured based on coordinate data obtained by scaling coordinate data (see FIG. 28) of skeleton data is referred to as a skeleton line. That is, the skeleton line is described as a line indicating the skeleton of the symbol after being changed to the size when displayed on the output unit 11.

また、記号の表示画素を構成する画素群の一部であって、表示画素が線幅の方向に一列に並んだ線幅分の画素群を要素画素群と称する。さらに、記号の骨格を構成する各骨格線の要素である線分を要素線分と称する。つまり、要素線分とは、骨格線を構成する一要素となる線分であって、一定の傾きを有する線分である。   A pixel group corresponding to a line width, which is a part of the pixel group constituting the display pixel of the symbol and in which the display pixels are arranged in a line in the line width direction, is referred to as an element pixel group. Furthermore, a line segment that is an element of each skeleton line constituting the skeleton of the symbol is referred to as an element line segment. That is, the element line segment is a line segment that is one element constituting the skeleton line and has a certain inclination.

距離算出部20は、上記要素線分と、当該要素線分と重なる画素を含んだ要素画素群の中心点との上記線幅の方向の距離を、各要素画素群について算出する。   The distance calculation unit 20 calculates, for each element pixel group, the distance in the line width direction between the element line segment and the center point of the element pixel group including the pixel overlapping the element line segment.

階調補正部21は、補正対象画素を上記要素線分毎に特定し、所定の規則に従って補正対象画素について上記指定された階調を別の階調に補正する。また、階調補正部21は、各色成分の画素値(つまり、R成分画素値、G成分画素値、B成分画素値)に対して、補正を行う。ここで、階調の補正とは、各色成分の画素値を補正することをいう。なお、補正対象画素の特定と、具体的な階調の補正の方法とについては、後述する。   The gradation correction unit 21 specifies a correction target pixel for each element line segment, and corrects the specified gradation for the correction target pixel to another gradation according to a predetermined rule. Further, the gradation correction unit 21 corrects the pixel values of each color component (that is, the R component pixel value, the G component pixel value, and the B component pixel value). Here, tone correction means correcting the pixel value of each color component. The specification of the correction target pixel and a specific gradation correction method will be described later.

表示データ生成部22は、階調補正部21での補正に基づき、記号を表示画面に表示させるための表示データを生成し、当該表示データを第2メモリに一時記憶させる。   The display data generation unit 22 generates display data for displaying symbols on the display screen based on the correction by the gradation correction unit 21, and temporarily stores the display data in the second memory.

なお、階調補正部21における、平行判定部30と、補正制限部31と、線分補正部32とについては、後述する。   The parallel determination unit 30, the correction limiting unit 31, and the line segment correction unit 32 in the gradation correction unit 21 will be described later.

ここで、図2を参照して、本実施の形態に係る情報処理装置1の具体的構成の一態様について説明する。同図は、情報処理装置1として機能するコンピュータシステム100のハードウェア構成を表わすブロック図である。 Here, with reference to FIG. 2, one aspect of a specific configuration of the information processing apparatus 1 according to the present embodiment will be described. The figure is a block diagram showing a hardware configuration of a computer system 100 0 which functions as the information processing apparatus 1.

コンピュータシステム100は、主たる構成要素として、プログラムを実行するCPU110と、コンピュータシステム100の使用者による指示の入力を受けるマウス120およびキーボード130と、CPU110によるプログラムの実行により生成されたデータ、又はマウス120若しくはキーボード130を介して入力されたデータを揮発的に格納するRAM140と、データを不揮発的に格納するハードディスク150と、CD−ROM(Compact Disk-Read Only Memory)駆動装置160と、モニタ170と、通信IF(Interface)180とを含む。各構成要素は、相互にデータバスによって接続されている。CD−ROM駆動装置160には、CD−ROM161が装着される。 Computer system 100 0 includes, as main components, a CPU 110 for executing a program, a mouse 120 and a keyboard 130 receives an input of an instruction by the user of the computer system 100 0, data generated by the execution of a program by CPU 110, or A RAM 140 that stores data input via the mouse 120 or the keyboard 130 in a volatile manner, a hard disk 150 that stores data in a nonvolatile manner, a compact disk-read only memory (CD-ROM) drive device 160, and a monitor 170. And a communication IF (Interface) 180. Each component is connected to each other by a data bus. A CD-ROM 161 is attached to the CD-ROM drive device 160.

なお、情報処理装置1における入力部10がキーボード130およびマウス120に該当し、出力部11がモニタ170に該当し、記憶装置12がハードディスク150に該当し、第1メモリ13と第2メモリ14とがRAM140に該当する。   In the information processing apparatus 1, the input unit 10 corresponds to the keyboard 130 and the mouse 120, the output unit 11 corresponds to the monitor 170, the storage device 12 corresponds to the hard disk 150, the first memory 13, the second memory 14, Corresponds to the RAM 140.

コンピュータシステム100における処理は、各ハードウェアおよびCPU110により実行されるソフトウェアによって実現される。このようなソフトウェアは、ハードディスク150に予め記憶されている場合がある。また、ソフトウェアは、CD−ROM161その他の記憶媒体に格納されて、プログラムプロダクトとして流通している場合もある。あるいは、ソフトウェアは、いわゆるインターネットに接続されている情報提供事業者によってダウンロード可能なプログラムプロダクトとして提供される場合もある。このようなソフトウェアは、CD−ROM駆動装置160その他の読取装置によりその記憶媒体から読み取られて、あるいは、通信IF180を介してダウンロードされた後、ハードディスク150に一旦格納される。そのソフトウェアは、CPU110によってハードディスク150から読み出され、RAM140に実行可能なプログラムの形式で格納される。CPU110は、そのプログラムを実行する。 Processing in the computer system 100 0 is realized by software executed by the hardware and CPU 110. Such software may be stored in the hard disk 150 in advance. The software may be stored in a CD-ROM 161 or other storage medium and distributed as a program product. Alternatively, the software may be provided as a program product that can be downloaded by an information provider connected to the so-called Internet. Such software is read from the storage medium by the CD-ROM driving device 160 or other reading device, or downloaded via the communication IF 180 and then temporarily stored in the hard disk 150. The software is read from the hard disk 150 by the CPU 110 and stored in the RAM 140 in the form of an executable program. CPU 110 executes the program.

同図に示されるコンピュータシステム100を構成する各構成要素は、一般的なものである。したがって、本発明の本質的な部分は、RAM140、ハードディスク150、CD−ROM161その他の記憶媒体に格納されたソフトウェア、あるいはネットワークを介してダウンロード可能なソフトウェアであるともいえる。なお、コンピュータシステム100の各ハードウェアの動作は周知であるので、詳細な説明は繰り返さない。 Each component constituting computer system 100 0 shown in the same figure is a general one. Therefore, it can be said that the essential part of the present invention is software stored in the RAM 140, the hard disk 150, the CD-ROM 161, or other storage medium, or software that can be downloaded via a network. Since the operation of each hardware of computer system 100 0 are well known, detailed description will not be repeated.

なお、記録媒体としては、CD−ROM、FD(Flexible Disk)、ハードディスクに限られず、磁気テープ、カセットテープ、光ディスク(MO(Magnetic Optical Disc)/MD(Mini Disc)/DVD(Digital Versatile Disc))、IC(Integrated Circuit)カード(メモリカードを含む)、光カード、マスクROM、EPROM(Electronically Programmable Read-Only Memory)、EEPROM(Electronically Erasable Programmable Read-Only Memory)、フラッシュROMなどの半導体メモリ等の固定的にプログラムを担持する媒体でもよい。   The recording medium is not limited to a CD-ROM, FD (Flexible Disk), and hard disk, but is a magnetic tape, a cassette tape, an optical disk (MO (Magnetic Optical Disc) / MD (Mini Disc) / DVD (Digital Versatile Disc)). IC (Integrated Circuit) card (including memory card), optical card, mask ROM, EPROM (Electronically Erasable Programmable Read-Only Memory), EEPROM (Electronically Erasable Programmable Read-Only Memory), fixing of flash ROM and other semiconductor memories Alternatively, it may be a medium carrying a program.

ここでいうプログラムとは、CPUにより直接実行可能なプログラムだけでなく、ソースプログラム形式のプログラム、圧縮処理されたプログラム、暗号化されたプログラム等を含む。   The program here includes not only a program directly executable by the CPU but also a program in a source program format, a compressed program, an encrypted program, and the like.

ところで、上記構成は、あくまでも具体的構成の一態様にすぎず、上記マウスを備えず、かつ、キーボードとモニタとハードディスクとが情報処理装置1内に備えられている構成であってもよい。情報処理装置1は、電子辞書や携帯電話等のポータブル型の携帯情報端末としても構成できる。   By the way, the above configuration is merely one aspect of a specific configuration, and may be a configuration in which the mouse is not provided and a keyboard, a monitor, and a hard disk are provided in the information processing apparatus 1. The information processing apparatus 1 can also be configured as a portable portable information terminal such as an electronic dictionary or a mobile phone.

このような携帯情報端末として情報処理装置1を構成する場合には、ハードディスク150の代わりに例えばフラッシュメモリを用いることができる。また、入力部として、タッチペン式の入力装置を備える構成としてもよい。さらに、小型化の観点から、モニタ170としては、液晶モニタや有機ELモニタ等の薄型のモニタを使用することが好適である。また、小型化の観点から、CD−ROM駆動装置の代わりにメモリカードを読み取る装置を設けておき、記録媒体としてCD−ROMの代わりに当該メモリカードを用いることが好適である。   When the information processing apparatus 1 is configured as such a portable information terminal, for example, a flash memory can be used instead of the hard disk 150. Further, the input unit may include a touch pen type input device. Further, from the viewpoint of downsizing, it is preferable to use a thin monitor such as a liquid crystal monitor or an organic EL monitor as the monitor 170. From the viewpoint of miniaturization, it is preferable to provide a device for reading a memory card instead of the CD-ROM drive device and use the memory card as a recording medium instead of the CD-ROM.

ここで、図3から図6に従い、階調補正部21で行われる処理を具体的に説明する。また、以下では、記号の一例として文字を例に挙げて説明する。   Here, the processing performed in the gradation correction unit 21 will be specifically described with reference to FIGS. In the following, a character will be described as an example of a symbol.

まず、取得した文字コードと文字のサイズデータと文字の線幅の種別情報と文字の色のデータとに基づき、表示制御部16が文字と文字サイズと上記文字の線幅種別と文字の色とを特定する。そして、表示制御部16が、特定された文字サイズに基づき、当該文字のスケルトンデータをスケーリングする。また、表示制御部16が、上記特定された文字サイズと文字の線幅の種別とを考慮して、文字を出力部11の表示画面に表示する際の線幅(指定された線幅)を決定する。さらに、表示制御部16が、上記特定された文字の色(画素値)を利用して、文字を表示画面に表示する。なお、文字の色の利用の仕方については後述する。   First, based on the acquired character code, character size data, character line width type information, and character color data, the display control unit 16 determines the character and character size, the character line width type, and the character color. Is identified. Then, the display control unit 16 scales the skeleton data of the character based on the specified character size. In addition, the display control unit 16 considers the character size specified above and the type of the line width of the character, and determines the line width (specified line width) when displaying the character on the display screen of the output unit 11. decide. Further, the display control unit 16 displays the character on the display screen using the specified character color (pixel value). A method of using the character color will be described later.

その結果として、上記表示画面での表示に際して文字の線幅を一列に連続した奇数個の画素を用いて表示することが表示制御部16により決定された場合について、最初に説明する。その後、上記表示画面での表示に際して文字の線幅を一列に連続した偶数個の画素を用いて表示することが表示制御部16により決定された場合について、説明する。   As a result, a case will be described first where the display control unit 16 determines that the line width of characters is displayed using an odd number of continuous pixels in a row when displayed on the display screen. Subsequently, a case will be described in which the display control unit 16 determines to display the line width of the character using an even number of pixels that are continuous in a line when displaying on the display screen.

なお、以下では、一列に連続した奇数個の画素を用いて線幅を表現する場合、当該線幅を奇数線幅と称する。一方、一列に連続した偶数個の画素を用いて線幅を表現する場合、当該線幅を偶数線幅と称する。なお、奇数線幅および偶数線幅とは、後述する階調補正を行なう前の線幅をさしている。階調補正を行えば、文字の一部の線幅は太くなる。   In the following, when the line width is expressed using an odd number of pixels continuous in a line, the line width is referred to as an odd line width. On the other hand, when a line width is expressed using an even number of pixels that are continuous in a line, the line width is referred to as an even line width. Note that the odd line width and the even line width refer to line widths before gradation correction described later. If tone correction is performed, the line width of a part of the character becomes thicker.

ここで、線幅について説明する。線幅とは、X軸方向またはY軸方向の文字の幅をいう。また、文字の幅を表現する場合、一列に連続した画素(画素群)を用いる。例えば、線幅が3の場合、3つの連続した画素を用いる。   Here, the line width will be described. The line width refers to the width of characters in the X-axis direction or Y-axis direction. Further, when expressing the width of a character, pixels (pixel group) continuous in a line are used. For example, when the line width is 3, three consecutive pixels are used.

より詳しくは、文字の幅を表現する場合、骨格線の要素線分が重なった画素を含み、X軸方向またはY軸方向に一列に連続した画素群(要素画素群)を用いる。X軸方向に一列に連続した画素群、およびY軸方向に一列に連続した画素群のうち、どちらの画素群を用いるかは、上記要素線分の傾きにより制御部15が決定する。   More specifically, when expressing the width of a character, a pixel group (element pixel group) that includes pixels in which element line segments of skeleton lines overlap and is continuous in a line in the X-axis direction or the Y-axis direction is used. The control unit 15 determines which pixel group to use from the pixel group that is continuous in a line in the X-axis direction and the pixel group that is continuous in a line in the Y-axis direction based on the inclination of the element line segment.

例えば、要素線分の傾きの絶対値が1以上の場合には、X軸方向に一列に連続した画素群を用いて文字の幅を表現する。一方、要素線分の傾きの絶対値が1未満の場合、Y軸方向に一列に連続した画素群を用いて文字の幅を表現する。   For example, when the absolute value of the slope of the element line segment is 1 or more, the width of the character is expressed using a pixel group that is continuous in a line in the X-axis direction. On the other hand, when the absolute value of the slope of the element line segment is less than 1, the width of the character is expressed using a pixel group that is continuous in a line in the Y-axis direction.

図3は、奇数線幅の文字を階調補正部21により補正した後の文字の一部分を示した図である。また、同図は、文字の線幅方向の一部分を示した図でもある。   FIG. 3 is a diagram showing a part of the character after correcting the odd-line width character by the gradation correcting unit 21. This figure is also a diagram showing a part of the character in the line width direction.

同図においては、まず、要素線分L1の傾きの絶対値が1以上であるため、制御部15により、線幅がX軸方向に設定される。   In the figure, first, since the absolute value of the inclination of the element line segment L1 is 1 or more, the control unit 15 sets the line width in the X-axis direction.

なお、階調補正部21による補正を行わない従来の構成では、奇数線幅(同図では線幅は3)分の画素Pa、画素Pb、画素Pcといった一列に連続した3個の画素が文字を構成する画素群となる。画素Pbが画素群の中心画素となっているのは、画素Pbの中心点Cと要素線分L1とのX軸方向における距離が、他の画素の中心点と要素線分L1とのX軸方向における距離よりも小さいからである。   In the conventional configuration in which correction by the gradation correction unit 21 is not performed, three consecutive pixels such as a pixel Pa, a pixel Pb, and a pixel Pc corresponding to an odd line width (the line width is 3 in the figure) are characters. Is a pixel group constituting the. The pixel Pb is the central pixel of the pixel group because the distance in the X-axis direction between the center point C of the pixel Pb and the element line segment L1 is the X axis between the center point of another pixel and the element line segment L1. This is because it is smaller than the distance in the direction.

本実施の形態でも、上記画素Paと画素Pbと画素Pcとを文字を構成する画素群として用いる。   Also in the present embodiment, the pixel Pa, the pixel Pb, and the pixel Pc are used as a pixel group constituting a character.

距離算出部20が、画素Pbの中心点Cと要素線分L1とのX軸方向における距離を算出する。つまり、距離算出部20が、中心点Cと要素線分L1上の点Gとの距離|d|を算出する。さらに、言い換えれば、距離算出部20は、画素Paと画素Pbと画素Pcとから構成される画素群における中心点と、点Gとの距離を算出する。ここで、上記距離|d|の算出に当たっては、画素の中心点間の距離を1とする。つまり、|d|は0から0.5の値をとることになる。なお、点Gは、文字の線幅方向に一列に並んだ各画素における各中心点を通過する線上の点でもある。   The distance calculation unit 20 calculates the distance in the X-axis direction between the center point C of the pixel Pb and the element line segment L1. That is, the distance calculation unit 20 calculates the distance | d | between the center point C and the point G on the element line segment L1. Furthermore, in other words, the distance calculation unit 20 calculates the distance between the center point and the point G in the pixel group composed of the pixel Pa, the pixel Pb, and the pixel Pc. Here, in calculating the distance | d |, the distance between the center points of the pixels is 1. That is, | d | takes a value from 0 to 0.5. Note that the point G is also a point on a line passing through each center point in each pixel arranged in a line in the line width direction of the character.

階調補正部21は、中心点Cに対して点Gと反対側の画素Paを補正対象画素と特定する。また、階調補正部21は、画素PcとX軸方向に隣接する画素Pdについても補正対象画素と特定する。以下では、当該補正前の文字領域(例えば、画素Pa、画素Pb、画素Pc)における文字の画素値を、(R,G,B)=(Rf,Gf,Bf)とし、補正前の背景領域(例えば、画素Pd)における背景の画素値を、(R,G,B)=(Rb,Gb,Bb)として説明する。   The gradation correction unit 21 identifies the pixel Pa on the opposite side of the point G with respect to the center point C as the correction target pixel. The gradation correction unit 21 also identifies the pixel Pd adjacent to the pixel Pc in the X-axis direction as the correction target pixel. In the following, the pixel value of the character in the character region before correction (for example, pixel Pa, pixel Pb, pixel Pc) is (R, G, B) = (Rf, Gf, Bf), and the background region before correction The background pixel value in (for example, pixel Pd) will be described as (R, G, B) = (Rb, Gb, Bb).

階調補正部21は、画素Paに対しては以下の式(1)〜式(3)を用いて階調の補正を行い、補正後の画素値(R,G,B)=(Rm,Gm,Bm)を得る。そして、階調補正部21は、画素Paの画素値を補正後の画素値とし、当該画素Paの階調を補正する。   The gradation correction unit 21 performs gradation correction on the pixel Pa using the following equations (1) to (3), and the corrected pixel value (R, G, B) = (Rm, Gm, Bm). Then, the gradation correction unit 21 uses the pixel value of the pixel Pa as a corrected pixel value, and corrects the gradation of the pixel Pa.

Rm=(1−|d|)×Rf+|d|×Rb … (1)
Gm=(1−|d|)×Gf+|d|×Gb … (2)
Bm=(1−|d|)×Bf+|d|×Bb … (3)
また、階調補正部21は、画素Pdに対しては以下の式(4)〜式(6)を用いて階調の補正を行い、補正後の画素値(R,G,B)=(Rm,Gm,Bm)を得る。そして、階調補正部21は、画素Pdの画素値を補正後の画素値とし、当該画素Pdの階調を補正する。
Rm = (1− | d |) × Rf + | d | × Rb (1)
Gm = (1− | d |) × Gf + | d | × Gb (2)
Bm = (1− | d |) × Bf + | d | × Bb (3)
Further, the gradation correction unit 21 performs gradation correction on the pixel Pd using the following formulas (4) to (6), and the corrected pixel value (R, G, B) = ( Rm, Gm, Bm). Then, the gradation correction unit 21 uses the pixel value of the pixel Pd as the corrected pixel value, and corrects the gradation of the pixel Pd.

Rm=|d|×Rf+(1−|d|)×Rb … (4)
Gm=|d|×Gf+(1−|d|)×Gb … (5)
Bm=|d|×Bf+(1−|d|)×Bb … (6)
以上により、画素Paと画素Pdとは、文字の階調と文字の背景の階調との間の階調であって、距離算出部20で算出した距離に応じた階調に補正される。
Rm = | d | × Rf + (1− | d |) × Rb (4)
Gm = | d | × Gf + (1− | d |) × Gb (5)
Bm = | d | × Bf + (1− | d |) × Bb (6)
As described above, the pixel Pa and the pixel Pd are gradations between the gradation of the character and the gradation of the character background, and are corrected to the gradation according to the distance calculated by the distance calculation unit 20.

また、画素Paについては、階調補正部21によって、距離|d|の値が大きくなるにつれて文字の階調から背景の階調に近づく補正がなされる。一方、画素Pdについては、階調補正部21によって、距離|d|が大きくなるにつれて、背景の階調から文字の階調に近づく補正がなされる。   For the pixel Pa, the gradation correction unit 21 corrects the gradation from the character gradation to the background gradation as the value of the distance | d | increases. On the other hand, for the pixel Pd, the gradation correction unit 21 performs correction that approaches the gradation of the character from the gradation of the background as the distance | d | increases.

また、補正後の画素PaのR成分の値と、補正後の画素PdのR成分の値とを加えると、Rf+Rbとなる。つまり、補正対象画素となっていない画素(画素Pbや画素Pc)におけるR成分の値と、上記背景の画素におけるR成分の値とを足し合わせた値と同じ値となる。また、G成分の値と、B成分の値とについても、同様のことが言える。   Further, when the value of the R component of the corrected pixel Pa and the value of the R component of the corrected pixel Pd are added, Rf + Rb is obtained. That is, the value is the same as the sum of the R component value of the pixel that is not the correction target pixel (pixel Pb or pixel Pc) and the R component value of the background pixel. The same applies to the value of the G component and the value of the B component.

以上により、線幅が3から4に補正され、同図に示すような画素Paと画素Pbと画素Pcと画素Pdとにより文字の一部が構成されることになる。   As described above, the line width is corrected from 3 to 4, and a part of the character is constituted by the pixel Pa, the pixel Pb, the pixel Pc, and the pixel Pd as shown in FIG.

図4は、図3と同様、奇数線幅の文字を階調補正部21により補正した後の文字の一部分を示した図である。図4が図3と異なる点は、要素線分L1の点Gが、中心画素となる画素Pbの中心点CよりもX軸の負方向側に存在する点である。   FIG. 4 is a diagram illustrating a part of the character after correcting the odd-line width character by the gradation correction unit 21 as in FIG. 3. 4 differs from FIG. 3 in that the point G of the element line segment L1 exists on the negative direction side of the X axis with respect to the center point C of the pixel Pb serving as the center pixel.

このため、図4においては、階調補正部21により、画素Pcが補正対象画素と特定されるとともに、画素PaとX軸方向に隣接する画素Peが補正対象画素として特定される。この場合、画素Pcについては、上記式(1)〜(3)に基づく補正がなされる。一方、画素Peについては、上記式(4)〜(6)に基づく補正がなされる。   For this reason, in FIG. 4, the gradation correction unit 21 specifies the pixel Pc as the correction target pixel and specifies the pixel Pe adjacent to the pixel Pa in the X-axis direction as the correction target pixel. In this case, the pixel Pc is corrected based on the above formulas (1) to (3). On the other hand, for the pixel Pe, correction based on the above formulas (4) to (6) is performed.

図5は、偶数線幅の文字を階調補正部21により補正した後の文字の一部分を示した図である。また、同図は、文字の線幅方向の一部分を示した図でもある。   FIG. 5 is a diagram showing a part of the character after the even-line width character is corrected by the gradation correction unit 21. This figure is also a diagram showing a part of the character in the line width direction.

同図においては、まず、要素線分L1の傾きの絶対値が1以上であるため、制御部15により、図3および図4と同様に線幅がX軸方向に設定される。   In the figure, first, since the absolute value of the inclination of the element line segment L1 is 1 or more, the line width is set in the X-axis direction by the control unit 15 as in FIGS.

なお、階調補正部21による補正を行わない従来の構成では、偶数線幅(同図では線幅は2)分の画素Pfおよび画素Pgといった一列に連続した2個の画素が文字を構成する画素群となる。ここで、画素Phが文字を構成する画素とならずに、画素Pfが文字を構成する画素となるのは、画素Pfの中心点と要素線分L1とのX軸方向における距離が、画素Phの中心点と要素線分L1とのX軸方向における距離よりも小さいからである。   In the conventional configuration in which correction by the gradation correction unit 21 is not performed, two pixels that are continuous in one row, such as a pixel Pf and a pixel Pg, for even line width (the line width is 2 in the figure) form a character. It becomes a pixel group. Here, the pixel Ph does not become a pixel constituting the character, but the pixel Pf becomes a pixel constituting the character because the distance in the X-axis direction between the center point of the pixel Pf and the element line segment L1 is the pixel Ph. This is because it is smaller than the distance in the X-axis direction between the center point and the element line segment L1.

本実施の形態でも、上記画素Pfと画素Pgとを文字を構成する画素群として用いる。
距離算出部20が、画素Pfと画素Pgとから構成される画素群の中心点Cと、要素線分L1とのX軸方向における距離を算出する。つまり、距離算出部20が、中心点Cと要素線分L1上の点Gとの距離|d|を算出する。言い換えれば、距離算出部20は、画素Pfと画素Pgとの境界線分の中心点と、要素線分L1とのX軸方向における距離を算出する。ここでも、上記距離|d|の算出に当たっては、画素の中心点間の距離を1とする。つまり、|d|は0から0.5の値をとることになる。
Also in this embodiment, the pixel Pf and the pixel Pg are used as a pixel group constituting a character.
The distance calculation unit 20 calculates the distance in the X-axis direction between the center point C of the pixel group composed of the pixel Pf and the pixel Pg and the element line segment L1. That is, the distance calculation unit 20 calculates the distance | d | between the center point C and the point G on the element line segment L1. In other words, the distance calculation unit 20 calculates the distance in the X-axis direction between the center point of the boundary line segment between the pixel Pf and the pixel Pg and the element line segment L1. Again, in calculating the distance | d |, the distance between the center points of the pixels is 1. That is, | d | takes a value from 0 to 0.5.

階調補正部21は、画素Pfに対しては上記の式(1)〜式(3)を用いて階調の補正を行い、補正後の画素値(R,G,B)=(Rm,Gm,Bm)を得る。そして、階調補正部21は、画素Pfの画素値を補正後の画素値とし、当該画素Pfの階調を補正する。   The gradation correction unit 21 performs gradation correction on the pixel Pf using the above formulas (1) to (3), and the corrected pixel value (R, G, B) = (Rm, Gm, Bm). Then, the gradation correction unit 21 uses the pixel value of the pixel Pf as the corrected pixel value, and corrects the gradation of the pixel Pf.

また、階調補正部21は、画素Phに対しては上記の式(4)〜式(6)を用いて階調の補正を行い、補正後の画素値(R,G,B)=(Rm,Gm,Bm)を得る。そして、階調補正部21は、画素Phの画素値を補正後の画素値とし、当該画素Phの階調を補正する。   Further, the gradation correction unit 21 performs gradation correction on the pixel Ph using the above formulas (4) to (6), and the corrected pixel value (R, G, B) = ( Rm, Gm, Bm). Then, the gradation correction unit 21 uses the pixel value of the pixel Ph as a corrected pixel value, and corrects the gradation of the pixel Ph.

以上により、画素Pfと画素Phとは、文字の階調と文字の背景の階調との間の階調であって、距離算出部20で算出した距離に応じた階調に補正される。   As described above, the pixel Pf and the pixel Ph are gradations between the gradation of the character and the gradation of the character background, and are corrected to the gradation corresponding to the distance calculated by the distance calculation unit 20.

また、画素Pfについては、階調補正部21によって、距離|d|の値が大きくなるにつれて文字の階調から背景の階調に近づく補正がなされる。一方、画素Phについては、階調補正部21によって、距離|d|が大きくなるにつれて、背景の階調から文字の階調に近づく補正がなされる。   Further, for the pixel Pf, the gradation correction unit 21 corrects the character gradation to approach the background gradation as the value of the distance | d | increases. On the other hand, for the pixel Ph, as the distance | d | increases, the gradation correction unit 21 corrects the gradation closer to the character gradation from the background gradation.

また、補正後の画素PfのR成分の値と、補正後の画素PhのR成分の値とを加えると、Rf+Rbとなる。つまり、補正対象画素となっていない画素(画素Pg)におけるR成分の値と、上記背景の画素におけるR成分の値とを足し合わせた値と同じ値となる。また、G成分の値と、B成分の値とについても、同様のことが言える。   Further, when the value of the R component of the corrected pixel Pf and the value of the R component of the corrected pixel Ph are added, Rf + Rb is obtained. That is, the value is the same as the sum of the R component value of the pixel that is not the correction target pixel (pixel Pg) and the R component value of the background pixel. The same applies to the value of the G component and the value of the B component.

以上により、線幅が2から3に補正され、同図に示すような画素Pfと画素Pgと画素Phとにより文字の一部が構成されることになる。   As described above, the line width is corrected from 2 to 3, and a part of the character is constituted by the pixel Pf, the pixel Pg, and the pixel Ph as shown in FIG.

図6は、図5と同様、偶数線幅の文字を階調補正部21により補正した後の文字の一部分を示した図である。図6が図5と異なる点は、要素線分L1の点Gが、画素Pfと画素Pgとから構成される画素群の中心点CよりもX軸の負方向側(図6の左側)に存在する点である。   FIG. 6 is a diagram illustrating a part of the character after the even-line width character is corrected by the gradation correction unit 21 as in FIG. 5. 6 differs from FIG. 5 in that the point G of the element line segment L1 is closer to the negative side of the X axis (left side in FIG. 6) than the center point C of the pixel group composed of the pixels Pf and Pg. It is a point that exists.

このため、図6においては、階調補正部21により、画素Pgが補正対象画素と特定されるとともに、画素PfとX軸方向に隣接する画素Piが補正対象画素として特定される。この場合、画素Pgについては、上記式(1)〜(3)に基づく補正がなされる。一方、画素Piについては、上記式(4)〜(6)に基づく補正がなされる。   For this reason, in FIG. 6, the gradation correction unit 21 specifies the pixel Pg as the correction target pixel and specifies the pixel Pi adjacent to the pixel Pf in the X-axis direction as the correction target pixel. In this case, the pixel Pg is corrected based on the above formulas (1) to (3). On the other hand, the correction based on the above formulas (4) to (6) is performed on the pixel Pi.

なお、上記点Gが距離|d|の算出の処理の対象となる点であることから、以下では、点Gを処理対象点Gと称する。   In addition, since the point G is a point to be processed for the calculation of the distance | d |, the point G is hereinafter referred to as a processing target point G.

図7は、情報処理装置1における処理の流れを示したフローチャートである。特に、同図は、一つの文字を表示画面に表示させる場合について示している。   FIG. 7 is a flowchart showing the flow of processing in the information processing apparatus 1. In particular, this figure shows a case where one character is displayed on the display screen.

まず、表示制御部16が、表示対象となる文字についての、文字コードと文字のサイズデータと文字の線幅の種別情報と文字の色といった文字情報を取得する(S1)。表示対象となる文字は、入力部10を介して入力される文字でも、あるいは予め情報処理装置1に記憶されていた文字であってもよい。当該ステップS1によって、文字と文字サイズと文字の線幅の種別と文字の色とが特定される。   First, the display control unit 16 acquires character information such as a character code, character size data, character line width type information, and character color for a character to be displayed (S1). The character to be displayed may be a character input via the input unit 10 or a character stored in the information processing apparatus 1 in advance. In step S1, the character, character size, character line width type, and character color are specified.

ステップS1の後は、表示制御部16が、上記取得した文字コードによって特定されるスケルトンデータを記憶装置1から読み出す(S2)。なお、読み出したスケルトンデータは、第1メモリ13に一時記憶される。そして、ステップS2の後は、表示制御部1
6が、上記特定された文字サイズに基づき、読み出したスケルトンデータをスケーリングする(S3)。
After step S1, the display control unit 16 reads the skeleton data specified by the character code described above from the storage unit 1 2 (S2). Note that the read skeleton data is temporarily stored in the first memory 13. After step S2, the display control unit 1
6 scales the read skeleton data based on the specified character size (S3).

ステップS3の後は、表示制御部16が、スケーリングした後のスケルトンデータから、1つのストロークの骨格線に関するストローク情報を取得する(S4)。なお、ストローク情報とは、特許文献1で示したストローク情報と同一であり、漢字「木」例では、当該漢字に関して4つのストローク情報が存在することになる。   After step S3, the display control unit 16 acquires stroke information related to the skeleton line of one stroke from the scaled skeleton data (S4). The stroke information is the same as the stroke information shown in Patent Document 1. In the example of the Chinese character “Thu”, there are four pieces of stroke information for the Chinese character.

ステップS4の後は、表示制御部16が、取得した一つのストローク情報と上記特定された文字の線幅の種別情報に基づき、所定の線幅(指定された線幅)のストロークの描画を行う(S5)。そして、ステップS5の後は、表示制御部16が、当該文字に含まれるストローク全てについて、上記描画を行ったか否かを判定する(S6)。ここで、上記の所定の線幅とは、階調補正部21による補正を行った後の文字の線幅をさす。   After step S4, the display control unit 16 draws a stroke having a predetermined line width (specified line width) based on the acquired single stroke information and the line width type information of the specified character. (S5). After step S5, the display control unit 16 determines whether or not the above drawing has been performed for all strokes included in the character (S6). Here, the predetermined line width refers to the line width of the character after the correction by the gradation correction unit 21.

S6において全てのストロークについて上記描画を行ったと判定されなかった場合には、再度、ステップS4に戻る。一方、S6全てのストロークについて上記描画を行ったと判定された場合には、当該文字についての一連の処理を終了する。   If it is not determined in S6 that the drawing has been performed for all strokes, the process returns to step S4 again. On the other hand, if it is determined that the drawing has been performed for all strokes in S6, a series of processing for the character is terminated.

図8は、図7のステップS5の処理の詳細を示したフローチャートである。なお、図8においては、要素線分の傾きの絶対値が1以上の場合であって、各要素線分に関し、要素線分の始点のY座標が、当該要素線分の終点のY座標よりも小さい場合を例に挙げて説明する。   FIG. 8 is a flowchart showing details of the process in step S5 of FIG. In FIG. 8, the absolute value of the slope of the element line segment is 1 or more, and for each element line segment, the Y coordinate of the start point of the element line segment is greater than the Y coordinate of the end point of the element line segment. In the following description, the case of a small value is taken as an example.

また、以下では、要素線分と上述した中心点CとのX軸方向の距離を算出する場合、要素線分上の処理対象点Gを先に求めた上で、当該処理対象点Gと中心点Cとの距離を算出する構成を挙げて説明する。   Also, in the following, when calculating the distance in the X-axis direction between the element line segment and the above-described center point C, the processing target point G on the element line segment is obtained first, and then the processing target point G and the center A configuration for calculating the distance to the point C will be described.

まず、距離算出部20が、ストローク情報に基づき、一つの要素線分の両端部(始点および終点)の2点の座標値を取得する(S11)。ステップS11の後は、距離算出部20が、上記取得した座標値に基づき、上記要素線分の傾きkを計算する(S12)。ここで、線幅方向(図3から図6ではX軸方向)の線であって、かつ各画素の中心を通る線を、仮想線L2と称する。   First, the distance calculation unit 20 acquires coordinate values of two points at both ends (start point and end point) of one element line segment based on the stroke information (S11). After step S11, the distance calculation unit 20 calculates the slope k of the element line segment based on the acquired coordinate value (S12). Here, a line in the line width direction (X-axis direction in FIGS. 3 to 6) and passing through the center of each pixel is referred to as a virtual line L2.

ステップS12の後は、距離算出部20が、当該要素線分の始点座標と終点座標とに基づき、要素線分の両端部近傍における、当該要素線分と上記仮想線L2との交点を求める(S13)。この際、要素線分の端部が重なる画素において、要素線分が短いために当該画素の中心を通る仮想線L2と交わらない場合には、当該要素線分の延長線と当該仮想線L2とが交わる点を上記交点とする。なお、以下では、始点側の交点を点Sとし、終点側の交点を点Eとする。 After step S12, the distance calculation unit 20 obtains an intersection between the element line segment and the virtual line L2 in the vicinity of both ends of the element line segment based on the start point coordinates and the end point coordinates of the element line segment ( S13). At this time, in the pixel where the end portions of the element line segment overlap, when the element line segment is short and does not intersect with the virtual line L2 passing through the center of the pixel, the extension line of the element line segment and the virtual line L2 The point where the points intersect is defined as the above point of intersection. In the following, the intersection on the start point side is referred to as point S, and the intersection on the end point side is referred to as point E.

ステップS13の後は、距離算出部20が、上述した処理対象点Gを点Sに設定する(S14)。そして、ステップS14の後は、距離算出部20が、上記決定した線幅が奇数であるか否かを判断する(S15)。   After step S13, the distance calculation unit 20 sets the processing target point G described above as the point S (S14). After step S14, the distance calculation unit 20 determines whether or not the determined line width is an odd number (S15).

ステップS15において奇数であると判断された場合には、距離算出部20が、上記処理対象点Gに最も近い、画素の中心点Cを求める(S16)。ステップS16の後は、距離算出部20が、処理対象点Gと、求めた中心点Cとの距離|d|を算出する(S17)。具体的には、距離算出部20は、処理対象点GのX座標の値と上記中心点CのX座標の値との差の絶対値を距離|d|とする。   If it is determined in step S15 that the number is an odd number, the distance calculation unit 20 obtains the pixel center point C closest to the processing target point G (S16). After step S16, the distance calculation unit 20 calculates the distance | d | between the processing target point G and the obtained center point C (S17). Specifically, the distance calculation unit 20 sets the absolute value of the difference between the X coordinate value of the processing target point G and the X coordinate value of the center point C as the distance | d |.

ステップS17の後は、階調補正部21が、上記中心点Cを有する画素を中心とするX軸方向の線幅分(つまり補正前の線幅分)の画素群を基にして、上述した距離|d|に応じた階調の補正を行う(S18)。この画素群に基にして上記補正を行うことにより、図3や図4に示したように、当該画素群の一方の端部の画素(例えば、図3の画素Pa)と、当該画素群の他の端部の画素に隣接する画素(例えば、図3の画素Pd)について、階調の補正がなされる。そして、ステップS18の後は、ステップ19に進む。 After step S <b> 17, the gradation correction unit 21 described above is based on the pixel group of the line width in the X-axis direction centered on the pixel having the center point C (that is, the line width before correction). The gradation is corrected according to the distance | d | (S18). By performing the above correction based on this pixel group, as shown in FIGS. 3 and 4, the pixel at one end of the pixel group (for example, pixel Pa in FIG. 3) and the pixel group The gradation is corrected for a pixel (for example, the pixel Pd in FIG. 3) adjacent to the other end pixel. Then, after the step S18, the process proceeds to step S 19.

ステップS15において奇数ではないと判断された場合には、距離算出部20が、上記処理対象点Gに最も近い、画素間の境界線分を特定する(S20)。ステップ20の後は、距離算出部20が、処理対象点Gと、特定された境界線分との距離|d|を算出する(S21)。つまりは、距離算出部20が、処理対象点Gと、特定された距離線分の中心点(つまり中心点C)との距離を算出する。具体的には、距離算出部20は、処理対象点GのX座標の値と、境界線分のX座標の値との差の絶対値を距離|d|とする。 If it is determined in step S15 that it is not an odd number, the distance calculation unit 20 specifies a boundary line segment between pixels closest to the processing target point G (S20). After step S 20, the distance calculation unit 20, a target point G, the distance between the specified boundary line | d | is calculated (S21). That is, the distance calculation unit 20 calculates the distance between the processing target point G and the center point (that is, the center point C) of the identified distance line segment. Specifically, the distance calculation unit 20 sets the absolute value of the difference between the X coordinate value of the processing target point G and the X coordinate value of the boundary line segment as the distance | d |.

ステップS21の後は、階調補正部21が、上記中心点Cを画素群の中心とするX軸方向の線幅分の画素群を基にして、上述した距離|d|に応じた階調の補正を行う(S22)。この画素群に基にして上記補正を行うことにより、図5や図6に示したように、当該画素群の一方の端部の画素(例えば、図5の画素Pf)と、当該画素群の他の端部の画素に隣接する画素(例えば、図5の画素Ph)について、階調の補正がなされる。そして、ステップS22の後は、ステップ19に進む。 After step S21, the gradation correction unit 21 performs gradation corresponding to the distance | d | based on the pixel group corresponding to the line width in the X-axis direction with the center point C as the center of the pixel group. Is corrected (S22). By performing the above correction based on this pixel group, as shown in FIGS. 5 and 6, the pixel at one end of the pixel group (for example, the pixel Pf in FIG. 5) and the pixel group Grayscale correction is performed on a pixel (for example, pixel Ph in FIG. 5) adjacent to the other end pixel. Then, after the step S22, the process proceeds to step S 19.

ステップ19においては、処理対象点GのX座標の値に上記値kを加え、Y座標の値に1を加える。ステップS19の後は、制御部15が、処理対象点Gの座標値が上記点Eの座標値と一致するか否かを判断する(S23)。 In step S19 , the value k is added to the X coordinate value of the processing target point G, and 1 is added to the Y coordinate value. After step S19, the control unit 15 determines whether or not the coordinate value of the processing target point G matches the coordinate value of the point E (S23).

ステップS20において一致しないと判断された場合には、再度、ステップS15に戻る。一方、ステップS20において一致すると判断された場合には、表示制御部16は、ストロークの骨格線に含まれる全ての要素線分に対して、上述したステップS12からステップS23に基づく処理が行われたか否かを判断する(S24)。   If it is determined in step S20 that they do not match, the process returns to step S15 again. On the other hand, if it is determined in step S20 that they match, the display control unit 16 has performed processing based on steps S12 to S23 described above for all element lines included in the skeleton line of the stroke. It is determined whether or not (S24).

ステップS24において全ての線分要素に対して処理が行われていないと判断された場合には、再度、ステップS11に戻る。一方、ステップS24において全ての線分要素に対して処理が行われたと判断された場合には、図7のステップS6に戻る。   If it is determined in step S24 that all line segment elements have not been processed, the process returns to step S11 again. On the other hand, if it is determined in step S24 that processing has been performed for all line segment elements, the process returns to step S6 in FIG.

図9は、上記階調補正の効果を説明するための図である。図9(a)は、上記階調補正を行っていない場合の文字(一部)を示した図であり、図9(b)は、階調補正を行った場合の文字(一部)とを示した図である。   FIG. 9 is a diagram for explaining the effect of the gradation correction. FIG. 9A shows a character (part) when the gradation correction is not performed, and FIG. 9B shows a character (part) when the gradation correction is performed. FIG.

上記の階調補正を行っていない場合には、図9(a)に示すとおり、シャギーが目立っている。しかしながら、上記の階調補正を行うことにより、図9(b)に示すとおり、シャギーが目立つことなく、輪郭が滑らかになっていることがわかる。   When the above gradation correction is not performed, shaggy is conspicuous as shown in FIG. However, it can be seen that by performing the above-described gradation correction, as shown in FIG. 9B, the contour is smooth without any noticeable shaggy.

以上のように、情報処理装置1によると、距離|d|に応じた階調の補正を行うため、補正に際してルックアップテーブル等の階調補正に用いるデータを記憶装置に記憶しておく必要がない。また、画素の階調が距離|d|のみに応じて計算されるため、各画素毎にルックアップテーブル内のデータにアクセスする構成に比べ、階調補正に要する時間を短縮することができる。   As described above, according to the information processing apparatus 1, in order to perform gradation correction according to the distance | d |, it is necessary to store data used for gradation correction such as a lookup table in the storage device during the correction. Absent. Further, since the gradation of the pixel is calculated according to only the distance | d |, the time required for gradation correction can be shortened as compared with the configuration in which the data in the lookup table is accessed for each pixel.

ところで、VRAMとして機能する第2メモリ14のデータ記憶領域において、上記のような階調を補正した文字を表示データ生成部22によって生成する場合、以下の2通りの方法がある。   By the way, there are the following two methods for generating the display data generation unit 22 in the data storage area of the second memory 14 functioning as a VRAM, with the gradation corrected as described above.

一つ目の方法は、第2メモリ14に文字のデータを直接描画する方法である。つまり、第2メモリ14に既に記憶されているデータ(つまり、表示中のビデオデータ)を文字の背景のデータとして用いて、階調の補正を行う方法(以下、直接描画方法と称する)である。   The first method is to directly draw character data in the second memory 14. In other words, this is a method of correcting gradation using data already stored in the second memory 14 (that is, video data being displayed) as character background data (hereinafter referred to as a direct drawing method). .

二つ目の方法は、後述する文字色寄与度を第2メモリ14以外のメモリ(以下、一時メモリと称する)に記憶しておき、当該文字色寄与度を用いて、第2メモリ14に記憶されたデータ(表示中のビデオデータ)を更新する方法(以下、間接描画方法と称する)である。   In the second method, a character color contribution degree to be described later is stored in a memory other than the second memory 14 (hereinafter referred to as a temporary memory) and stored in the second memory 14 using the character color contribution degree. This is a method for updating the data (video data being displayed) (hereinafter referred to as an indirect drawing method).

以下では、まず直接描画方法について説明し、その後、間接描画方法について説明する。   Hereinafter, the direct drawing method will be described first, and then the indirect drawing method will be described.

図10は、直接描画方法を行う際の処理の流れを示したフローチャートである。具体的には、図8のフローにおけるステップS18およびステップS22における処理を示したフローチャートである。   FIG. 10 is a flowchart showing a flow of processing when the direct drawing method is performed. Specifically, it is a flowchart showing the processing in step S18 and step S22 in the flow of FIG.

ここでは、説明の便宜上、文字色寄与度といった概念を用いる。文字色寄与度とは、階調補正部21による階調補正を行う前の文字の色(くわしくは、各色成分の値)を100とし、階調補正後の文字に関し、階調補正前の文字の色がどの程度寄与しているのかを示した値である。   Here, for convenience of explanation, the concept of character color contribution is used. The character color contribution level is defined as a character color before gradation correction by the gradation correction unit 21 (specifically, the value of each color component) is 100, and the character before gradation correction is related to the character after gradation correction. This is a value indicating how much the color of the color contributes.

具体的には、図3の画素Paについては、文字色寄与度は、100×(1−|d|)となる。また、同図の画素Pbと画素Pcとについては、階調補正が行われないため、文字色寄与度は100となる。さらに、同図の画素Pdについては、文字色寄与度は、100×|d|となる。また、同図の画素Pa〜Pd以外の領域では、文字色寄与度は0となる。   Specifically, for the pixel Pa in FIG. 3, the character color contribution is 100 × (1− | d |). In addition, for the pixel Pb and the pixel Pc in the figure, the tone color correction is not performed, so the character color contribution is 100. Further, for the pixel Pd in the figure, the character color contribution is 100 × | d |. In the region other than the pixels Pa to Pd in FIG.

まず、表示制御部16が、第2メモリ14内の更新対象画素を特定するとともに、当該画素に対応する文字色寄与度を求める(S31)。ステップS31の後は、表示制御部16が、文字色寄与度が100か否かを判断する(S32)。   First, the display control unit 16 specifies an update target pixel in the second memory 14 and obtains a character color contribution degree corresponding to the pixel (S31). After step S31, the display control unit 16 determines whether or not the character color contribution is 100 (S32).

ステップS32において寄与度が100であると判断された場合には、階調補正部21は、上記更新対象画素の画素値を画素値(Rf,Gf,Bf)で更新する(S33)。つまり、更新対象画素を文字色そのもので更新する。   If it is determined in step S32 that the degree of contribution is 100, the gradation correction unit 21 updates the pixel value of the update target pixel with the pixel value (Rf, Gf, Bf) (S33). That is, the update target pixel is updated with the character color itself.

一方、ステップS32において寄与度が100であると判断されなかった場合には、階調補正部21は、上記更新対象画素の画素値(Rb,Gb,Bb)を取得する(S34)。ステップS34の後は、階調補正部21が、画素値(Rf,Gf,Bf)と、画素値(Rb,Gb,Bb)と、求めた文字色寄与度とを用いて、補正後の画素値を算出する(S35)。なお、補正後の画素値の算出は、上述した式(1)〜(3)および式(4)〜(6)を用いるため、ここでは省略する。なお、式(1)〜(6)では、文字色寄与度を100で割った値(つまり、1−|d|や|d|)を用いて計算している。   On the other hand, if it is not determined in step S32 that the degree of contribution is 100, the gradation correction unit 21 acquires the pixel values (Rb, Gb, Bb) of the update target pixel (S34). After step S34, the gradation correction unit 21 uses the pixel values (Rf, Gf, Bf), the pixel values (Rb, Gb, Bb), and the calculated character color contribution to correct the corrected pixels. A value is calculated (S35). The calculation of the corrected pixel value is omitted here because the above-described equations (1) to (3) and equations (4) to (6) are used. In equations (1) to (6), calculation is performed using a value obtained by dividing the character color contribution by 100 (that is, 1− | d | or | d |).

ステップS35の後は、階調補正部21は、上記更新対象画素の画素値を補正後の画素値で更新する(S36)。これにより、図3の画素Paや画素Pdの階調が補正されることになる。   After step S35, the gradation correction unit 21 updates the pixel value of the update target pixel with the corrected pixel value (S36). Thereby, the gradation of the pixel Pa and the pixel Pd in FIG. 3 is corrected.

図11は、間接描画方法を行う際の処理の流れの一部を示したフローチャートである。
まず、表示制御部16が、上記一時メモリ内の更新対象画素を1つ特定するとともに、当該画素に対応する文字色寄与度K1を求める(S41)。ステップS41の後は、表示制御部16が、上記一時メモリ内に上記更新対象画素の文字色寄与度が既に記憶されているかを判断する(S42)。
FIG. 11 is a flowchart showing a part of the flow of processing when performing the indirect drawing method.
First, the display control unit 16 specifies one update target pixel in the temporary memory and obtains a character color contribution K1 corresponding to the pixel (S41). After step S41, the display control unit 16 determines whether the character color contribution degree of the update target pixel is already stored in the temporary memory (S42).

ステップS42において文字色寄与度が既に記憶されていると判断された場合には、制御部15が、ステップS41で求めた文字色寄与度K1が、既に記憶されていた文字色寄与度K2よりも大きいか否かを判断する(S43)。一方、S42において文字色寄与度が既に記憶されていると判断されなかった場合には、ステップS44に進む。   If it is determined in step S42 that the character color contribution is already stored, the control unit 15 determines that the character color contribution K1 obtained in step S41 is greater than the character color contribution K2 that has already been stored. It is determined whether it is larger (S43). On the other hand, if it is not determined in S42 that the character color contribution has already been stored, the process proceeds to step S44.

ステップS43において大きいと判断されなかった場合には、ステップS45に進む。一方、ステップS43において大きいと判断された場合には、ステップS44に進む。ステップS44では、更新対象画素の文字色寄与度をK1に設定する。そして、ステップS44の後は、ステップS45に進む。   If it is not determined in step S43 that the value is large, the process proceeds to step S45. On the other hand, if it is determined in step S43 that the value is large, the process proceeds to step S44. In step S44, the character color contribution degree of the update target pixel is set to K1. After step S44, the process proceeds to step S45.

ステップS45においては、表示制御部16が、一文字に含まれる全ての更新対象画素について処理が行われたか否かが判断する。ステップS45において全ての更新対象画素について処理が行われていないと判断された場合には、再度、S41に戻る。   In step S45, the display control unit 16 determines whether or not processing has been performed for all the update target pixels included in one character. If it is determined in step S45 that the processing has not been performed for all the update target pixels, the process returns to S41 again.

一方、ステップS45において全ての更新対象画素について処理が行われたと判断された場合には、一時メモリに記憶された文字色寄与度を用いて各画素の画素値を算出し、当該算出した画素値を用いて、第2メモリ14における画素値を更新する(S46)。この更新処理により、階調の補正がなされる。なお、画素値の算出については、上述した式(1)〜(3)および式(4)〜(6)を用いるため、ここでは省略する。   On the other hand, if it is determined in step S45 that all the update target pixels have been processed, the pixel value of each pixel is calculated using the character color contribution stored in the temporary memory, and the calculated pixel value Is used to update the pixel value in the second memory 14 (S46). By this update processing, gradation correction is performed. The calculation of the pixel value is omitted here because the above-described equations (1) to (3) and equations (4) to (6) are used.

間接描画方法では、全ての更新対象画素の文字色寄与度を求めた上で第2メモリ14における画素値を更新する構成であるため、一つのストローク毎に描画を行う図7のフローとは異なることになる。   Since the indirect drawing method is configured to update the pixel values in the second memory 14 after obtaining the character color contributions of all the update target pixels, it is different from the flow of FIG. 7 in which drawing is performed for each stroke. It will be.

また、上記直接描画方法を用いることにより、間接描画方法に用いたような一時メモリが不要となる。また、一時メモリから第2メモリ14への転送も不要であるため、処理の高速化が図れる。   Further, by using the direct drawing method, a temporary memory as used in the indirect drawing method becomes unnecessary. In addition, since the transfer from the temporary memory to the second memory 14 is not necessary, the processing speed can be increased.

一方、間接描画方法を用いることにより、要素線分が交差する箇所や、要素線分が込み合っている箇所においても、文字色の階調が他の箇所の階調よりも高くなることを防止することができる。   On the other hand, by using the indirect drawing method, the gradation of the character color is prevented from becoming higher than the gradation of other portions even at a location where the element line segments intersect or where the element line segments are crowded. be able to.

ところで、上記においては、要素線分が、X軸に平行であろうと、Y軸に平行であろうと、階調補正部21により上述した階調の補正がなされる。しかしながら、X軸に平行な要素線分、Y軸に平行な要素線分により描画される記号(記号の一部)は、そもそも階段状のギザギザ(ジャギー)が発生しない。このため、X軸およびY軸に対して傾きを有する要素線分(つまり斜めの線分)についてのみ上述した階調の補正を行うことが好ましい。   By the way, in the above, whether the element line segment is parallel to the X axis or the Y axis, the gradation correction unit 21 performs the above-described gradation correction. However, the symbol (part of the symbol) drawn by the element line segment parallel to the X axis and the element line segment parallel to the Y axis does not generate stepped jaggedness (jaggy) in the first place. For this reason, it is preferable to perform the above-described gradation correction only for element line segments that are inclined with respect to the X axis and the Y axis (that is, diagonal line segments).

そこで、以下では、平行判定部30と補正制限部31とを利用する構成について説明する。   Therefore, a configuration using the parallel determination unit 30 and the correction limiting unit 31 will be described below.

平行判定部30は、各要素線分が、X軸またはY軸と平行な直線であるか否かを、スケーリングされたスケルトンデータ(骨格線を示した情報)に基づいて判定する。   The parallel determination unit 30 determines whether each element line segment is a straight line parallel to the X axis or the Y axis based on the scaled skeleton data (information indicating the skeleton line).

補正制限部31は、平行判部30によって平行であると判された要素線分と重なる画素を含んだ要素画素群に関しては、上述した階調の補正がなされないよう補正を制限する。 Correction limiting unit 31, with respect to the parallel-format constant unit 30 and determine the constant by element segment overlaps group element pixels including a pixel which is parallel with, limiting the correction so that the correction of the gradation as described above is not performed.

図12は、平行判定部30と補正制限部31とを用いて、補正の制限を行った場合に得れる記号の一部を示した図である。なお、同図において点線は、画素の中心点間を結んだ線である。   FIG. 12 is a diagram illustrating a part of symbols obtained when the correction is limited using the parallel determination unit 30 and the correction limiting unit 31. In the figure, the dotted line is a line connecting the center points of the pixels.

同図に示すとおり、要素線分L3は斜線の線分であり、要素線分L4はY軸と平行な線分である。要素線分L3に基づいて文字の一部分を表示する場合には、同図に示すとおり、階調補正部21による階調の補正がなされている。そして、当該補正により、線幅が3から4に増えている。一方、要素線分L4に基づいて記号の一部分を表示する場合には、同図に示すとおり、補正制限部31により階調の補正が制限されている。   As shown in the figure, the element line segment L3 is an oblique line segment, and the element line segment L4 is a line segment parallel to the Y axis. In the case of displaying a part of the character based on the element line segment L3, as shown in FIG. The line width is increased from 3 to 4 by the correction. On the other hand, when a part of the symbol is displayed based on the element line segment L4, the correction of the gradation is restricted by the correction restriction unit 31, as shown in FIG.

この結果、斜めの文字の部分に関しては、シャギーを目だ出せなくすることができるとともに、Y軸に平行な文字の部分に関しては、文字がぼやけてしまうことを回避できる。さらに、X軸やY軸に平行な要素線分については、距離|d|に基づく階調補正の演算が不要となるため、当該平行な要素線分に対して階調補正の演算を実行する構成に比べて、表示に要する時間を短縮することが可能となる。   As a result, the shaggy can be made inconspicuous with respect to the oblique character portion, and the character blurring can be avoided with respect to the character portion parallel to the Y axis. Further, since the calculation of gradation correction based on the distance | d | is unnecessary for the element line segment parallel to the X axis or the Y axis, the calculation of gradation correction is executed for the parallel element line segment. Compared to the configuration, the time required for display can be shortened.

このように、補正制限部31は、平行判部30によって平行であると判された要素線分と重なる画素を含んだ要素画素群における一方の端部の画素(図12では、例えば画素Pj)と、当該要素画素群の上記他方の端部に隣接する画素であって、当該要素画素群に含まれていない画素(同図では、例えば画素Pk)については、階調補正部21による補正を制限する構成であるといえる。 Thus, the correction limiting unit 31, the one end portion of the pixel (FIG. 12 in inclusive element pixel group pixels overlapping with determine constant by element segment is parallel with the parallel determination Priority determination unit 30, for example, the pixel Pj) and pixels that are adjacent to the other end of the element pixel group and are not included in the element pixel group (for example, pixel Pk in the figure) are processed by the gradation correction unit 21. It can be said that it is the structure which restrict | limits correction | amendment.

ところで、上記のように補正制限部31によって階調の補正をする場合、以下のような問題点が生じる。   Incidentally, when the gradation is corrected by the correction limiting unit 31 as described above, the following problems occur.

図13は、斜めの要素線分L5と、当該要素線分L5に連続する要素線分L6とを用いて描画した文字の一部分を示した図である。なお、同図においては、補正制限部31による上述した補正の制限が行われている。   FIG. 13 is a diagram showing a part of a character drawn using an oblique element line segment L5 and an element line segment L6 continuous to the element line segment L5. In the figure, the correction restriction described above by the correction restriction unit 31 is performed.

この場合、同図に示すとおり、画素Pmと画素Pnとについても階調の補正が行われてしまう。それゆえ、要素線分L5と要素線分L6とにより形成される角度のうち優角側(角度が180度以上の側)の領域において、Y軸に平行な記号の輪郭線に対して凸部が形成されてしまう。このため、文字の見た目が悪くなる。   In this case, as shown in the figure, gradation correction is also performed for the pixel Pm and the pixel Pn. Therefore, in the region on the dominant angle side (the side where the angle is 180 degrees or more) of the angles formed by the element line segment L5 and the element line segment L6, a convex portion with respect to the outline of the symbol parallel to the Y axis Will be formed. For this reason, the appearance of a character worsens.

そこで、以下では、補正制限部31の機能の一部を変更し、文字の見た目が悪くなることを防止する構成について説明する。   Therefore, hereinafter, a configuration will be described in which a part of the function of the correction restriction unit 31 is changed to prevent the appearance of characters from being deteriorated.

図14は、このように補正制限部31の機能を変更することにより得られる文字の一部分を示した図である。上記要素線分L5と上記要素線分L6とを用いて文字の一部を描画する場合に、同図に示すように、少なくとも画素Pmと画素Pnとについては階調の補正がなされていない。   FIG. 14 is a diagram showing a part of a character obtained by changing the function of the correction limiting unit 31 in this way. When a part of a character is drawn using the element line segment L5 and the element line segment L6, as shown in the figure, at least the pixel Pm and the pixel Pn are not subjected to gradation correction.

以下では、このような見た目のよい文字を表示させるための処理について、図15から図18に基づいて説明する。   Below, the process for displaying such a good-looking character is demonstrated based on FIGS. 15-18.

図15は、或る1つのストロークを描画する際に用いられる各要素線分を示した図である。同図においては、3つの要素線分(L10・L11・L12)が記されている。また、同図においては、要素線分L10の始点をH、要素線分L10の終点でありかつ要素線分L11の始点をI、要素線分L11の終点でありかつ要素線分L12の終点をJと、要素線分L12の終点をKとしている。   FIG. 15 is a diagram showing each element line segment used when drawing a certain stroke. In the figure, three element line segments (L10, L11, and L12) are shown. Also, in the figure, the start point of the element line segment L10 is H, the end point of the element line segment L10, the start point of the element line segment L11 is I, the end point of the element line segment L11 and the end point of the element line segment L12 is Let J and the end point of the element line segment L12 be K.

また、スケーリングされた座標データにおいては、点Hの座標値、点Iの座標値、点Jの座標値、点Kの座標値が、この順に並んでいるものとする。さらに、要素線分L10に基づくストロークが最初に描画され、その後、要素線分L11に基づくストロークの描画が行われ、最後に要素線分L12に基づくストロークの描画が行われるものとする。   In the scaled coordinate data, the coordinate value of the point H, the coordinate value of the point I, the coordinate value of the point J, and the coordinate value of the point K are arranged in this order. Furthermore, it is assumed that a stroke based on the element line segment L10 is drawn first, then a stroke based on the element line segment L11 is drawn, and finally a stroke based on the element line segment L12 is drawn.

さらに、要素線分L11に基づくストロークの描画を行っている際には、要素線分L10を描画対象の直前の要素線分と、要素線分L12を描画対象の直後の要素線分と称する。また、同図においては、当該描画に用いられている要素線分L11上の点であって、上述した処理対象点Gのうち、最初に処理が行われる点を点Sと、最後に処理が行われる点を点Eとして表示している。さらに、要素線分L11の傾きを1以上とする。   Further, when drawing a stroke based on the element line segment L11, the element line segment L10 is referred to as an element line segment immediately before the drawing target, and the element line segment L12 is referred to as an element line segment immediately after the drawing target. Further, in the figure, a point on the element line segment L11 used for the drawing and the point to be processed first among the processing target points G described above is a point S, and finally the processing is performed. The point to be performed is indicated as point E. Furthermore, the inclination of the element line segment L11 is set to 1 or more.

以下では、このような定義の下、処理の具体的な内容について説明する。
図16は、ストローク描画(図7のステップS5)における処理の詳細を示したフローチャートである。
Below, the specific content of a process is demonstrated under such a definition.
FIG. 16 is a flowchart showing details of processing in stroke drawing (step S5 in FIG. 7).

まず、表示制御部16が、要素線分L10の座標値(つまり、図15における点Hと点Iの座標値)をスケーリング後のスケルトンデータから取得する(S51)。ステップS51の後は、距離算出部20が、要素線分L10の傾きを算出する(S52)。そして、ステップS52の後は、距離算出部20が、上記点Sと点Eとの座標値を算出する(S53)。さらに、ステップS53の後は、距離算出部20が、処理対象点Gを点Sに設定する(S54)。   First, the display control unit 16 acquires the coordinate values of the element line segment L10 (that is, the coordinate values of the points H and I in FIG. 15) from the scaled skeleton data (S51). After step S51, the distance calculation unit 20 calculates the slope of the element line segment L10 (S52). After step S52, the distance calculation unit 20 calculates the coordinate value between the point S and the point E (S53). Further, after step S53, the distance calculation unit 20 sets the processing target point G to the point S (S54).

ステップS54の後は、表示制御部16が、X軸方向の上限値Xmaxと下限値Xminとを設定する(S55)。ここで、X軸方向の上限値と下限値とを設定する理由は、要素線分L10の傾きが1以上であり、X軸方向に線幅が形成されるためである。なお、要素線分の傾きが1以下である場合には、Y軸方向に上限値と下限値とが設定されることになる。そして、ステップS55の後は、距離算出部20により線幅が奇数であるか否かが判断される(S56)。なお、ここでの線幅は、階調補正を行う前の線幅である。   After step S54, the display control unit 16 sets the upper limit value Xmax and the lower limit value Xmin in the X-axis direction (S55). Here, the reason why the upper limit value and the lower limit value in the X-axis direction are set is that the slope of the element line segment L10 is 1 or more and a line width is formed in the X-axis direction. When the slope of the element line segment is 1 or less, an upper limit value and a lower limit value are set in the Y-axis direction. After step S55, the distance calculation unit 20 determines whether or not the line width is an odd number (S56). Here, the line width is a line width before gradation correction.

ステップS56において奇数であると判断された場合には、距離算出部20は、処理対象点Gに最も近い、画素の中心点(つまり、中心点C)のX座標値を求める(S57)。なお、以下では、処理対象点Gの座標値を(Xg,Yg)とし、中心点Cの座標値を(Xc,Yc)と表記する。なお、この場合、YgとYcとは同じ値となる。つまり、中心点Cの座標値は、(Xc,Yg)としても表せる。   If it is determined in step S56 that the number is an odd number, the distance calculation unit 20 obtains the X coordinate value of the center point (that is, the center point C) of the pixel closest to the processing point G (S57). In the following, the coordinate value of the processing point G is represented as (Xg, Yg), and the coordinate value of the center point C is represented as (Xc, Yc). In this case, Yg and Yc are the same value. That is, the coordinate value of the center point C can also be expressed as (Xc, Yg).

ステップS57の後は、距離算出部20により、Xgが、Xmin以上かつXmax以下であるか否かが判断される(S58)。ステップS58においてXmin以上かつXmax以下であると判断された場合には、距離算出部20が、処理対象点Gと中心点Cとの距離|d|を算出する(S59)。そして、ステップS39の後は、階調補正部21が、距離算出部20が算出した距離|d|を用いて、上述したようにストロークの一部(図3参照)を描画する(S60)。そして、ステップS60の後は、距離算出部20は、処理対象点GのX座標値に上記kを加えるとともに、当該処理対象点GのY座標値に1を加える(S61)。   After step S57, the distance calculation unit 20 determines whether Xg is greater than or equal to Xmin and less than or equal to Xmax (S58). If it is determined in step S58 that it is greater than or equal to Xmin and less than or equal to Xmax, the distance calculation unit 20 calculates a distance | d | between the processing target point G and the center point C (S59). After step S39, the gradation correction unit 21 draws a part of the stroke (see FIG. 3) as described above using the distance | d | calculated by the distance calculation unit 20 (S60). After step S60, the distance calculation unit 20 adds k to the X coordinate value of the processing target point G and adds 1 to the Y coordinate value of the processing target point G (S61).

一方、ステップS58においてXmin以上かつXmax以下であると判断されなかった場合には、距離算出部20が、点(Xc,Yg)を、線幅方向に連続した画素で構成される画素群(要素画素群)の中心点とし、表示制御部16が、従来のように、階調補正を行うことなくストロークの一部を描画する(S62)。つまり、図14に示した画素Pnや画素Pmについては、階調の補正がなされることなく、背景の色のままとすることが可能となる。したがって、見た目のよい文字を得ることができる。ステップS62の後は、ステップS61に進む。   On the other hand, if it is not determined in step S58 that the distance is not less than Xmin and not more than Xmax, the distance calculation unit 20 sets the point (Xc, Yg) to a pixel group (elements) composed of pixels continuous in the line width direction. The display control unit 16 draws a part of the stroke without performing gradation correction as in the past (S62). That is, the pixel Pn and the pixel Pm shown in FIG. 14 can be kept in the background color without being subjected to gradation correction. Therefore, it is possible to obtain characters that look good. After step S62, the process proceeds to step S61.

ところで、ステップS56において奇数であると判断されなかった場合には、距離算出部20は、処理対象点Gに最も近い、上記境界線分の中心点(つまり、中心点C)の座標値を求める(S63)。   By the way, when it is not determined in step S56 that the number is an odd number, the distance calculation unit 20 obtains the coordinate value of the center point (that is, the center point C) of the boundary line segment that is closest to the processing target point G. (S63).

ステップS63の後は、距離算出部20により、Xgが、Xmin以上かつXmax以下であるか否かが判断される(S64)。ステップS64においてXmin以上かつXmax以下であると判断された場合には、距離算出部20が、処理対象点Gと中心点Cとの距離|d|を算出する(S65)。そして、ステップS59の後は、階調補正部21が、距離算出部20が算出した距離|d|を用いて、上述したようにストロークの一部(図5参照)を描画する(S66)。そして、ステップS66の後は、ステップS61に進む。   After step S63, the distance calculation unit 20 determines whether Xg is greater than or equal to Xmin and less than or equal to Xmax (S64). If it is determined in step S64 that it is greater than or equal to Xmin and less than or equal to Xmax, the distance calculation unit 20 calculates the distance | d | between the processing target point G and the center point C (S65). After step S59, the gradation correction unit 21 draws a part of the stroke (see FIG. 5) using the distance | d | calculated by the distance calculation unit 20 as described above (S66). After step S66, the process proceeds to step S61.

一方、ステップS64においてXmin以上かつXmax以下であると判断されなかった場合には、ステップS62に進む。   On the other hand, if it is not determined in step S64 that it is not less than Xmin and not more than Xmax, the process proceeds to step S62.

ステップS61の後は、距離算出部20により、処理対象点Gの座標値が点Eの座標値と同じか否かが判断される(S67)。ステップS67において同じであると判断されなかった場合には、再度、ステップS56に戻る。一方、ステップS67において同じであると判断された場合には、表示制御部16が、上記一つのストロークに含まれる全ての要素線分(L10・L11・L12)について処理がなされたか否かを判断する(S68)。   After step S61, the distance calculation unit 20 determines whether the coordinate value of the processing target point G is the same as the coordinate value of the point E (S67). If it is not determined in step S67 that they are the same, the process returns to step S56 again. On the other hand, if it is determined in step S67 that they are the same, the display control unit 16 determines whether or not processing has been performed for all element line segments (L10, L11, and L12) included in the one stroke. (S68).

ステップS68において全ての要素線分について処理がなされたと判断されなかった場合には、再度、ステップS51に戻る。一方、ステップS68において全ての要素線分について処理がなされたと判断された場合には、処理を終了する。   If it is not determined in step S68 that all element line segments have been processed, the process returns to step S51 again. On the other hand, if it is determined in step S68 that all the element line segments have been processed, the process ends.

図17は、図16のステップS55における、上限値と下限値との設定方法を示したフローチャートである。なお、説明の便宜上、要素線分L11についての上限値と下限値との設定を例に挙げて説明する。   FIG. 17 is a flowchart showing a method for setting the upper limit value and the lower limit value in step S55 of FIG. For convenience of explanation, the setting of the upper limit value and the lower limit value for the element line segment L11 will be described as an example.

まず、表示制御部16が、直前の要素線分L10が、X軸またはY軸に平行な線分(横線または縦線)であるか否かを、点Hと点Iとの座標値に基づき判断する(S71)。ステップS71において平行な線分であると判断された場合には、表示制御部16は、線幅が奇数であるか否かを判断する(S72)。なお、ここでの線幅は、階調補正を行う前の線幅である。   First, the display control unit 16 determines whether or not the immediately preceding element line segment L10 is a line segment (horizontal line or vertical line) parallel to the X-axis or Y-axis based on the coordinate values of the points H and I. Judgment is made (S71). If it is determined in step S71 that the line segments are parallel, the display control unit 16 determines whether or not the line width is an odd number (S72). Here, the line width is a line width before gradation correction.

ステップS72において奇数であると判断された場合には、表示制御部16は、下限値Xminを、点Sを含む画素の中心点の座標のX座標値に設定する(S73)。その後、ステップS76に進む。一方、ステップS72において奇数であると判断されなかった場合には、表示制御部16は、下限値Xminを、点Sに最も近い上記境界線分のX座標値に設定する(S74)。その後、ステップS56に進む。   If it is determined in step S72 that the number is odd, the display control unit 16 sets the lower limit value Xmin to the X coordinate value of the coordinates of the center point of the pixel including the point S (S73). Thereafter, the process proceeds to step S76. On the other hand, if it is not determined in step S72 that the number is an odd number, the display control unit 16 sets the lower limit value Xmin to the X coordinate value of the boundary line segment closest to the point S (S74). Thereafter, the process proceeds to step S56.

また、ステップS51において平行な線分であると判断されなかった場合には、表示制御部16は、下限値Xminを、Xgがとり得る値のうち、最小となる値に設定する(S75)。その後、ステップS76に進む。   If it is not determined in step S51 that the line segments are parallel, the display control unit 16 sets the lower limit value Xmin to a minimum value among the possible values of Xg (S75). Thereafter, the process proceeds to step S76.

ステップS76においては、表示制御部16が、直後の要素線分L12が、X軸またはY軸に平行な線分であるか否かを、点Jと点Kとの座標値に基づき判断する。ステップS76において平行な線分であると判断された場合には、表示制御部16は、線幅が奇数であるか否かを判断する(S77)。なお、ここでの線幅は、階調補正を行う前の線幅である。   In step S76, the display control unit 16 determines whether or not the immediately following element line segment L12 is a line segment parallel to the X axis or the Y axis based on the coordinate values of the point J and the point K. When it is determined in step S76 that the line segments are parallel, the display control unit 16 determines whether or not the line width is an odd number (S77). Here, the line width is a line width before gradation correction.

ステップS77において奇数であると判断された場合には、表示制御部16は、上限値Xmaxを、点Eを含む画素の中心点の座標のX座標値に設定する(S78)。その後、処理を終了する。一方、ステップS77において奇数であると判断されなかった場合には、表示制御部16は、上限値Xmaxを、点Eに最も近い上記境界線分のX座標値に設定する(S79)。その後、処理を終了する。   If it is determined in step S77 that the number is odd, the display control unit 16 sets the upper limit value Xmax to the X coordinate value of the coordinates of the center point of the pixel including the point E (S78). Thereafter, the process ends. On the other hand, if it is not determined in step S77 that the number is an odd number, the display control unit 16 sets the upper limit value Xmax to the X coordinate value of the boundary line segment closest to the point E (S79). Thereafter, the process ends.

また、ステップS77において平行な線分であると判断されなかった場合には、表示制御部16は、上限値Xmaxを、Xgがとり得る値のうち、最大となる値に設定する(S80)。その後、処理を終了する。   If it is not determined in step S77 that the line segments are parallel, the display control unit 16 sets the upper limit value Xmax to the maximum value among the possible values of Xg (S80). Thereafter, the process ends.

図18は、上限値の設定例と、下限値の設定例とを示した図である。
図18(a)は、図17のフローに示したように、X座標についての上限値Xmaxを示した図であり、図18(b)は、図17のフローに示したように、X座標についての下限値Xminを示した図である。また、図18(c)は、Y座標についての上限値Ymaxを示した図であり、図18(b)は、Y座標についての下限値Yminを示した図である。
FIG. 18 is a diagram illustrating an example of setting an upper limit value and an example of setting a lower limit value.
18A is a diagram showing the upper limit value Xmax for the X coordinate as shown in the flow of FIG. 17, and FIG. 18B is the X coordinate as shown in the flow of FIG. It is the figure which showed the lower limit Xmin about. FIG. 18C is a diagram showing the upper limit value Ymax for the Y coordinate, and FIG. 18B is a diagram showing the lower limit value Ymin for the Y coordinate.

ここで、X軸またはY軸に平行な要素線分(例えば、図18の縦線や横線)と重なる画素を含んだ各要素画素群における各中心点を通る線を仮想線L15(第1仮想線)とする。つまり、仮想線L15は、要素線分がX軸に平行であれば、X軸に平行な線分となり、要素線分がY軸に平行であれば、Y軸に平行な線分となる。なお、図13および図14の太い点線が、仮想線L15に該当する。   Here, a line passing through each center point in each element pixel group including a pixel that overlaps an element line segment parallel to the X axis or the Y axis (for example, a vertical line or a horizontal line in FIG. 18) is represented by a virtual line L15 (first virtual line). Line). That is, the virtual line L15 is a line segment parallel to the X axis if the element line segment is parallel to the X axis, and a line segment parallel to the Y axis if the element line segment is parallel to the Y axis. In addition, the thick dotted line of FIG. 13 and FIG. 14 corresponds to the virtual line L15.

また、上記平行な要素線分と連続するとともに当該要素線分に対して傾きを有する他の要素線分(例えば、図18の斜線分)と重なる画素を含んだ、要素画素群における中心点を通る、前記第1仮想線と垂直な線を仮想線L16(第2仮想線)とする。つまり、仮想線L16は、上述した仮想線L2と同様、線幅方向(図3から図6ではX軸方向)の線であって、かつ各画素の中心を通る線である。なお、図14においては、仮想線L16は、X軸方向に平行な線となる。   In addition, a center point in the element pixel group including a pixel that overlaps with another element line segment (for example, a hatched line segment in FIG. 18) that is continuous with the parallel element line segment and has an inclination with respect to the element line segment. A line that passes through and is perpendicular to the first virtual line is defined as a virtual line L16 (second virtual line). That is, the imaginary line L16 is a line in the line width direction (X-axis direction in FIGS. 3 to 6) and the line passing through the center of each pixel, like the imaginary line L2. In FIG. 14, the virtual line L16 is a line parallel to the X-axis direction.

このように仮想線L15および仮想線L16を定義すると、補正制限部31は、仮想線L16と上記他の要素線分との交点の位置と、仮想線L15位置とが所定の関係を満たす場合、当該交点と重なる画素を含んだ要素画素群における一方の端部の画素と、当該要素画素群における前記他方の端部の画素と前記線幅の方向に隣接する画素であるとともに当該要素画素群に含まれていない画素とについては、階調補正部21による階調の補正を制限する構成といえる。 With this define virtual line L15 and the virtual line L16, the correction limiting unit 31, when the imaginary line L16 and the intersections with the other elements segments, the position of the virtual line L15 satisfies a predetermined relationship The pixel at one end in the element pixel group including the pixel overlapping the intersection and the pixel adjacent to the pixel at the other end in the element pixel group in the line width direction and the element pixel group It can be said that the pixel that is not included in is limited to the gradation correction performed by the gradation correction unit 21.

ところで、図14から図18においては、見た目のよい文字を表示させるために、補正制限部31によって所定の画素(例えば、図14の画素Pmおよび画素Pn)については階調の補正を制限した。以下では、同様に見た目のよい文字を表示させるために、線分補正部32を用いる構成について説明する。   By the way, in FIGS. 14 to 18, in order to display a good-looking character, the correction restriction unit 31 restricts the gradation correction for a predetermined pixel (for example, the pixel Pm and the pixel Pn in FIG. 14). Below, the structure which uses the line segment correction | amendment part 32 in order to display the character with good appearance similarly is demonstrated.

線分補正部32は、所定の要素線分に関し、要素線分の傾きを変更することなく、要素線分の長さを変更する。詳しくは、線分補正部32は、各要素線分の始点の座標値と、終点の座標値とを変更することにより、要素線分の長さを変更する構成である。   The line segment correction unit 32 changes the length of the element line segment without changing the inclination of the element line segment with respect to the predetermined element line segment. Specifically, the line segment correction unit 32 is configured to change the length of the element line segment by changing the coordinate value of the start point and the coordinate value of the end point of each element line segment.

図19は、線分補正部32による補正前の要素線分(L20・L21)と、補正後の要素線分(L20′・L21′)とを示した図である。図19(a)が補正前の要素線分を示しており、図19(b)が補正後の要素線分を示している。   FIG. 19 is a diagram showing element line segments (L20 · L21) before correction by the line segment correction unit 32 and element line segments (L20 ′ / L21 ′) after correction. FIG. 19A shows element lines before correction, and FIG. 19B shows element lines after correction.

図19(a)に示すとおり、要素線分L20と要素線分L21とは連続した線分である。また、要素線分L21は、Y軸に平行な線分である。また、要素線分L20は、要素線分L21に対して所定の傾きを有している。さらに、同図においては、要素線分L20は、X軸に対して1以上の傾きを有している。   As shown in FIG. 19A, the element line segment L20 and the element line segment L21 are continuous line segments. The element line segment L21 is a line segment parallel to the Y axis. The element line segment L20 has a predetermined inclination with respect to the element line segment L21. Further, in the figure, the element line segment L20 has an inclination of 1 or more with respect to the X axis.

また、同図に示すとおり、要素線分L20の始点を点Tと、要素線分L20の終点であるとともに要素線分L21の始点を点Uと、要素線分L21の終点を点Vとする。   In addition, as shown in the figure, the start point of the element line segment L20 is a point T, the end point of the element line segment L20, the start point of the element line segment L21 is a point U, and the end point of the element line segment L21 is a point V. .

以下では、要素線分L20を、図19(b)に示す要素線分L20′に補正するとともに、要素線分L21を、同図に示した要素線分L21′に補正する具体的方法について説明する。まず、要素線分L20の補正について説明する。 Hereinafter, a specific method of correcting the element line segment L20 to the element line segment L20 ′ shown in FIG. 19B and correcting the element line segment L21 to the element line segment L21 ′ shown in FIG. 19 will be described. To do. First, correction of the element line segment L20 will be described.

図20は、補正前の要素線分L20と、補正後の要素線分L20′とを示した図である。図20(a)が補正前の要素線分L20を示しており、図20(b)が補正後の要素線分L20′を示している。   FIG. 20 is a diagram illustrating an element line segment L20 before correction and an element line segment L20 ′ after correction. FIG. 20A shows the element line segment L20 before correction, and FIG. 20B shows the element line segment L20 ′ after correction.

ここで、図20(a)および図20(b)に示すとおり、Y軸に平行な要素線分L21と重なる画素を含んだ各要素画素群における各中心点を通る線を仮想線L30(第1仮想線)とする。また、仮想線L30と要素線分L20との交点を、交点Qとする。   Here, as shown in FIGS. 20 (a) and 20 (b), a line passing through each center point in each element pixel group including pixels overlapping with the element line segment L21 parallel to the Y axis is represented by an imaginary line L30 (the first line). 1 virtual line). An intersection point between the virtual line L30 and the element line segment L20 is defined as an intersection point Q.

線分補正部32は、要素線分L20の長さを、上記交点Qを含む画素に隣接する画素までしか達しない長さに補正する。例えば、図20(b)に示した例では、要素線分L20の終点のX座標値を、上記交点QのX座標値から要素線分の傾き(ここでもkとする)を差し引いた値に、同終点のY座標値を、上記交点QのY座標値から1を差し引いた値にする補正を行うことにより、要素線分L20の長さを、上記交点Qを含む画素に隣接する画素までしか達しない長さに補正している。   The line segment correction unit 32 corrects the length of the element line segment L20 so as to reach only the pixel adjacent to the pixel including the intersection point Q. For example, in the example shown in FIG. 20B, the X coordinate value of the end point of the element line segment L20 is set to a value obtained by subtracting the slope of the element line segment (here, k) from the X coordinate value of the intersection point Q. Then, by correcting the Y coordinate value of the end point to a value obtained by subtracting 1 from the Y coordinate value of the intersection point Q, the length of the element line segment L20 is reduced to a pixel adjacent to the pixel including the intersection point Q. It is corrected to a length that can only be reached.

次に要素線分L21の補正について説明する。
図21は、補正前の要素線分L21と、補正後の要素線分L21′とを示した図である。図21(a)が補正前の要素線分L21を示しており、図21(b)が補正後の要素線分L21′を示している。
Next, correction of the element line segment L21 will be described.
FIG. 21 is a diagram showing an element line segment L21 before correction and an element line segment L21 ′ after correction. FIG. 21A shows the element line segment L21 before correction, and FIG. 21B shows the element line segment L21 ′ after correction.

線分補正部32は、要素線分L21の長さを、上記交点Qを含む画素まで達する長さに補正する。例えば、図21(b)に示した例では、要素線分L21の始点のY座標値が1だけ減少させる補正を行うことにより、要素線分L21の長さを、上記交点Qを含む画素まで達する長さに補正している。つまり、要素線分L21を補正した後の要素線分L21′の始点は点U′となる。   The line segment correction unit 32 corrects the length of the element line segment L21 so as to reach the pixel including the intersection point Q. For example, in the example shown in FIG. 21B, the length of the element line segment L21 is reduced to the pixel including the intersection point Q by performing correction that decreases the Y coordinate value of the start point of the element line segment L21 by one. It is corrected to reach the length. That is, the starting point of the element line segment L21 ′ after correcting the element line segment L21 is the point U ′.

図22は、図20および図21に示した要素線分の長さを補正する際の処理の流れを示したフローチャートである。また、同図は、ストローク描画(図7のステップS5)における処理の詳細を示したフローチャートでもある。   FIG. 22 is a flowchart showing the flow of processing when correcting the lengths of the element line segments shown in FIGS. This figure is also a flowchart showing details of processing in stroke drawing (step S5 in FIG. 7).

まず、距離算出部20が、各要素線分の始点と終点との座標値(図19においては、点Tと点Uと点Vとの座標値)をスケーリング後のスケルトンデータから取得する(S91)。ステップS91の後は、線分補正部32が上記始点および/または終点の座標値の補正を行う(S92)。なお、ステップS92の詳細については、後述する。   First, the distance calculation unit 20 acquires the coordinate values of the start point and the end point of each element line segment (in FIG. 19, the coordinate values of the point T, the point U, and the point V) from the scaled skeleton data (S91). ). After step S91, the line segment correction unit 32 corrects the coordinate values of the start point and / or end point (S92). Details of step S92 will be described later.

さらに、ステップS92の後は、線分補正部32が、補正後の座標値を用いて要素線分を生成するとともに、当該要素線分に基づき、上述した距離|d|に応じた階調の補正を行う(S93)。なお、ステップS93は、図8のステップS12からステップS23までの処理と同じであるため、ここでの説明は省略する。   Further, after step S92, the line segment correction unit 32 generates an element line segment using the corrected coordinate values, and based on the element line segment, the gradation corresponding to the above-described distance | d | Correction is performed (S93). Note that step S93 is the same as the processing from step S12 to step S23 in FIG. 8, and thus description thereof is omitted here.

そして、ステップS93の後は、表示制御部16が、ストロークの骨格線に含まれる全ての要素線分に対して、上述したステップS92およびS93に基づく処理が行われたか否かを判断する(S94)。   After step S93, the display control unit 16 determines whether or not the processing based on the above-described steps S92 and S93 has been performed on all element line segments included in the skeleton line of the stroke (S94). ).

ステップS94において全ての線分要素に対して処理が行われていないと判断された場合には、再度、ステップS91に戻る。一方、ステップS94において全ての線分要素に対して処理が行われたと判断された場合には、処理を終了し、図7のステップS6に戻る。   If it is determined in step S94 that all line segment elements have not been processed, the process returns to step S91 again. On the other hand, if it is determined in step S94 that all line segment elements have been processed, the process ends and the process returns to step S6 in FIG.

次に、図22のステップS92の詳細について説明する。
図23は、ステップS92における処理の流れを示したフローチャートである。
Next, details of step S92 in FIG. 22 will be described.
FIG. 23 is a flowchart showing a process flow in step S92.

まず、線分補正部32が、要素線分が斜線(つまり、X軸またはY軸に平行でない線)であるか否かを、当該要素線分の始点と終点との座標値から判断する(S101)。   First, the line segment correction unit 32 determines whether or not an element line segment is a diagonal line (that is, a line not parallel to the X axis or the Y axis) from the coordinate values of the start point and end point of the element line segment ( S101).

ステップS101において斜線であると判断された場合には、当該斜線の要素線分の始点および/または終点の補正を行う(S102)。そして、ステップS102の後は、処理を終了する。   If it is determined in step S101 that it is a diagonal line, the start point and / or end point of the diagonal line segment is corrected (S102). Then, after step S102, the process ends.

一方、ステップS101において斜線であると判断されなかった場合には、当該斜線ではない要素線分の始点および/または終点の補正を行う(S103)。そして、ステップS103の後は、処理を終了する。   On the other hand, if it is not determined in step S101 that the line is a diagonal line, the start point and / or end point of the element line segment that is not the diagonal line is corrected (S103). Then, after step S103, the process ends.

次に、図23のステップS102の処理の詳細について説明する。
図24は、ステップS102における処理の流れを示したフローチャートである。つまり、図24は、要素線分L20についての補正の処理の流れを示したフローチャートでもある。
Next, details of the processing in step S102 of FIG. 23 will be described.
FIG. 24 is a flowchart showing the flow of processing in step S102. That is, FIG. 24 is also a flowchart showing the flow of correction processing for the element line segment L20.

まず、表示制御部16が、直前の要素線分が、X軸またはY軸に平行な線分であるか否かを、当該直前の要素線分の始点と終点との座標値に基づき判断する(S111)。なお、表示制御部16は、直前の要素線分がない場合(例えば、要素線分L20の場合)には、平行な線分でないとの判断をする。   First, the display control unit 16 determines whether the immediately preceding element line segment is a line segment parallel to the X axis or the Y axis based on the coordinate values of the start point and the end point of the immediately preceding element line segment. (S111). Note that the display control unit 16 determines that it is not a parallel line segment when there is no immediately preceding element line segment (for example, in the case of the element line segment L20).

ステップS111において平行な線分であると判断された場合には、表示制御部16は、線幅が奇数であるか否かを判断する(S112)。なお、ここでの線幅は、階調補正を行う前の線幅である。一方、ステップS111において平行な線分であると判断されなかった場合には、ステップS117に進む。   When it is determined in step S111 that the line segments are parallel, the display control unit 16 determines whether or not the line width is an odd number (S112). Here, the line width is a line width before gradation correction. On the other hand, if it is not determined in step S111 that the line segments are parallel, the process proceeds to step S117.

ステップS112において奇数であると判断された場合には、表示制御部16は、X軸方向の下限値Xminを、始点を含む画素の中心点の座標のX座標値に設定する(S113)。その後、ステップS115に進む。一方、ステップS112において奇数であると判断されなかった場合には、表示制御部16は、上記下限値Xminを、始点に最も近い上記境界線分のX座標値に設定する(S114)。その後、ステップS115に進む。   If it is determined in step S112 that the number is an odd number, the display control unit 16 sets the lower limit value Xmin in the X-axis direction to the X coordinate value of the coordinates of the center point of the pixel including the start point (S113). Thereafter, the process proceeds to step S115. On the other hand, if it is not determined in step S112 that the number is an odd number, the display control unit 16 sets the lower limit value Xmin to the X coordinate value of the boundary line segment closest to the start point (S114). Thereafter, the process proceeds to step S115.

ステップS115においては、線分補正部32が、始点のX座標値が下限値Xminよりも小さいか否かを判断する。   In step S115, the line segment correction unit 32 determines whether or not the X coordinate value of the starting point is smaller than the lower limit value Xmin.

ステップS115において小さいと判断された場合には、線分補正部32は、X=Xminを満たす直線(つまり、上記仮想線L30)と処理対象となっている要素線分との交点Qの座標値(Xq,Yq)を求めるとともに、始点を(Xq+k,Yq+1)に変更する(S116)。ステップS116の後は、ステップS117に進む。   If it is determined in step S115 that the line segment correction unit 32 is small, the line segment correction unit 32 sets the coordinate value of the intersection point Q between the straight line satisfying X = Xmin (that is, the virtual line L30) and the element line segment to be processed. While obtaining (Xq, Yq), the starting point is changed to (Xq + k, Yq + 1) (S116). After step S116, the process proceeds to step S117.

一方、ステップS115において小さいと判断されなかった場合には、ステップS117に進む。   On the other hand, if it is not determined that the value is small in step S115, the process proceeds to step S117.

ステップS117においては、直後の要素線分が、X軸またはY軸に平行な線分であるか否かを、当該直後の要素線分の始点と終点との座標値に基づき判断する。なお、表示制御部16は、直後の要素線分がない場合には、平行な線分でないとの判断をする。   In step S117, it is determined based on the coordinate values of the start point and end point of the immediately following element line segment whether the immediately following element line segment is a line segment parallel to the X axis or the Y axis. In addition, the display control part 16 judges that it is not a parallel line segment, when there is no element line segment immediately after.

ステップS117において平行な線分であると判断された場合には、表示制御部16は、線幅が奇数であるか否かを判断する(S118)。なお、ここでの線幅は、階調補正を行う前の線幅である。一方、ステップS117において平行な線分であると判断されなかった場合には、処理を終了する。   If it is determined in step S117 that the line segments are parallel, the display control unit 16 determines whether or not the line width is an odd number (S118). Here, the line width is a line width before gradation correction. On the other hand, if it is not determined in step S117 that the line segments are parallel, the process ends.

ステップS118において奇数であると判断された場合には、表示制御部16は、上限値Xmaxを、終点を含む画素の中心点の座標のX座標値に設定する(S119)。その後、ステップS121に進む。一方、ステップS118において奇数であると判断されなかった場合には、表示制御部16は、上限値Xmaxを、終点に最も近い上記境界線分のX座標値に設定する(S120)。その後、ステップS121に進む。   If it is determined in step S118 that the number is an odd number, the display control unit 16 sets the upper limit value Xmax to the X coordinate value of the coordinates of the center point of the pixel including the end point (S119). Thereafter, the process proceeds to step S121. On the other hand, if it is not determined in step S118 that the number is an odd number, the display control unit 16 sets the upper limit value Xmax to the X coordinate value of the boundary line segment closest to the end point (S120). Thereafter, the process proceeds to step S121.

ステップS121においては、線分補正部32が、終点のX座標値が上限値Xmaxよりも大きいか否かを判断する。   In step S121, the line segment correction unit 32 determines whether or not the X coordinate value of the end point is greater than the upper limit value Xmax.

ステップS121において大きいと判断された場合には、線分補正部32は、X=Xmaxを満たす直線(つまり、上記仮想線L30)と処理対象となっている要素線分との交点Qの座標値(Xq,Yq)を求めるとともに、終点を(Xq−k,Yq−1)に変更する(S122)。ステップS122の後は、処理を終了する。   If it is determined in step S121 that the line segment correction unit 32 is large, the line segment correction unit 32 sets the coordinate value of the intersection point Q between the straight line satisfying X = Xmax (that is, the virtual line L30) and the element line segment to be processed. While obtaining (Xq, Yq), the end point is changed to (Xq-k, Yq-1) (S122). After step S122, the process ends.

例えば、要素線分L20に関しては、ステップS122により、終点の補正が行われることになる。   For example, for the element line segment L20, the end point is corrected in step S122.

次に、図23のステップS103の処理の詳細について説明する。
図25は、ステップS103における処理の流れを示したフローチャートである。つまり、図25は、要素線分L21についての補正の処理の流れを示したフローチャートでもある。
Next, details of the processing in step S103 of FIG. 23 will be described.
FIG. 25 is a flowchart showing the flow of processing in step S103. That is, FIG. 25 is also a flowchart showing a correction process flow for the element line segment L21.

まず、表示制御部16が、直前の要素線分が、斜線(つまり、X軸またはY軸に平行でない線分)であるか否かを、当該直前の要素線分の始点と終点との座標値に基づき判断する(S131)。なお、表示制御部16は、直前の要素線分がない場合には、斜線ではないとの判断をする。   First, the display control unit 16 determines whether or not the immediately preceding element line segment is a diagonal line (that is, a line segment that is not parallel to the X axis or the Y axis), and the coordinates between the start point and the end point of the immediately preceding element line segment. A determination is made based on the value (S131). The display control unit 16 determines that there is no diagonal line when there is no immediately preceding element line segment.

ステップS131において斜線であると判断された場合には、表示制御部16は、線幅が奇数であるか否かを判断する(S132)。なお、ここでの線幅は、階調補正を行う前の線幅である。一方、ステップS131において平行な線分であると判断されなかった場合には、ステップS137に進む。   If it is determined in step S131 that the line is shaded, the display control unit 16 determines whether the line width is an odd number (S132). Here, the line width is a line width before gradation correction. On the other hand, if it is not determined in step S131 that the line segments are parallel, the process proceeds to step S137.

ステップS132において奇数であると判断された場合には、表示制御部16は、X軸方向の上限値Xmaxを、始点を含む画素の中心点の座標のX座標値に設定する(S133)。その後、ステップS135に進む。一方、ステップS132において奇数であると判断されなかった場合には、表示制御部16は、上限値Xmaxを、始点に最も近い上記境界線分のX座標値に設定する(S134)。その後、ステップS135に進む。   If it is determined in step S132 that the number is an odd number, the display control unit 16 sets the upper limit value Xmax in the X-axis direction to the X coordinate value of the coordinates of the center point of the pixel including the start point (S133). Thereafter, the process proceeds to step S135. On the other hand, if it is not determined in step S132 that the number is an odd number, the display control unit 16 sets the upper limit value Xmax to the X coordinate value of the boundary line segment closest to the start point (S134). Thereafter, the process proceeds to step S135.

ステップS135においては、線分補正部32が、始点のX座標値が上限値Xmaxよりも大きいか否かを判断する。   In step S135, the line segment correction unit 32 determines whether or not the X coordinate value of the starting point is larger than the upper limit value Xmax.

ステップS135において大きいと判断された場合には、線分補正部32は、X=Xmaxを満たす直線(つまり、上記仮想線L30)と直前の要素線分との交点Qの座標値(Xq,Yq)を求めるとともに、始点のY座標値をYqに変更する(S136)。ステップS136の後は、ステップS137に進む。   If it is determined in step S135 that the value is large, the line segment correction unit 32 sets the coordinate value (Xq, Yq) of the intersection point Q between the straight line satisfying X = Xmax (that is, the virtual line L30) and the immediately preceding element line segment. ) And the Y coordinate value of the starting point is changed to Yq (S136). After step S136, the process proceeds to step S137.

一方、ステップS135において大きいと判断されなかった場合には、ステップS137に進む。   On the other hand, if it is not determined that the value is large in step S135, the process proceeds to step S137.

ステップS137においては、表示制御部16が、直後の要素線分が斜線であるか否かを、当該直後の要素線分の始点と終点との座標値に基づき判断する。なお、表示制御部16は、直後の要素線分がない場合(例えば、要素線分L21の場合)には、斜線でないとの判断をする。   In step S137, the display control unit 16 determines whether or not the immediately following element line segment is a diagonal line based on the coordinate values of the start point and end point of the immediately following element line segment. In addition, the display control part 16 judges that it is not a diagonal line, when there is no element line segment immediately after (for example, in the case of element line segment L21).

ステップS137において斜線であると判断された場合には、表示制御部16は、線幅が奇数であるか否かを判断する(S138)。なお、ここでの線幅は、階調補正を行う前の線幅である。一方、ステップS137において斜線であると判断されなかった場合には、処理を終了する。   If it is determined in step S137 that the line is shaded, the display control unit 16 determines whether the line width is an odd number (S138). Here, the line width is a line width before gradation correction. On the other hand, if it is not determined in step S137 that the line is shaded, the process ends.

ステップS138において奇数であると判断された場合には、表示制御部16は、下限値Xminを、終点を含む画素の中心点の座標のX座標値に設定する(S139)。その後、ステップS141に進む。一方、ステップS138において奇数であると判断されなかった場合には、表示制御部16は、下限値Xminを、終点に最も近い上記境界線分のX座標値に設定する(S140)。その後、ステップS141に進む。   When it is determined in step S138 that the number is an odd number, the display control unit 16 sets the lower limit value Xmin to the X coordinate value of the coordinates of the center point of the pixel including the end point (S139). Thereafter, the process proceeds to step S141. On the other hand, when it is not determined in step S138 that the number is an odd number, the display control unit 16 sets the lower limit value Xmin to the X coordinate value of the boundary line segment closest to the end point (S140). Thereafter, the process proceeds to step S141.

ステップS141においては、線分補正部32が、終点のX座標値が下限値Xminよりも小さいか否かを判断する。   In step S141, the line segment correction unit 32 determines whether or not the X coordinate value of the end point is smaller than the lower limit value Xmin.

ステップS141において小さいと判断された場合には、線分補正部32は、X=Xminを満たす直線(つまり、上記仮想線L30)と直後の要素線分との交点Qの座標値(Xq,Yq)を求めるとともに、終点のY座標値をYqに変更する(S142)。ステップS142の後は、処理を終了する。   When it is determined in step S141 that the line segment correction unit 32 is small, the line segment correction unit 32 coordinates values (Xq, Yq) of the intersection point Q between the straight line satisfying X = Xmin (that is, the virtual line L30) and the immediately following element line segment. ) And the Y coordinate value of the end point is changed to Yq (S142). After step S142, the process ends.

例えば、要素線分L21に関しては、ステップS136により、始点の補正が行われることになる。   For example, for the element line segment L21, the start point is corrected in step S136.

図26は、線分補正部32によって、上記のように要素線分の始点および/または終点を補正した際に表示される文字を示した図である。図26(a)はMの文字を示しており、図26(b)はWの文字を示している。なお、図26(a)および(b)において、白線(線分)は、複数の要素線分が集合して形成された線である。   FIG. 26 is a diagram showing characters displayed when the line segment correction unit 32 corrects the start point and / or end point of the element line segment as described above. FIG. 26A shows the letter M, and FIG. 26B shows the letter W. In FIGS. 26A and 26B, a white line (line segment) is a line formed by collecting a plurality of element line segments.

例えば、図26(a)では、白丸内において、Y軸に平行な要素線分の中心線(仮想線L30に相当)から図面左側にはみ出た領域において、当該平行な要素線分の座標値と、当該線分に連続する斜線の要素線分との座標値が補正されている。   For example, in FIG. 26A, the coordinate values of the parallel element line segments in the area extending from the center line of the element line segment parallel to the Y axis (corresponding to the virtual line L30) to the left side of the drawing in the white circle. The coordinate values with the diagonal element line segments that continue to the line segment are corrected.

また、図26(b)では、白丸内において、Y軸に平行な要素線分の中心線(仮想線L30に相当)から図面右側にはみ出た領域において、当該平行な要素線分の座標値と、当該線分に連続する斜線の要素線分との座標値が補正されている。   In FIG. 26B, in the white circle, the coordinate values of the parallel element line segments in the region protruding from the center line (corresponding to the virtual line L30) of the element line segment parallel to the Y axis to the right side of the drawing. The coordinate values with the diagonal element line segments that continue to the line segment are corrected.

図26(a)および(b)にも示すとおり、線分補正部32を用いた補正により、見た目のよい文字を表示させることが可能となる。   As shown in FIGS. 26A and 26B, it is possible to display characters with good appearance by the correction using the line segment correction unit 32.

また、線分補正部32により要素線分を補正する構成の場合、前もって要素線分の始点および終点を補正する。それゆえ、上述したような上限値や下限値を超えているかといった判断が不要となるため、図15から図18に基づき説明した処理方法よりも、表示に要する時間を短縮することが可能となる。   In the case where the element line segment is corrected by the line segment correcting unit 32, the start point and the end point of the element line segment are corrected in advance. Therefore, since it is not necessary to determine whether the upper limit value or the lower limit value is exceeded as described above, it is possible to reduce the time required for display compared to the processing method described with reference to FIGS. .

ところで、上記においては、例えば図3に示すとおり、要素画素群(画素Paと画素Pbと画素Pcとからなる画素群)に隣接する画素Pdについても階調の補正を行う構成を例に挙げて説明した。しかしながら、これに限定されるものではなく、画素Pdについては階調を補正しない構成であってもよい。また、この場合、画素Paの階調を補正する代わりに、画素Pcの階調を補正する構成としてもよい。   By the way, in the above, as shown in FIG. 3, for example, a configuration in which gradation correction is performed also for the pixel Pd adjacent to the element pixel group (a pixel group including the pixel Pa, the pixel Pb, and the pixel Pc) is given as an example. explained. However, the present invention is not limited to this, and the pixel Pd may be configured not to correct gradation. In this case, instead of correcting the gradation of the pixel Pa, the gradation of the pixel Pc may be corrected.

また、上記では、RGBカラーモデルを用いた構成を例に挙げて説明したが、これに限定されるものではない。加法混色を用いるカラーモデルであればよい。   In the above description, the configuration using the RGB color model has been described as an example. However, the configuration is not limited thereto. Any color model using additive color mixing may be used.

今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。   The embodiment disclosed this time should be considered as illustrative in all points and not restrictive. The scope of the present invention is defined by the terms of the claims, rather than the description above, and is intended to include any modifications within the scope and meaning equivalent to the terms of the claims.

情報処理装置の概略構成を示したブロック図である。It is the block diagram which showed schematic structure of information processing apparatus. 情報処理装置として機能するコンピュータシステムのハードウェア構成を表わすブロック図である。It is a block diagram showing the hardware constitutions of the computer system which functions as an information processing apparatus. 奇数線幅の文字を補正した後の文字の一部分を示した図である。It is the figure which showed a part of character after correcting the character of odd line width. 奇数線幅の文字を補正した後の文字の一部分を示した他の図である。It is another figure which showed a part of character after correcting the character of odd line width. 偶数線幅の文字を補正した後の文字の一部分を示した図である。It is the figure which showed a part of character after correcting the character of even line width. 偶数線幅の文字を補正した後の文字の一部分を示した他の図である。It is the other figure which showed a part of character after correcting the character of even line width. 情報処理装置における処理の流れを示したフローチャートである。It is the flowchart which showed the flow of the process in information processing apparatus. 図7のステップS5の処理の詳細を示したフローチャートである。It is the flowchart which showed the detail of the process of step S5 of FIG. 階調補正の効果を説明するための図であり、(a)は上記階調補正を行っていない場合の文字(一部)を示した図であり、(b)は階調補正を行った場合の文字(一部)とを示した図である。It is a figure for demonstrating the effect of a gradation correction | amendment, (a) is a figure which showed the character (one part) when the said gradation correction is not performed, (b) was the gradation correction performed It is the figure which showed the character (part) in the case. 直接描画方法を行う際の処理の流れを示したフローチャートである。It is the flowchart which showed the flow of the process at the time of performing a direct drawing method. 間接描画方法を行う際の処理の流れの一部を示したフローチャートである。It is the flowchart which showed a part of flow of the process at the time of performing an indirect drawing method. 補正の制限を行った場合に得れる記号の一部を示した図である。It is the figure which showed a part of symbol obtained when the restriction | limiting of correction | amendment was performed. 斜めの要素線分と、当該要素線分に連続する要素線分とを用いて描画した文字の一部分を示した図である。It is the figure which showed a part of character drawn using the diagonal element line segment and the element line segment which continues to the said element line segment. 補正制限部の機能を変更することにより得られる文字の一部分を示した図である。It is the figure which showed a part of character obtained by changing the function of a correction | amendment restriction | limiting part. 1つのストロークを描画する際に用いられる各要素線分を示した図である。It is the figure which showed each element line segment used when drawing one stroke. 図7のステップS5における処理の詳細を示したフローチャートである。It is the flowchart which showed the detail of the process in FIG.7 S5. 図16のステップS55における、上限値と下限値との設定方法を示したフローチャートである。It is the flowchart which showed the setting method of the upper limit and lower limit in step S55 of FIG. 上限値の設定例と、下限値の設定例とを示した図である。It is the figure which showed the example of a setting of an upper limit, and the example of a setting of a lower limit. 線分補正部による補正前の要素線分と、補正後の要素線分とを示した図であって、(a)は補正前の要素線分を示した図であって、(b)は補正後の要素線分を示した図である。It is the figure which showed the element line segment before correction | amendment by the line segment correction | amendment part, and the element line segment after correction | amendment, (a) is the figure which showed the element line segment before correction | amendment, (b) It is the figure which showed the element line segment after correction | amendment. 補正前の要素線分と、補正後の要素線分とを示した図であって、(a)は補正前の要素線分を示した図であって、(b)は補正後の要素線分L20′を示した図である。It is the figure which showed the element line segment before correction | amendment, and the element line segment after correction | amendment, Comprising: (a) is the figure which showed the element line segment before correction | amendment, (b) is the element line after correction | amendment. It is the figure which showed minute L20 '. 補正前の要素線分と、補正後の要素線分とを示した図であって、(a)は補正前の要素線分を示した図であって、(b)は補正後の要素線分を示した図である。It is the figure which showed the element line segment before correction | amendment, and the element line segment after correction | amendment, Comprising: (a) is the figure which showed the element line segment before correction | amendment, (b) is the element line after correction | amendment. It is the figure which showed minutes. 図20および図21に示した要素線分の長さを補正する際の処理の流れを示したフローチャートである。It is the flowchart which showed the flow of the process at the time of correct | amending the length of the element line segment shown in FIG. 20 and FIG. 図22のステップS92における処理の流れを示したフローチャートである。It is the flowchart which showed the flow of the process in step S92 of FIG. 図23のステップS102における処理の流れを示したフローチャートである。It is the flowchart which showed the flow of the process in step S102 of FIG. 図23のステップS103における処理の流れを示したフローチャートである。It is the flowchart which showed the flow of the process in FIG.23 S103. 線分補正部によって要素線分の始点および/または終点を補正した際に表示される文字を示した図であって、(a)はMの文字を示してた図であって、(b)はWの文字を示した図である。FIG. 7 is a diagram showing characters displayed when the start point and / or end point of an element line segment is corrected by the line segment correction unit, (a) is a diagram showing a letter M, (b) Is a diagram showing a letter W. FIG. スケルトンデータのデータ構造を示した図である。It is the figure which showed the data structure of skeleton data. 「木」といった漢字に関するスケルトンデータをデータ構造を示した図である。It is the figure which showed the data structure of the skeleton data regarding kanji, such as "tree". 図28のスケルトンデータを座標平面上に示した図である。It is the figure which showed the skeleton data of FIG. 28 on the coordinate plane. 線分に対して所定の線幅の持たせた例を示した図であって(a)は線幅を奇数とした場合の例を示した図であって、(b)は線幅を偶数とした場合の例を示した図である。It is the figure which showed the example which gave predetermined | prescribed line width with respect to a line segment, (a) is the figure which showed the example at the time of making line width odd, (b) is an even line width FIG.

符号の説明Explanation of symbols

1 情報処理装置、12 記憶装置、13 第1メモリ、14 第2メモリ、15 制御部、16 表示制御部、20 距離算出部、21 階調補正部、22 表示データ生成部、30 平行判定部、31 補正制限部、32 線分補正部。   DESCRIPTION OF SYMBOLS 1 Information processing apparatus, 12 Storage devices, 13 1st memory, 14 2nd memory, 15 Control part, 16 Display control part, 20 Distance calculation part, 21 Gradation correction part, 22 Display data generation part, 30 Parallel determination part, 31 correction restriction unit, 32 line segment correction unit.

Claims (16)

マトリックス状に複数の画素が配された表示画面に、記号を表示させるための情報処理装置であって、
前記記号の骨格を示す情報を記憶する記憶手段を備え、前記骨格を示す情報は、前記骨格を構成する各骨格線の要素である要素線分を示す情報を含み、
前記骨格を示す情報に基づいて、指定された階調および前記マトリックスの行方向または列方向のいずれかにおいて指定された線幅を有するように前記記号を表示する際に、前記複数の画素のうちの表示画素の階調を決定する表示制御手段をさらに備え、
前記表示制御手段は、
前記記号の前記表示画素を構成する画素群の一部であって、前記表示画素が前記線幅の方向に一列に並んだ線幅分の画素群を要素画素群とするとき、前記要素線分と当該要素線分と重なる画素を含んだ前記要素画素群の中心点との前記線幅の方向の距離を、各前記要素画素群について算出する距離算出手段と、
前記中心点を含んだ前記要素画素群に含まれる一方の端部の画素の階調を、前記指定された階調と表示される前記記号の背景の階調との間の階調であって、前記距離算出手段で算出した距離に応じた階調に補正する階調補正手段と、
前記階調補正手段での補正に基づき、前記記号を前記表示画面に表示させるための表示データを生成する表示データ生成手段とを含み、
前記一方の端部の画素は、前記中心点に対して、当該中心点から前記線幅の方向に前記 距離だけ離れた前記要素線分上の点とは反対側に位置する画素である、情報処理装置。
An information processing apparatus for displaying symbols on a display screen in which a plurality of pixels are arranged in a matrix,
Storage means for storing information indicating the skeleton of the symbol, the information indicating the skeleton includes information indicating an element line segment that is an element of each skeleton line constituting the skeleton;
Based on the information indicating the skeleton, when displaying the symbol so as to have a specified gradation and a line width specified in either a row direction or a column direction of the matrix, Display control means for determining the gradation of the display pixels of
The display control means includes
The element line segment is a part of a pixel group constituting the display pixel of the symbol, and the element pixel group is a pixel group corresponding to a line width in which the display pixels are arranged in a line in the line width direction. And a distance calculation means for calculating a distance in the direction of the line width between the element pixel group including a pixel overlapping with the element line segment in the direction of the line width,
The gradation of one end pixel included in the element pixel group including the center point is a gradation between the designated gradation and the gradation of the background of the symbol to be displayed. Gradation correction means for correcting the gradation according to the distance calculated by the distance calculation means;
Based on said correction in the gradation correction section, viewed contains a display data generating means for said symbols to generate display data for displaying on said display screen,
The pixel at the one end is a pixel located on the opposite side to the point on the element line segment that is away from the center point by the distance in the line width direction from the center point. Processing equipment.
前記階調補正手段は、前記補正を行った画素を含んだ要素画素群における他方の端部の 画素と前記線幅の方向に隣接する画素であって、当該要素画素群に含まれていない画素に ついても、前記記号の階調と当該記号の背景の階調との間の階調であって、前記距離算出 手段で算出した距離に応じた階調に補正する、請求項1に記載の情報処理装置。The gradation correcting means is a pixel adjacent to the other end pixel in the element pixel group including the pixel subjected to the correction in the direction of the line width, and not included in the element pixel group. even with the, a gradation between the gradation of the background of the gradation and the symbols of the symbol, you corrected gradation corresponding to the distance calculated by the distance calculating unit, according to claim 1 Information processing device. 前記階調補正手段は、
前記一方の端部の画素については、前記距離が長くなるにつれて、前記記号の階調から 前記背景の階調に近づく補正をし、
前記隣接する画素については、前記距離が長くなるにつれて、前記背景の階調から前記 記号の階調に近づく補正をする、請求項2に記載の情報処理装置。
The gradation correction means includes
For the pixel at the one end, as the distance increases, a correction is made so that the gradation of the symbol approaches the gradation of the background,
The information processing apparatus according to claim 2, wherein the adjacent pixels are corrected so as to approach the gradation of the symbol from the gradation of the background as the distance increases .
複数の前記要素線分に基づき前記記号が表示される場合、各要素線分が、前記行方向ま たは前記列方向と平行な直線であるか否かを、前記骨格線を示した情報に基づいて判定す る平行判定手段と、
前記平行判定手段によって平行であると判定された要素線分と重なる画素を含んだ前記 要素画素群における前記一方の端部の画素と、当該要素画素群における前記他方の端部の 画素と前記線幅の方向に隣接する画素であるとともに当該要素画素群に含まれていない画 素とについては、前記階調補正手段による補正を制限する補正制限手段とを備える、請求項2または3に記載の情報処理装置。
If the symbol based on a plurality of the elements line is displayed, each element line segment, whether the row direction or a said column direction and a straight line parallel to the information showing the skeleton line parallel decision means you determined based,
The pixel at the one end in the element pixel group including pixels overlapping the element line segment determined to be parallel by the parallel determination means, the pixel at the other end in the element pixel group, and the line for a picture element that is not included in the element group of pixels with a pixel adjacent in the direction of width, Ru and a correction limiting means for limiting the correction by the gradation correction means, according to claim 2 or 3 Information processing device.
前記行方向または前記列方向に平行な要素線分と、前記平行な要素線分と連続するとと もに当該要素線分に対して傾きを有する他の要素線分とに基づき前記記号が表示される場 合、前記平行な要素線分と重なる画素を含んだ各要素画素群における各中心点を通る線を 第1仮想線とし、前記他の要素線分と重なる画素を含んだ前記要素画素群における中心点 を通る、前記第1仮想線と垂直な線を第2仮想線とすると、
前記第2仮想線と前記他の要素線分との交点の位置と、前記第1仮想線の位置とが所定 の関係を満たす場合、当該交点と重なる画素を含んだ前記要素画素群における前記一方の 端部の画素と、当該要素画素群に隣接する前記他方の端部の画素についての前記階調補正 手段による階調の補正を制限する補正制限手段を備える、請求項項またはに記載の情報処理装置。
Parallel elements segments in the row direction or the column direction, said symbol based on the other elements line having an inclination relative to the monitor that element segment and for continuous with the parallel element segment appears that case, a line passing through the center point in the containing pixel overlapping with parallel elements line elements pixel group and the first imaginary line, said element pixel group including a pixel overlapping the other element segment When a line perpendicular to the first imaginary line passing through the center point at is a second imaginary line,
When the position of the intersection of the second imaginary line and the other element line segment and the position of the first imaginary line satisfy a predetermined relationship, the one in the element pixel group including pixels overlapping the intersection comprising of a pixel edge, the correction limiting means for limiting the correction of the gradation by the gradation correcting means for a pixel of the other end portion adjacent to the element group of pixels, wherein Koko 2 or 3 Information processing device.
表示画面においてX軸の正方向を前記行方向とし、Y軸の負方向を前記列方向とすると 、前記第1仮想線がY軸と平行であって、かつ前記他の要素線分が前記第1仮想線よりも X軸の負方向側に存在する場合、前記所定の関係は、前記交点のX座標の値が前記第1仮 想線のX座標の値よりも大きいことである、請求項に記載の情報処理装置。 In the display screen, when the positive direction of the X axis is the row direction and the negative direction of the Y axis is the column direction , the first virtual line is parallel to the Y axis and the other element line segment is the first direction. 1 when present in the negative side in the X-axis than the imaginary line, the predetermined relationship, der Ru larger than the value of X-coordinate values of X-coordinate of the intersection point of the first virtual line, wherein Item 6. The information processing device according to Item 5 . 表示画面においてX軸の正方向を前記行方向とし、Y軸の負方向を前記列方向とすると、前記第1仮想線がY軸と平行であって、かつ前記他の要素線分が前記第1仮想線よりもX軸の方向側に存在する場合、前記所定の関係は、前記交点のX座標の値が前記第1仮想線のX座標の値よりも小さいことである、請求項に記載の情報処理装置。In the display screen, when the positive direction of the X axis is the row direction and the negative direction of the Y axis is the column direction, the first virtual line is parallel to the Y axis and the other element line segment is the first direction. 1 when present in the positive direction side of the X-axis than the imaginary line, the predetermined relationship is smaller Ikoto than the value of X-coordinate values of X-coordinate of the intersection point of the first virtual line, claim 5. The information processing apparatus according to 5 . 表示画面においてX軸の正方向を前記行方向とし、Y軸の負方向を前記列方向とすると、前記第1仮想線がX軸と平行であって、かつ、前記他の要素線分が前記第1仮想線よりもY軸の方向側に存在する場合、前記所定の関係は、前記交点の座標の値が前記第1仮想線の座標の値よりも大きいことである、請求項に記載の情報処理装置。In the display screen, when the positive direction of the X axis is the row direction and the negative direction of the Y axis is the column direction, the first imaginary line is parallel to the X axis, and the other element line segments are the when than the first virtual line exists in the negative side in the Y-axis, said predetermined relationship is a magnitude Ikoto than the value of the Y coordinate of the intersection of the Y-coordinate values of the first virtual line, wherein Item 6. The information processing device according to Item 5 . 表示画面においてX軸の正方向を前記行方向とし、Y軸の負方向を前記列方向とすると、前記第1仮想線がX軸と平行であって、かつ、前記他の要素線分が前記第1仮想線よりもY軸の方向側に存在する場合、前記所定の関係は、前記交点のY座標の値が前記第1仮想線のY座標の値よりも小さいことである、請求項に記載の情報処理装置。In the display screen, when the positive direction of the X axis is the row direction and the negative direction of the Y axis is the column direction, the first imaginary line is parallel to the X axis, and the other element line segments are the when than the first virtual line exists in the positive direction side of the Y-axis, the predetermined relationship is smaller Ikoto than the value of the Y-coordinate value of the Y coordinate of the intersection point of the first virtual line, wherein Item 6. The information processing device according to Item 5 . 前記行方向または前記列方向に平行な要素線分と、前記平行な要素線分と連続するとと もに当該要素線分に対して傾きを有する他の要素線分とに基づき前記記号が表示される場 合、前記平行な要素線分と重なる画素を含んだ各要素画素群における各中心点を通る線を 第1仮想線とすると、
前記第1要素線分と重なる画素に前記第1仮想線が重なっており、かつ前記第1仮想線 と前記第2要素線分とが交わる場合、前記第2要素線分の長さを、当該交わった点を含む 画素に隣接する画素までしか達しない長さに補正するとともに、前記第1要素線分の長さ を、前記交わった点を含む画素まで達する長さに補正する要素線分補正手段を備える、請求項2または3に記載の情報処理装置。
Parallel elements segments in the row direction or the column direction, said symbol based on the other elements line having an inclination relative to the monitor that element segment and for continuous with the parallel element segment appears that case, when a line passing through the center point in the containing pixel overlapping with parallel elements line elements pixels is defined as a first virtual line,
When the first imaginary line overlaps a pixel that overlaps the first element line segment, and the first imaginary line and the second element line segment intersect, the length of the second element line segment is An element line correction that corrects the length to reach only the pixel adjacent to the pixel including the intersecting point and corrects the length of the first element line segment to the length reaching the pixel including the intersecting point. Ru comprising means, information processing apparatus according to claim 2 or 3.
前記記号は、加法混色により色が決定されるものであり、
前記階調補正手段は、前記加法混色の原色のそれぞれについて画素値を補正することに より前記階調の補正を行う、請求項1から3のいずれか1項に記載の情報処理装置。
The symbol is a color determined by additive color mixture,
It said gradation correction means performs more correction of the gradation correcting the pixel value for each of the primary colors of the additive color, the information processing apparatus according to any one of claims 1 to 3.
マトリックス状に複数の画素が配された表示画面に、記号を表示させるための情報処理 装置であって、
記憶装置に記憶された前記記号の骨格を示す情報に基づいて、指定された階調および前 記マトリックスの行方向または列方向のいずれかにおいて指定された線幅を有するように 前記表示画面に前記記号を表示する際に、前記複数の画素のうちの表示画素の階調を決定 する表示制御手段を備え、前記骨格を示す情報は、前記骨格を構成する各骨格線の要素で ある要素線分を示す情報を含み、
前記表示制御手段は、
前記要素線分として、前記行方向または前記列方向と平行な第1要素線分と、当該第1 要素線分と連続するとともに当該第1要素線分に対して傾きを有する第2要素線分とを含 む前記記号を表示する際に、前記指定された階調を補正する階調補正手段を含み、
前記階調補正手段は、前記記号の前記表示画素を構成する画素群の一部であって、前記 第1要素線分と前記第2要素線分との交点と重なる画素を含んだ前記線幅の方向に連続し た前記線幅分の画素群を要素画素群とすると、当該要素画素群における端部の画素に前記 線幅の方向に隣接する画素であるとともに当該要素画素群に含まれていない画素であって 、前記連続した両要素線分により形成される角度のうち優角側の領域の画素については、 前記階調の補正を行わない、情報処理装置。
An information processing apparatus for displaying symbols on a display screen in which a plurality of pixels are arranged in a matrix ,
Based on the information indicating the framework of the symbols stored in the storage device, the said display screen so as to have a specified line width in any row or column direction of the designated gradation and before Symbol Matrix A display control means for determining a gradation of a display pixel of the plurality of pixels when displaying a symbol, and the information indicating the skeleton is an element line segment that is an element of each skeleton line constituting the skeleton; Including information indicating
The display control means includes
As the element line segment, a first element line segment parallel to the row direction or the column direction, and a second element line segment that is continuous with the first element line segment and has an inclination with respect to the first element line segment. preparative when displaying including said symbol comprises a gradation correction means for correcting the specified gradation,
The gradation correction means includes the line width including a pixel that is a part of a group of pixels constituting the display pixel of the symbol and overlaps an intersection of the first element line segment and the second element line segment. If the pixel group corresponding to the line width continuous in the direction is the element pixel group, it is a pixel adjacent to the end pixel in the element pixel group in the line width direction and included in the element pixel group. An information processing apparatus that does not perform the gradation correction for pixels in a region on the dominant angle side among the angles formed by the two continuous element line segments .
マトリックス状に複数の画素が配された表示画面に、記号を表示させるための情報処理装置であって、
記憶装置に記憶された前記記号の骨格を示す情報に基づいて、指定された階調および前記マトリックスの行方向または列方向のいずれかにおいて指定された線幅を有するように前記表示画面に前記記号を表示する際に、前記複数の画素のうちの表示画素の階調を決定する表示制御手段を備え、前記骨格を示す情報は、前記骨格を構成する各骨格線の要素である要素線分を示す情報を含み、
前記表示制御手段は、
前記要素線分として、前記行方向または前記列方向と平行な第1要素線分と、当該第1要素線分と連続するとともに当該第1要素線分に対して傾きを有する第2要素線分とを含む前記記号を表示する際に、前記指定された階調を補正する階調補正手段を含み、
前記階調補正手段は、前記第1要素線分と前記第2要素線分との交点と重なる画素に関 して前記線幅の方向に配された画素であって、前記連続した両要素線分により形成される 角度のうち優角側の領域の画素については、線幅を太くするような階調の補正を行わない、情報処理装置。
An information processing apparatus for displaying symbols on a display screen in which a plurality of pixels are arranged in a matrix,
Based on the information indicating the skeleton of the symbol stored in the storage device, the symbol is displayed on the display screen so as to have a specified gradation and a specified line width in either the row direction or the column direction of the matrix. Display control means for determining a gradation of a display pixel among the plurality of pixels, and the information indicating the skeleton includes element line segments that are elements of the skeleton lines constituting the skeleton. Including information to indicate,
The display control means includes
As the element line segment, a first element line segment parallel to the row direction or the column direction, and a second element line segment that is continuous with the first element line segment and has an inclination with respect to the first element line segment. A gradation correcting means for correcting the designated gradation when displaying the symbol including:
Said gradation correction means is a pixels arranged in the direction of the line width to about the pixel which overlaps with the intersection between the second element segment and the first element line, both elements line the continuous An information processing apparatus that does not perform gradation correction such that the line width is increased for pixels in a region on the dominant angle side among angles formed by minutes .
前記表示制御手段は、
前記記号の前記表示画素を構成する画素群の一部であって、前記表示画素が前記線幅の 方向に一列に並んだ線幅分の画素群を要素画素群とするとき、前記要素線分と当該要素線 分と重なる画素を含んだ前記要素画素群の中心点との前記線幅の方向の距離を、各前記要 素画素群について算出する距離算出手段を、さらに備え、
前記階調補正手段は、前記要素画素群の一方の端部の画素と、当該要素画素群に隣接す る他方の端部の画素と前記線幅の方向に隣接する画素であるとともに当該要素画素群に含 まれていない画素については、前記指定された階調と表示される前記記号の背景の階調と の間の階調であって、前記距離算出手段で算出した距離に応じた階調に補正する、請求項 12または13に記載の情報処理装置。
The display control means includes
The element line segment is a part of a pixel group constituting the display pixel of the symbol, and the element pixel group is a pixel group corresponding to a line width in which the display pixels are arranged in a line in the line width direction. and the direction of length of the line width between the center of the element line partial overlaps said element pixel group containing the pixel, the distance calculating means for calculating for each said main Motoga pixel group further comprises,
Said gradation correction means includes a pixel at one end of said element pixel groups, the element pixel with a pixel adjacent in the direction of the pixel and the line width of the other end you adjacent to the element group of pixels tone for a pixel not included in the group, a gradation between the gradation of the background of the symbols displayed as the designated gradations, according to the distance calculated by said distance calculation means The information processing apparatus according to claim 12 or 13, wherein the information processing apparatus corrects to
記号の骨格を示した情報に基づき、マトリックス状に画素が配された表示画面に、指定 された階調および前記マトリックスの行方向または列方向のいずれかにおいて指定された 線幅を有する記号を表示させる情報処理方法であって、
前記記号の表示画素を構成する画素群の一部であって、前記表示画素が前記線
幅の方向に一列に並んだ線幅分の画素群を要素画素群とするとき、前記骨格を構成する骨 格線の要素である要素線分と、当該要素線分と重なる表示画素を含んだ前記要素画素群に おける中心点との、前記線幅の方向における距離を算出する距離算出ステップと、
前記中心点を含んだ前記要素画素群に含まれる一方の端部の画素の階調を、前記記号の 階調と当該記号の背景の階調との間の階調であって、前記距離算出ステップで算出した距 離に応じた階調に補正する階調補正ステップと、
前記階調補正ステップで補正した後の記号を、前記表示画面に表示させる表示ステップ とを含み、
前記一方の端部の画素は、前記中心点に対して、当該中心点から前記線幅の方向に前記 距離だけ離れた前記要素線分上の点とは反対側に位置する画素である、情報処理方法
Based on the information indicating the skeleton of the symbol, a symbol having a specified gradation and a specified line width in either the row direction or the column direction of the matrix is displayed on a display screen in which pixels are arranged in a matrix. An information processing method for causing
A part of a pixel group constituting a display pixel of the symbol, wherein the display pixel is the line
When the group of pixels lined line width of in a row in the direction of the width component pixel group, including the element segment is an element of skeletal lines constituting the framework, a display pixel which overlaps with the element segment a distance calculation step of calculating the center point definitive in the element group of pixels, the distance in the direction of the line width,
The gradation of one end pixel included in the element pixel group including the center point is a gradation between the gradation of the symbol and the background gradation of the symbol, and the distance calculation and gradation correction step of correcting the gradation corresponding to distance calculated in step,
A display step of displaying the symbol after the correction in the gradation correction step on the display screen ,
The pixel at the one end is a pixel located on the opposite side to the point on the element line segment that is away from the center point by the distance in the line width direction from the center point. Processing method .
請求項15に記載の情報処理方法をコンピュータに実行させるためのプログラム A program for causing a computer to execute the information processing method according to claim 15 .
JP2008048398A 2008-02-28 2008-02-28 Information processing apparatus, information processing method, and program Expired - Fee Related JP4361118B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP2008048398A JP4361118B2 (en) 2008-02-28 2008-02-28 Information processing apparatus, information processing method, and program
CN200980106789.6A CN101960512A (en) 2008-02-28 2009-02-20 Information processing device, information processing method, and program
PCT/JP2009/053019 WO2009107554A1 (en) 2008-02-28 2009-02-20 Information processing device, information processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008048398A JP4361118B2 (en) 2008-02-28 2008-02-28 Information processing apparatus, information processing method, and program

Publications (2)

Publication Number Publication Date
JP2009204989A JP2009204989A (en) 2009-09-10
JP4361118B2 true JP4361118B2 (en) 2009-11-11

Family

ID=41015951

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008048398A Expired - Fee Related JP4361118B2 (en) 2008-02-28 2008-02-28 Information processing apparatus, information processing method, and program

Country Status (3)

Country Link
JP (1) JP4361118B2 (en)
CN (1) CN101960512A (en)
WO (1) WO2009107554A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE112011105830B4 (en) * 2011-11-09 2017-03-30 Mitsubishi Electric Corp. Drawing device and drawing program
JP5255132B2 (en) * 2012-01-18 2013-08-07 シャープ株式会社 Multi-tone character display method, multi-tone character display device, multi-tone character display program, television receiver equipped with multi-tone character display device, and mobile phone equipped with multi-tone character display device machine
DE112012006274B4 (en) 2012-04-27 2018-08-23 Mitsubishi Electric Corporation Character drawing apparatus and character drawing method
JPWO2016031006A1 (en) 2014-08-28 2017-04-27 Necディスプレイソリューションズ株式会社 Display device, gradation correction map generation apparatus, gradation correction map generation method, and program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0720845A (en) * 1993-06-18 1995-01-24 Nec Home Electron Ltd Multi-gradational character generating device
JPH08138067A (en) * 1994-11-15 1996-05-31 Fujitsu Ltd Line segment anti-aliasing device
JP4059438B2 (en) * 2003-07-02 2008-03-12 シャープ株式会社 Graphic or character display device, display method, display program, and recording medium recording the display program
JP4079268B2 (en) * 2003-07-03 2008-04-23 シャープ株式会社 Character display device, character display method, character display program, and readable recording medium

Also Published As

Publication number Publication date
JP2009204989A (en) 2009-09-10
CN101960512A (en) 2011-01-26
WO2009107554A1 (en) 2009-09-03

Similar Documents

Publication Publication Date Title
JP5031954B2 (en) Display device, display method, and recording medium recording display control program
JP4598367B2 (en) Method and apparatus for rendering subcomponent oriented characters in an image displayed on a display device
CN110502205B (en) Picture display edge processing method and device, electronic equipment and readable storage medium
US6437793B1 (en) System for rapidly performing scan conversion with anti-aliasing upon outline fonts and other graphic elements
CN105930464B (en) Web rich media cross-screen adaptation method and device
JP3833212B2 (en) Image processing apparatus, image processing program, and readable recording medium
JP4361118B2 (en) Information processing apparatus, information processing method, and program
JP4370438B2 (en) Vector image drawing apparatus, vector image drawing method and program
JP4719603B2 (en) Drawing apparatus and broken line drawing method
JP6980913B2 (en) Learning device, image generator, learning method, image generation method and program
US7660012B2 (en) Gradation image forming apparatus and gradation image forming method
JP4079268B2 (en) Character display device, character display method, character display program, and readable recording medium
EP0062669A1 (en) Graphic and textual image generator for a raster scan display.
US6570562B1 (en) Method for drawing patterned lines in a system supporting off-screen graphics
US8907955B2 (en) Vector image drawing device, vector image drawing method, and recording medium
JP3827318B2 (en) Character / graphic display device, program, and recording medium
JPH1021377A (en) Image processor
JP2939159B2 (en) Apparatus and method for aligning handwritten characters
JP3324580B2 (en) Image processing device
JP4666480B2 (en) Line drawing device
JP2008111954A (en) Display controller, display control program and recording medium recorded with display control program
JP2713249B2 (en) Image display device
JP2004078994A (en) Drawing method
CN112289274A (en) Display method and device
JP2004227338A (en) Device, method and program for processing image, and electronic device system

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090210

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090210

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090519

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090623

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090804

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090811

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120821

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120821

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130821

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees