JP2002132245A - Character drawing apparatus - Google Patents

Character drawing apparatus

Info

Publication number
JP2002132245A
JP2002132245A JP2000322310A JP2000322310A JP2002132245A JP 2002132245 A JP2002132245 A JP 2002132245A JP 2000322310 A JP2000322310 A JP 2000322310A JP 2000322310 A JP2000322310 A JP 2000322310A JP 2002132245 A JP2002132245 A JP 2002132245A
Authority
JP
Japan
Prior art keywords
character
density
image storage
unit
calculation
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.)
Pending
Application number
JP2000322310A
Other languages
Japanese (ja)
Inventor
Masaji Osono
正司 大園
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2000322310A priority Critical patent/JP2002132245A/en
Publication of JP2002132245A publication Critical patent/JP2002132245A/en
Pending legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)

Abstract

PROBLEM TO BE SOLVED: To draw a bit map font at a high speed in a character drawing apparatus. SOLUTION: This apparatus has a first drawing means 2 which draws characters by forming the density patterns meeting the density of the characters and performing mask processing with a font bit map and a second drawing means 3 for drawing the font bit map as it is and selects either of the drawing means according to a density value.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、文字を高速に描画
する文字描画装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character drawing device for drawing characters at high speed.

【0002】[0002]

【従来の技術】以下、従来の文字描画装置について、図
19を用いて説明する。
2. Description of the Related Art A conventional character drawing apparatus will be described below with reference to FIG.

【0003】まず、濃度パターン作成手段201におい
て、文字の濃度に応じた二値の濃度パターンを作成す
る。その後、演算手段202において、濃度パターンと
文字形状を表現した二値の形状パターンと、画像記憶手
段203に記憶されている二値の画像データとの演算を
行い、演算結果を画像記憶手段203に記憶する。
First, a density pattern creating means 201 creates a binary density pattern corresponding to the density of a character. Thereafter, the arithmetic unit 202 performs an arithmetic operation on the binary shape pattern expressing the density pattern and the character shape and the binary image data stored in the image storage unit 203, and stores the calculation result in the image storage unit 203. Remember.

【0004】演算手段202における演算は、濃度パタ
ーンをD、形状パターンをF、画像記憶手段203に記
憶された画像データをB、演算結果をB’とすると、以
下のようになる。
The calculation by the calculation means 202 is as follows, where D is the density pattern, F is the shape pattern, B is the image data stored in the image storage means 203, and B 'is the calculation result.

【0005】B’= 〜F&B|F&D ただし、「〜」は否定、「&」は論理積、「|」は論理
和とする。
B '= 〜F & B | F & D Here, “〜” is negated, “&” is a logical product, and “|” is a logical sum.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、前述の
ような従来の技術においては、文字の描画に複雑な論理
演算が必要であり、処理速度が低下してしまうという問
題がある。また、濃度から濃度パターンを作成する処理
も速度を低下させる一因となっている。
However, in the above-mentioned prior art, there is a problem that a complicated logical operation is required to draw a character, and the processing speed is reduced. The process of creating a density pattern from the density also contributes to a reduction in speed.

【0007】そこで、本発明は、論理演算回数および濃
度パターン作成処理を削減することにより、高速に文字
描画することのできる文字描画装置を提供することを目
的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to provide a character drawing device capable of drawing characters at high speed by reducing the number of logical operations and the process of creating a density pattern.

【0008】[0008]

【課題を解決するための手段】この課題を解決するため
に、本発明の文字描画装置は、二値の画像データを記憶
する画像記憶手段と、二値の濃度パターンを文字の濃度
値に応じて作成し、濃度パターンと文字の形状を示した
二値の形状ビットマップと画像記憶手段に記憶された二
値の画像データとの演算を行い、演算結果を画像記憶手
段に記憶させる第1の描画手段と、文字の形状を示した
二値の形状ビットマップと画像記憶手段に記憶された二
値の画像データとを演算し、その演算結果を画像記憶手
段に記憶させる第2の描画手段と、文字の濃度値に応じ
て、第1の描画手段、または第2の描画手段の何れかを
選択する選択手段とを有する構成としたものである。
In order to solve this problem, a character drawing apparatus according to the present invention comprises: an image storage means for storing binary image data; and a binary density pattern corresponding to a character density value. A binary shape bitmap indicating the density pattern and the character shape and the binary image data stored in the image storage means, and storing the calculation result in the image storage means. Drawing means, a second drawing means for calculating a binary shape bitmap indicating the shape of a character and binary image data stored in the image storage means, and storing the calculation result in the image storage means; , And a selecting means for selecting either the first drawing means or the second drawing means in accordance with the density value of the character.

【0009】これにより、論理演算回数および濃度パタ
ーン作成処理を削減し、高速に文字を描画することがで
きる。
As a result, the number of logical operations and the density pattern creation processing can be reduced, and characters can be drawn at high speed.

【0010】また、この課題を解決するために、本発明
の文字描画装置は、カラー描画の際には、前記選択手段
がプレーン毎に第1の描画手段、または第2の描画手段
の何れかを選択するものである。
In order to solve this problem, in the character drawing apparatus of the present invention, when performing color drawing, the selection means may be provided for each of the first drawing means or the second drawing means for each plane. Is to select.

【0011】これにより、カラー描画の場合であっても
論理演算回数および濃度パターン作成処理を削減し、高
速に文字を描画することができる。
Thus, even in the case of color drawing, the number of logical operations and the density pattern creation processing can be reduced, and characters can be drawn at high speed.

【0012】さらに、この課題を解決するために、本発
明の文字描画装置は、二値の画像データを記憶する画像
記憶手段と、文字の濃度値に応じて演算方法を指示する
演算指示手段と、前記演算指示手段によって指示された
演算に文字の濃度値に応じた二値の濃度パターンが必要
か否かを判定し、必要である場合に二値の濃度パターン
を作成するパターン作成手段と、文字の形状を示した二
値の形状パターンと前記画像記憶手段に記憶された二値
の画像データとを演算し、その演算結果を前記画像記憶
手段に記憶させる演算手段とを有した構成としたもであ
る。
Further, in order to solve this problem, a character drawing apparatus according to the present invention comprises: an image storage means for storing binary image data; and an operation instructing means for instructing an arithmetic method in accordance with a character density value. Pattern creation means for determining whether or not a binary density pattern corresponding to the density value of a character is required for the calculation instructed by the calculation instructing means, and creating a binary density pattern if necessary; A configuration in which a binary shape pattern indicating the shape of a character is calculated and binary image data stored in the image storage unit, and a calculation unit that stores the calculation result in the image storage unit; Also.

【0013】これにより、論理演算回数および濃度パタ
ーン作成処理を削減し、高速に文字を描画することがで
きる。
Thus, the number of logical operations and the density pattern creation processing can be reduced, and characters can be drawn at high speed.

【0014】また、この課題を解決するために、本発明
の文字描画装置は、カラー描画の場合に、前記演算指示
手段がプレーン毎に演算方法を指示し、前記第1、第2
の描画手段がプレーン毎に演算し、その演算結果を画像
記憶手段に記憶させるものである。
According to another aspect of the present invention, there is provided a character drawing apparatus according to the present invention, wherein in the case of color drawing, the calculation instruction means specifies a calculation method for each plane, and
Is calculated for each plane, and the calculation result is stored in the image storage means.

【0015】これにより、カラー描画の場合においても
論理演算回数および濃度パターン作成処理を削減し、高
速に文字を描画することができる。
Thus, even in the case of color drawing, the number of logical operations and the density pattern creation processing can be reduced, and characters can be drawn at high speed.

【0016】[0016]

【発明の実施の形態】本発明の請求項1記載の発明は、
二値の画像データを記憶する画像記憶手段と、二値の濃
度パターンを文字の濃度値に応じて作成し、濃度パター
ンと文字の形状を示した二値の形状ビットマップと画像
記憶手段に記憶された二値の画像データとの演算を行
い、演算結果を画像記憶手段に記憶させる第1の描画手
段と、文字の形状を示した二値の形状ビットマップと画
像記憶手段に記憶された二値の画像データとの演算を行
い、演算結果を画像記憶手段に記憶させる第2の描画手
段と、文字の濃度値に応じて第1の描画手段または第2
の描画手段の何れかを選択する選択手段とを備えたこと
を特徴とする文字描画装置であり、論理演算回数および
濃度パターン作成処理を削減するという作用を有する。
BEST MODE FOR CARRYING OUT THE INVENTION
Image storage means for storing binary image data, and a binary density pattern created in accordance with the density value of the character, and stored in the image storage means and a binary shape bitmap indicating the density pattern and the shape of the character A first drawing unit for performing an operation on the binary image data thus obtained and storing the operation result in the image storage unit; and a binary shape bitmap indicating the shape of the character and the binary image data stored in the image storage unit. A second drawing unit for performing a calculation with the image data of the value and storing the calculation result in the image storage unit; and a first drawing unit or a second drawing unit according to the density value of the character.
And a selecting means for selecting any one of the drawing means, and has an effect of reducing the number of logical operations and the density pattern creation processing.

【0017】本発明の請求項2記載の発明は、請求項1
記載の発明において、カラー描画の際には、選択手段が
プレーン毎に第1の描画手段、または第2の描画手段の
何れかを選択することを特徴とする文字描画装置であ
り、カラー描画の場合でも論理演算回数および濃度パタ
ーン作成処理を削減するという作用を有する。
The second aspect of the present invention is the first aspect.
In the invention described in the above, the character drawing device is characterized in that the selection means selects either the first drawing means or the second drawing means for each plane when performing color drawing. Even in this case, there is an effect that the number of logical operations and the density pattern creation processing are reduced.

【0018】本発明の請求項3記載の発明は、二値の画
像データを記憶する画像記憶手段と、文字の濃度値に応
じて演算方法を指示する演算指示手段と、演算指示手段
によって指示された演算に文字の濃度値に応じた二値の
濃度パターンが必要か否かを判定し、必要である場合に
二値の濃度パターンを作成するパターン作成手段と、文
字の形状を示した二値の形状パターンと画像記憶手段に
記憶された二値の画像データとを演算し、その演算結果
を画像記憶手段に記憶させる演算手段とを備えたことを
特徴とする文字描画装置であり、論理演算回数および濃
度パターン作成処理を削減するという作用を有する。
According to a third aspect of the present invention, there is provided image storage means for storing binary image data, operation instruction means for instructing an operation method in accordance with the density value of a character, and operation instruction means. A pattern creating means for determining whether or not a binary density pattern corresponding to the character density value is necessary for the calculation, and creating a binary density pattern if necessary; and a binary indicating the shape of the character. And a calculating means for calculating the shape pattern of the image and the binary image data stored in the image storage means, and storing the calculation result in the image storage means. This has the effect of reducing the number of times and density pattern creation processing.

【0019】本発明の請求項4記載の発明は、請求項3
記載の発明において、カラー描画の場合には、演算指示
手段がプレーン毎に演算方法を指示し、第1、第2の描
画手段がプレーン毎に演算し、その演算結果を画像記憶
手段に記憶させることを特徴とする文字描画装置であ
り、カラー描画の場合においても同様に、論理演算回数
および濃度パターン作成処理を削減するという作用を有
する。
The invention according to claim 4 of the present invention is the invention according to claim 3.
In the invention described above, in the case of color drawing, the operation instructing unit instructs an operation method for each plane, the first and second drawing units operate for each plane, and the operation result is stored in the image storage unit. This is a character drawing apparatus characterized in that it also has the effect of reducing the number of logical operations and the density pattern creation processing in the case of color drawing.

【0020】以下、本発明の実施の形態について、図1
から図12を用いて説明する。なお、これらの図面にお
いて同一の部材には同一の符号を付しており、また、重
複した説明は省略されている。
FIG. 1 shows an embodiment of the present invention.
This will be described with reference to FIG. In these drawings, the same members are denoted by the same reference numerals, and duplicate description is omitted.

【0021】(実施の形態1)図1は本発明の実施の形
態1における文字描画装置のブロック図、図2は同第1
の描画手段のブロック図、図3は同第2の描画手段3の
ブロック図、図4は同形状パターンの一例を示す説明
図、図5は、同画像記憶手段に記憶された画像データの
一例を示す説明図、図6は濃度が128の場合の描画結
果を示す説明図、図7は濃度が255の場合の描画結果
を示す説明図、図8は濃度が0の場合の描画結果を示す
説明図、図9は本発明の実施の形態1における文字描画
装置を用いた印刷装置のブロック図、図10は図9の印
刷装置に設けられた画像展開手段のブロック図、図11
は図9の印刷装置における動作のフローチャート、図1
2は本発明の実施の形態1における文字描画装置の動作
フローチャートである。
(Embodiment 1) FIG. 1 is a block diagram of a character drawing apparatus according to Embodiment 1 of the present invention, and FIG.
FIG. 3 is a block diagram of the second drawing means 3, FIG. 4 is an explanatory diagram showing an example of the same shape pattern, and FIG. 5 is an example of image data stored in the image storage means. , FIG. 6 is an explanatory diagram showing a drawing result when the density is 128, FIG. 7 is an explanatory diagram showing a drawing result when the density is 255, and FIG. 8 is a drawing result when the density is 0. FIG. 9 is a block diagram of a printing device using the character drawing device according to the first embodiment of the present invention. FIG. 10 is a block diagram of an image expanding unit provided in the printing device of FIG.
1 is a flowchart of the operation in the printing apparatus of FIG.
2 is an operation flowchart of the character drawing apparatus according to Embodiment 1 of the present invention.

【0022】本実施の形態1において、文字描画装置
は、図1に示すように、選択手段1、第1の描画手段
2、第2の描画手段3、ならびに画像記憶手段4から構
成されている。
In the first embodiment, as shown in FIG. 1, the character drawing apparatus comprises a selection unit 1, a first drawing unit 2, a second drawing unit 3, and an image storage unit 4. .

【0023】選択手段1は、文字の濃度が0、または2
25か否かを判定し、第1、第2の描画手段のいずれか
から1つを選択する。ここで、文字描画の濃度値は0か
ら255までとする。第1の描画手段2は、濃度が0ま
たは255以外の場合に文字の描画を行う。第1の文字
描画手段3は、濃度が0または255の場合に文字の描
画を行う。画像記憶手段4は、二値の画像データを記憶
する。
The selection means 1 determines whether the character density is 0 or 2
It is determined whether the number is 25 or not, and one of the first and second drawing means is selected. Here, the density value for character drawing is from 0 to 255. The first drawing means 2 draws a character when the density is other than 0 or 255. The first character drawing means 3 draws a character when the density is 0 or 255. The image storage means 4 stores binary image data.

【0024】また、第1の描画手段2、および第3の描
画手段の構成について説明する。
The structure of the first drawing means 2 and the third drawing means will be described.

【0025】第1の描画手段2は、図2に示すように、
濃度パターン作成手段5、ならびに第1の演算手段6か
ら構成されている。濃度パターン作成手段5は、濃度に
応じて二値の濃度パターンを作成する。第1の演算手段
6は、濃度パターンと文字の形状を示した二値の形状パ
ターンを用いて文字を描画するための演算を行う。
The first drawing means 2, as shown in FIG.
It comprises a density pattern creating means 5 and a first calculating means 6. The density pattern creating means 5 creates a binary density pattern according to the density. The first calculation means 6 performs a calculation for drawing a character using a density pattern and a binary shape pattern indicating the shape of the character.

【0026】さらに、第2の描画手段3は、図3に示す
ように、第2の演算手段7から構成されており、この第
2の演算手段7は、画像記憶手段4に文字を描画するた
めの演算を行う。
Further, as shown in FIG. 3, the second drawing means 3 comprises a second calculation means 7, which draws a character in the image storage means 4. Calculation for

【0027】ここで、第1の描画手段2の処理について
さらに詳しく説明する。
Here, the processing of the first drawing means 2 will be described in more detail.

【0028】以下、形状パターンは、描画する画素を
「1」、描画しない画素を「0」とした2形状パターン
として表現されているものとする。
Hereinafter, it is assumed that the shape pattern is expressed as a two-shape pattern in which a pixel to be drawn is “1” and a pixel not to be drawn is “0”.

【0029】なお、説明のため、形状パターンとして図
4の図形を、画像記憶手段4に記憶されている画像デー
タとして図5の図形を用いる。図4、および図5におい
ては、値が「1」の画素を黒、値が「0」の画素を白と
して表現しており、濃度パターンをD、形状パターンを
F、画像記憶手段4の画像データをB、演算結果をB’
とする。
For the sake of explanation, the figure shown in FIG. 4 is used as a shape pattern, and the figure shown in FIG. 5 is used as image data stored in the image storage means 4. 4 and 5, a pixel having a value of “1” is represented as black, a pixel having a value of “0” is represented as white, a density pattern is D, a shape pattern is F, B for data and B 'for calculation result
And

【0030】まず、濃度パターン作成手段5が、濃度に
応じた濃度パターンを作成する。たとえば、濃度が12
8のときに作成される濃度パターンは、値が「1」の画
素が全領域の50%になるようなパターンである。
First, the density pattern creating means 5 creates a density pattern corresponding to the density. For example, if the concentration is 12
The density pattern created in the case of 8 is a pattern in which pixels having a value of “1” are 50% of the entire area.

【0031】ここでは、濃度パターンDを以下のように
する。
Here, the density pattern D is as follows.

【0032】 D = 0011 0011 0011 0011 (式1) 第1の演算手段6の演算は、以下の式になる。D = 0011 0011 0011 0011 (Equation 1) The operation of the first operation means 6 is as follows.

【0033】 B’= B&(〜F)|D&F (式2) また、図4の破線内部領域、および図5の破線内部領域
がそれぞれ以下の式で表現できるとする。
B ′ = B & (〜F) | D & F (Equation 2) Further, it is assumed that the area inside the broken line in FIG. 4 and the area inside the broken line in FIG. 5 can be expressed by the following equations, respectively.

【0034】 F = 0011 1110 0000 0000 (式3) B = 0001 0101 0101 0100 (式4) (式1)(式3)(式4)および(式2)よりB’は以
下の値となる。
F = 0011 1110 0000 0000 (Equation 3) B = 0001 0101 0101 0100 (Equation 4) According to (Equation 1), (Equation 3), (Equation 4) and (Equation 2), B ′ is the following value.

【0035】 B’= 0011 0001 0101 0100 (式5) 以上の処理を、図4、ならびに図5全体に対して行った
結果を図6に示す。
B ′ = 0011 0001 0101 0100 (Equation 5) FIG. 6 shows the result of performing the above processing on FIGS. 4 and 5 as a whole.

【0036】式5、および図6より明らかなように、形
状パターンFにおいて値が「1」の画素は濃度が128
に対応した濃度パターンで描画され、値が「0」の画素
は画像記憶手段4に記憶されていた色がそのまま保持さ
れる。
As is apparent from Equation 5 and FIG. 6, the pixel having the value “1” in the shape pattern F has a density of 128.
Are written in a density pattern corresponding to the color pattern, and the color stored in the image storage means 4 is held as it is for the pixel having a value of “0”.

【0037】このようにして、算出されたB’は画像記
憶手段4に記憶される。
The calculated B 'is stored in the image storage means 4 as described above.

【0038】次に、第2の描画手段3の処理についてに
詳しく説明する。
Next, the processing of the second drawing means 3 will be described in detail.

【0039】濃度が255、すなわち描画色が「黒」の
場合、第2の演算手段7の演算は以下の式になる。
When the density is 255, that is, when the drawing color is "black", the calculation of the second calculation means 7 is as follows.

【0040】B’= B|F (式6) 式3、式4、および式6よりB’は以下の値となる。B '= B | F (Equation 6) From equations 3, 4 and 6, B' is as follows.

【0041】 B’= 0011 1111 0101 0100 (式7) 以上の処理を、図4、および図5全体に対して行った結
果を図7に示す。(式7)および図7より明らかなよう
に、形状パターンFにおいて値が「1」の画素は「1」
で描画され、値が「0」の画素は画像記憶手段4に記憶
されていた色がそのまま保持される。
B ′ = 0011 1111 0101 0100 (Equation 7) FIG. 7 shows the result of performing the above processing on FIGS. 4 and 5 as a whole. As is clear from (Equation 7) and FIG. 7, the pixel having the value “1” in the shape pattern F is “1”.
, And the pixel whose value is “0” retains the color stored in the image storage unit 4 as it is.

【0042】濃度が0の場合、第2の演算手段7の演算
は以下の式になる。
When the density is 0, the calculation of the second calculation means 7 is as follows.

【0043】B’= B&(〜F) (式8) 式3、式4、および式8よりB’は以下の値となる。B '= B & (. About.F) (Equation 8) From equations 3, 4 and 8, B' is as follows.

【0044】 B’= 0000 0001 0101 0100 (式9) 以上の処理を、図4、ならびに図5全体に対して行った
結果を図8に示す。
B ′ = 00000001 0101 0100 (Equation 9) FIG. 8 shows the result of performing the above processing on FIG. 4 and FIG.

【0045】式9および図8より明らかなように、形状
パターンFにおいて値が「1」の画素は「0」で描画さ
れ、値が「0」の画素は画像記憶手段4に記憶されてい
た色がそのまま保持される。このようにして、算出され
たB’は画像記憶手段4に記憶される。
As is clear from Equation 9 and FIG. 8, in the shape pattern F, a pixel having a value of "1" is drawn as "0", and a pixel having a value of "0" is stored in the image storage means 4. The color is kept as it is. The calculated B ′ is stored in the image storage unit 4 in this manner.

【0046】次に、本発明の実施の形態1における印刷
装置について、図9を用いて説明する。
Next, a printing apparatus according to the first embodiment of the present invention will be described with reference to FIG.

【0047】ホストコンピュータ8は、印刷する画像の
データを図形毎にコマンドで表現し印刷装置9に転送す
る。図形の種類は、文字、グラフィック、ビットマップ
などがあり、それぞれ異なるコマンドで表現される。
The host computer 8 expresses the data of the image to be printed by a command for each figure and transfers it to the printing device 9. The types of figures include characters, graphics, bitmaps, and the like, and are represented by different commands.

【0048】この印刷装置9は、制御手段10と記録手
段11とから構成される。制御手段10は、コマンドか
ら画像データを作成する。記録手段11は、画像データ
を所定の記録媒体に記録する。
The printing device 9 includes a control unit 10 and a recording unit 11. The control means 10 creates image data from the command. The recording means 11 records the image data on a predetermined recording medium.

【0049】制御手段10は、さらに画像展開手段12
と画像記憶手段4に分けることができる。画像展開手段
12は、コマンドを解釈し、図形を二値の画像データに
変換する。画像記憶手段4は、画像展開手段12で作成
された画像データを記憶する。
The control means 10 further includes an image developing means 12
And image storage means 4. The image developing means 12 interprets the command and converts the figure into binary image data. The image storage unit 4 stores the image data created by the image expansion unit 12.

【0050】画像展開手段12は、図10に示すよう
に、コマンド判定手段13、文字描画手段14、グラフ
ィック描画手段15、ならびにビットマップ描画手段1
6から構成される。
As shown in FIG. 10, the image expanding means 12 includes a command determining means 13, a character drawing means 14, a graphic drawing means 15, and a bitmap drawing means 1.
6 is comprised.

【0051】コマンド判定手段13は、コマンドを解釈
し、文字描画コマンドである場合は文字描画手段14
を、グラフィック描画コマンドである場合にはグラフィ
ック描画手段15を、ビットマップ描画コマンドである
場合はビットマップ描画手段16をそれぞれ選択し、文
字描画手段14、グラフィック描画手段15、ビットマ
ップ描画手段16はそれぞれ図形を描画する。
The command determining means 13 interprets the command, and if the command is a character drawing command,
If the command is a graphic drawing command, the graphic drawing means 15 is selected, and if the command is a bitmap drawing command, the bitmap drawing means 16 is selected, and the character drawing means 14, the graphic drawing means 15, and the bitmap drawing means 16 are selected. Draw each figure.

【0052】以下、印刷装置9の処理の流れを図11の
フローチャートを用いて説明する。
Hereinafter, the processing flow of the printing apparatus 9 will be described with reference to the flowchart of FIG.

【0053】まず、印刷装置9はホストコンピュータ8
からコマンドを取得する(S101)。コマンド判定手
段13は、コマンドが文字描画コマンドである場合は文
字描画手段14を選択し(S102)、文字描画手段1
4は文字を画像記憶手段4に描画する(S105)。
First, the printing device 9 is connected to the host computer 8.
The command is acquired from (S101). If the command is a character drawing command, the command determining unit 13 selects the character drawing unit 14 (S102), and the character drawing unit 1
4 draws a character in the image storage means 4 (S105).

【0054】コマンド判定手段13は、コマンドがグラ
フィック描画コマンドである場合には、グラフィック描
画手段15を選択し(S103)、グラフィック描画手
段15はグラフィックを画像記憶手段4に描画する(S
106)。
If the command is a graphic drawing command, the command determining means 13 selects the graphic drawing means 15 (S103), and the graphic drawing means 15 draws a graphic in the image storage means 4 (S103).
106).

【0055】また、コマンド判定手段13は、コマンド
がビットマップ描画コマンドである場合はビットマップ
描画手段16を選択し(S104)、ビットマップ描画
手段16はビットマップを画像記憶手段4に描画する
(S107)。
If the command is a bitmap drawing command, the command determination means 13 selects the bitmap drawing means 16 (S104), and the bitmap drawing means 16 draws the bitmap on the image storage means 4 (S104). S107).

【0056】以上のようにして描画が終了した後、また
はコマンドが文字描画、グラフィック描画、ビットマッ
プ描画の何れでもない場合には、全てのコマンドの処理
が終了したか否かの判定を行う(S108)。
After the drawing is completed as described above, or when the command is not any of character drawing, graphic drawing, and bitmap drawing, it is determined whether or not the processing of all commands has been completed ( S108).

【0057】全てのコマンドの処理が終了していない場
合は、S101の処理から同様の処理を繰り返す。全て
のコマンドの処理が終了した場合は、記録手段11が画
像記憶手段4に記憶された画像データに応じて用紙に記
録する(S109)。
If the processing of all the commands has not been completed, the same processing is repeated from the processing of S101. When the processing of all commands is completed, the recording unit 11 records on a sheet according to the image data stored in the image storage unit 4 (S109).

【0058】ここで、グラフィック描画およびビットマ
ップ描画について説明する。なお、グラフィック描画お
よびビットマップ描画は従来の印刷装置における動作と
同様である。
Here, graphic drawing and bitmap drawing will be described. The graphic drawing and the bitmap drawing are the same as the operations in the conventional printing apparatus.

【0059】グラフィック描画手段15は、塗り潰し領
域となる多角形を水平な直線(以下、「スキャンライ
ン」という。)に分解する。その後、スキャンライン毎
に指定濃度で画像記憶手段4に記憶させる。このように
して、グラフィックの描画を終了する。
The graphic drawing means 15 decomposes a polygon to be a filled area into horizontal straight lines (hereinafter referred to as "scan lines"). Then, the image data is stored in the image storage unit 4 at the designated density for each scan line. Thus, the drawing of the graphic is completed.

【0060】ビットマップ描画手段16は、入力された
多値のビットマップを二値のビットマップに変換し、二
値のビットマップを画像記憶手段4に記憶させる。この
ようにして、ビットマップ描画を終了する。
The bitmap drawing means 16 converts the input multi-valued bitmap into a binary bitmap, and stores the binary bitmap in the image storage means 4. In this way, the bitmap drawing ends.

【0061】さらに本実施の形態1における文字描画の
処理について図12のフローチャートを用いて詳しく説
明を行う。
Further, the character drawing process according to the first embodiment will be described in detail with reference to the flowchart of FIG.

【0062】まず、選択手段1は、文字の濃度が0また
は255であるか否かを判定する(S201)。濃度が
0または255でない場合、第1の描画手段2が選択手
段1によって選択され、第1の描画手段2は濃度に応じ
た濃度パターンを作成し(S203)、式3の演算を行
う(S204)。
First, the selection means 1 determines whether or not the character density is 0 or 255 (S201). If the density is not 0 or 255, the first drawing means 2 is selected by the selecting means 1, and the first drawing means 2 creates a density pattern corresponding to the density (S203), and performs the calculation of Expression 3 (S204). ).

【0063】また、濃度が0または255の場合、第2
の描画手段3が選択手段1によって選択され、第2の描
画手段3は、式1または式2の演算を行う(S20
2)。演算結果は、画像記憶手段4に記憶される(S2
05)。
When the density is 0 or 255, the second
Is selected by the selecting unit 1, and the second drawing unit 3 performs the calculation of the expression 1 or 2 (S20).
2). The calculation result is stored in the image storage unit 4 (S2
05).

【0064】それにより、本実施の形態1では、論理演
算回数、および濃度パターンの作成処理を削減すること
ができるので高速に文字を描画することができる。
As a result, in the first embodiment, the number of logical operations and the process of creating a density pattern can be reduced, so that characters can be drawn at high speed.

【0065】(実施の形態2)図13は本発明の実施の
形態2における文字描画装置のブロック図、図14は本
発明の実施の形態2における文字描画装置の動作フロー
チャートである。
(Embodiment 2) FIG. 13 is a block diagram of a character drawing apparatus according to Embodiment 2 of the present invention, and FIG. 14 is an operation flowchart of the character drawing apparatus according to Embodiment 2 of the present invention.

【0066】本実施の形態2において、文字描画装置
は、図13に示すように、プレーン描画手段17a〜1
7d、および画像記憶手段4から構成されている。プレ
ーン描画装置17a〜17dは、文字をプレーン毎に描
画する。画像記憶手段4は、描画結果を記憶する。
In the second embodiment, as shown in FIG. 13, the character drawing device comprises plane drawing means 17a to 17a.
7d and an image storage means 4. The plane drawing devices 17a to 17d draw characters on a plane-by-plane basis. The image storage unit 4 stores the drawing result.

【0067】プレーン描画手段17a〜17dは、それ
ぞれ、シアン(C)、マゼンタ(M)、イエロー
(Y)、ブラック(K)のプレーンの描画を行う。ま
た、これらプレーン描画手段17a〜17dの構成は、
前記実施の形態1の図1と同様であり、選択手段1、第
1の描画手段2、および第2の描画手段から構成され
る。
The plane drawing means 17a to 17d perform drawing of cyan (C), magenta (M), yellow (Y), and black (K) planes, respectively. The configuration of these plane drawing means 17a to 17d is as follows.
This is the same as FIG. 1 of the first embodiment, and includes a selecting unit 1, a first drawing unit 2, and a second drawing unit.

【0068】なお、本実施の形態2においても、描画す
る文字の形状は、描画する画素を「1」、描画しない画
素を「0」とした形状パターンとして表現されているも
のとし、また、濃度は0から255までの値であり0を
0、各プレーンの色を255とするものとする。また、
第1の描画手段2および第2の描画手段3の構成要素お
よびプレーン毎の動作は、実施の形態1と同様である。
In the second embodiment, the shape of a character to be drawn is expressed as a shape pattern in which a pixel to be drawn is “1” and a pixel to be not drawn is “0”. Is a value from 0 to 255, where 0 is 0 and the color of each plane is 255. Also,
The components of the first drawing unit 2 and the second drawing unit 3 and the operation of each plane are the same as those in the first embodiment.

【0069】以下、本実施の形態2における印刷装置の
処理の流れを図14のフローチャートを用いて説明す
る。また、印刷装置の構成および流れは実施の形態1と
同様であるので、ここでは、実施の形態2の特徴である
文字描画処理について詳しい説明を行う。
Hereinafter, the processing flow of the printing apparatus according to the second embodiment will be described with reference to the flowchart of FIG. Since the configuration and flow of the printing apparatus are the same as those in the first embodiment, the character drawing processing which is a feature of the second embodiment will be described in detail.

【0070】まず、描画するプレーンを選択する(S3
01)。選択されたプレーンに対応する選択手段1(図
1)は文字の濃度が0または255であるか否かを判定
する(S302)。濃度が0または255でない場合、
第1の描画手段2(図1)が選択手段1によって選択さ
れ、第1の描画手段2は濃度に応じた濃度パターンを作
成し(S304)、式3の演算を行うことで描画結果を
算出する(S305)。
First, a plane to be drawn is selected (S3
01). The selecting means 1 (FIG. 1) corresponding to the selected plane determines whether the density of the character is 0 or 255 (S302). If the concentration is not 0 or 255,
The first drawing unit 2 (FIG. 1) is selected by the selection unit 1, and the first drawing unit 2 creates a density pattern corresponding to the density (S304), and calculates the drawing result by performing the calculation of Expression 3. (S305).

【0071】また、濃度が0または255の場合には、
第2の描画手段3(図1)が選択手段1によって選択さ
れ、第2の描画手段3は、式1、または式2の演算を行
うことで描画結果を算出する(S303)。算出された
描画結果は、画像記憶手段4に記憶される(S30
6)。
When the density is 0 or 255,
The second drawing unit 3 (FIG. 1) is selected by the selection unit 1, and the second drawing unit 3 calculates the drawing result by performing the calculation of Expression 1 or 2 (S303). The calculated drawing result is stored in the image storage unit 4 (S30).
6).

【0072】以上のようにして、選択したプレーンの描
画が終了する。全てのプレーンの描画が終了したか否か
を判定し(S307)、終了した場合は文字描画処理を
終了し、終了していない場合は、さらに別のプレーンの
描画を行う。
The drawing of the selected plane is completed as described above. It is determined whether or not the rendering of all the planes has been completed (S307). If the rendering has been completed, the character rendering process is terminated. If the rendering has not been completed, another plane is rendered.

【0073】それにより、本実施の形態2においても、
論理演算回数、および濃度パターンの作成処理を削減す
ることができるので高速に文字を描画することができ
る。
Thus, also in the second embodiment,
Since the number of logical operations and the process of creating a density pattern can be reduced, characters can be drawn at high speed.

【0074】(実施の形態3)図15は本発明の実施の
形態3における文字描画装置のブロック図、図16は本
発明の実施の形態3における文字描画装置のフローチャ
ートである。
(Embodiment 3) FIG. 15 is a block diagram of a character drawing apparatus according to Embodiment 3 of the present invention, and FIG. 16 is a flowchart of the character drawing apparatus according to Embodiment 3 of the present invention.

【0075】本実施の形態3において、文字描画装置
は、図15に示すように、演算指示手段19、濃度パタ
ーン作成手段20、演算手段21、ならびに画像記憶手
段22から構成されている。
In the third embodiment, as shown in FIG. 15, the character drawing device comprises an operation instructing unit 19, a density pattern creating unit 20, an operating unit 21, and an image storage unit 22.

【0076】演算指示手段19は、文字の濃度が0また
は255か否かを判定し、判定結果に応じて演算方法を
演算手段21に指示する。濃度パターン作成手段20
は、描画色の濃度に応じた二値の濃度パターンを作成す
る。演算手段21は、濃度パターンと形状パターンから
濃度で文字を描画するための演算を行う。画像記憶手段
22は、二値の画像データを記憶する。
The calculation instruction means 19 determines whether or not the density of the character is 0 or 255, and instructs the calculation means 21 to the calculation method according to the determination result. Density pattern creating means 20
Creates a binary density pattern according to the density of the drawing color. The calculating means 21 performs a calculation for drawing a character with the density from the density pattern and the shape pattern. The image storage means 22 stores binary image data.

【0077】ここでも、前記実施の形態1,2と同様
に、描画する文字の形状は、描画する画素を「1」、描
画しない画素を「0」とした二値の形状パターンとして
表現されているものとし、また、濃度は0から255ま
での値であるものとする。
Here, as in the first and second embodiments, the shape of the character to be drawn is expressed as a binary shape pattern in which the pixel to be drawn is “1” and the pixel not to be drawn is “0”. And the density is a value from 0 to 255.

【0078】さらに、濃度パターン作成手段20の出力
である描画色の濃度に応じた二値の濃度パターンをD、
描画する文字の形状パターンをF、画像記憶手段22の
画像データをB、演算結果をB’とする。
Further, a binary density pattern corresponding to the density of the drawing color output from the density pattern creating means 20 is represented by D,
The shape pattern of the character to be drawn is F, the image data in the image storage means 22 is B, and the calculation result is B '.

【0079】ここで、演算指示手段19の動作について
説明する。
Here, the operation of the operation instructing means 19 will be described.

【0080】演算指示手段19は、濃度が0または25
5の何れでもない場合は、以下に示す演算を演算手段2
1に指定する。
The operation instructing means 19 determines that the density is 0 or 25.
If none of the above, the following calculation is performed by the calculating means 2.
Specify 1

【0081】 B’= B&(〜F)|D&F (式10) 濃度が255の場合は、以下に示す演算を演算手段21
に指定する。
B ′ = B & (〜F) | D & F (Equation 10) When the density is 255, the following calculation is performed by the calculation unit 21
To be specified.

【0082】 B’= B|F (式11) 濃度が0の場合は、以下に示す演算を演算手段21に指
定する。
B ′ = B | F (Equation 11) When the density is 0, the following calculation is designated to the calculation means 21.

【0083】 B’= B&(〜F) (式12) 濃度パターン作成手段20は、先ず演算指示手段19が
指示した演算に濃度パターンDが必要か否かを判定す
る。濃度パターンが必要な場合、つまり式10が指定さ
れている場合は、濃度に応じた濃度パターンを作成す
る。
B ′ = B & (〜F) (Equation 12) The density pattern creating means 20 first determines whether or not the density pattern D is necessary for the calculation instructed by the calculation instruction means 19. When a density pattern is required, that is, when Expression 10 is designated, a density pattern corresponding to the density is created.

【0084】たとえば、濃度が128のときに作成され
る濃度パターンは、値が「1」の画素が全領域の50%
になるようなパターンである。濃度パターンが必要でな
い場合、つまり式11または式12の何れかが指示され
ている場合は、濃度パターン作成手段20は何もしな
い。
For example, in a density pattern created when the density is 128, pixels having a value of “1” are 50% of the entire area.
It is a pattern that becomes When the density pattern is not required, that is, when either the formula 11 or the formula 12 is designated, the density pattern creating means 20 does nothing.

【0085】演算手段21は、演算指示手段19が指示
した方法で濃度パターンD、文字形状を表現した形状パ
ターンF、画像記憶手段22に記憶された画像データB
の演算を行う。
The calculating means 21 includes a density pattern D, a shape pattern F expressing a character shape, and image data B stored in the image storing means 22 by the method specified by the calculating instruction means 19.
Is calculated.

【0086】なお説明のため、形状パターンとして図4
の図形を、画像記憶手段22に記憶されている画像デー
タとして図5の図形を用いる。図4、および図5におい
ては、値が「1」の画素を255、値が「0」の画素を
0として表現している。
For the sake of explanation, FIG.
5 is used as the image data stored in the image storage means 22. 4 and 5, a pixel having a value of “1” is represented as 255, and a pixel having a value of “0” is represented as 0.

【0087】また、図4の破線内部領域Fおよび図5の
破線内部領域Bをそれぞれ以下の式で表現できるとす
る。
It is assumed that the broken line inner area F in FIG. 4 and the broken line inner area B in FIG. 5 can be expressed by the following equations.

【0088】 F = 0011 1110 0000 0000 (式13) B = 0001 0101 0101 0100 (式14) また、濃度が128の場合、濃度パターン作成手段20
が以下の濃度パターンを作成するものとする。
F = 0011 1110 0000 0000 (Equation 13) B = 0001 0101 0101 0100 (Equation 14) When the density is 128, the density pattern creating means 20
Creates the following density pattern.

【0089】 D = 0011 0011 0011 0011 (式15) この場合、演算手段21が式10の演算を行った結果は
以下の式になる。
D = 0011 0011 0011 0011 (Equation 15) In this case, the result obtained by the arithmetic means 21 performing the operation of Expression 10 is as follows.

【0090】 B’= 0011 0001 0101 0100 (式16) 以上の処理を図4および図5全体に対して行った結果を
図6に示す。式16および図6より明らかなように、形
状パターンFにおいて値が「1」の画素は濃度パターン
すなわち濃度128で描画され、値が「0」の画素は画
像記憶手段104に記憶されていた色がそのまま保持さ
れる。
B ′ = 0011 0001 0101 0100 (Equation 16) FIG. 6 shows the result of performing the above processing on FIGS. 4 and 5 as a whole. As is clear from Expression 16 and FIG. 6, in the shape pattern F, the pixel having the value “1” is drawn with the density pattern, that is, the density 128, and the pixel having the value “0” is the color stored in the image storage unit 104. Is kept as it is.

【0091】演算手段21が式11の演算を行った場合
の結果は以下の式になる。
The result obtained when the calculating means 21 performs the calculation of Expression 11 is as follows.

【0092】 B’= 0011 1111 0101 0100 (式17) 以上の処理を図4および図5全体に対して行った結果を
図7に示す。式17および図7より明らかなように、形
状パターンFにおいて値が「1」の画素は「1」すなわ
ち255で描画され、値が「0」の画素は画像記憶手段
104に記憶されていた色がそのまま保持される。
B ′ = 0011 1111 0101 0100 (Equation 17) FIG. 7 shows the result of performing the above processing on FIGS. 4 and 5 as a whole. As is apparent from Expression 17 and FIG. 7, in the shape pattern F, a pixel having a value of “1” is drawn as “1”, that is, 255, and a pixel having a value of “0” is a color stored in the image storage unit 104. Is kept as it is.

【0093】演算手段21が式12の演算を行った場合
の結果は以下の式になる。
When the calculating means 21 performs the calculation of Expression 12, the result is as follows.

【0094】 B’= 0000 0001 0101 0100 (式18) 以上の処理を図4および図5全体に対して行った結果を
図8に示す。式18および図8より明らかなように、形
状パターンFにおいて値が「1」の画素は「0」すなわ
ち0で描画され、値が「0」の画素は画像記憶手段10
4に記憶されていた色がそのまま保持される。このよう
にして、算出されたB’は画像記憶手段104に記憶さ
れる。
B ′ = 0000 0001 0101 0100 (Equation 18) FIG. 8 shows the result of performing the above processing on the entire FIGS. 4 and 5. As is clear from Expression 18 and FIG. 8, in the shape pattern F, a pixel having a value of “1” is drawn as “0”, that is, 0, and a pixel having a value of “0” is stored in the image storage unit 10.
The color stored in No. 4 is held as it is. The calculated B ′ is stored in the image storage unit 104 in this manner.

【0095】また、本実施の形態3に用いられる印刷装
置(図9)の接続構成は、前記実施の形態1と同様であ
り、ホストコンピュータ8は、印刷する画像のデータを
図形毎にコマンドで表現し印刷装置9に転送する。図形
の種類は、文字、グラフィック、ビットマップなどがあ
り、それぞれ異なるコマンドで表現される。
The connection configuration of the printing apparatus (FIG. 9) used in the third embodiment is the same as that of the first embodiment, and the host computer 8 transmits the data of the image to be printed by a command for each figure. Expressed and transferred to the printing device 9. The types of figures include characters, graphics, bitmaps, and the like, and are represented by different commands.

【0096】印刷装置9の構成も、前記実施の形態1と
同様に制御手段10と記録手段11から構成される。制
御手段10はコマンドから画像データを作成する。記録
手段11は、画像データを所定の記録媒体に記録する。
制御手段10はさらに画像展開手段12と画像記憶手段
4に分けることができる。画像展開手段12はコマンド
を解釈し、図形を二値の画像データに変換する。画像記
憶手段4は、画像展開手段12で作成された画像データ
を記憶する。
The configuration of the printing apparatus 9 also includes a control unit 10 and a recording unit 11 as in the first embodiment. The control means 10 creates image data from the command. The recording means 11 records the image data on a predetermined recording medium.
The control means 10 can be further divided into an image development means 12 and an image storage means 4. The image developing means 12 interprets the command and converts the figure into binary image data. The image storage unit 4 stores the image data created by the image expansion unit 12.

【0097】また、画像展開手段12(図10)におい
ても、前記実施の形態1と同様であり、コマンド判定手
段13、文字描画手段14、グラフィック描画手段1
5、ならびにビットマップ描画手段16から構成され
る。
The image developing means 12 (FIG. 10) is the same as in the first embodiment, and includes a command determining means 13, a character drawing means 14, and a graphic drawing means 1.
5 and bitmap drawing means 16.

【0098】さらに、本実施の形態3の特徴である文字
描画について、図16のフローチャートを用いて説明す
る。
Further, character drawing which is a feature of the third embodiment will be described with reference to the flowchart of FIG.

【0099】まず、演算指示手段19は文字の濃度が0
であるか否かを判定する(S401)。濃度が0の場
合、演算指示手段19は、式12の演算を行うよう演算
手段21に指示する(S402)。濃度が0でない場
合、さらに濃度が255であるか否かを判定する(S4
03)。
First, the operation instructing means 19 determines that the character density is 0.
Is determined (S401). If the density is 0, the calculation instruction unit 19 instructs the calculation unit 21 to perform the calculation of Expression 12 (S402). If the density is not 0, it is further determined whether or not the density is 255 (S4).
03).

【0100】濃度が255の場合、演算指示手段19は
式11の演算を行うよう演算手段21に指示する(S4
04)。濃度が0または255の何れでもない場合、演
算指示手段19は式10の演算を行うよう演算手段21
に指示する(S405)。
If the density is 255, the operation instructing means 19 instructs the operation means 21 to perform the operation of the equation (11) (S4).
04). If the density is neither 0 nor 255, the operation instructing unit 19 performs an operation of the expression
(S405).

【0101】以上のようにして、演算方法が決定した
後、濃度パターン作成手段20は、演算に濃度パターン
が必要か否かを判定する(S406)。演算に濃度パタ
ーンが必要な場合は、濃度パターン作成手段20は濃度
に応じた濃度パターンを作成する(S407)。
After the calculation method is determined as described above, the density pattern creating means 20 determines whether a density pattern is necessary for the calculation (S406). If a density pattern is required for the calculation, the density pattern creating means 20 creates a density pattern corresponding to the density (S407).

【0102】その後、演算手段21は、演算指示手段1
9で指定された演算を行うことで描画結果を算出する
(S408)。算出された結果は、画像記憶手段22に
記憶される(S409)。
Thereafter, the operation means 21 is operated by the operation instructing means 1
The drawing result is calculated by performing the calculation specified in 9 (S408). The calculated result is stored in the image storage unit 22 (S409).

【0103】それにより、本実施の形態3でも、論理演
算回数、および濃度パターンの作成処理を削減すること
ができるので高速に文字を描画することができる。
As a result, also in the third embodiment, the number of logical operations and the process of creating a density pattern can be reduced, so that characters can be drawn at high speed.

【0104】(実施の形態4)図17は本発明の実施の
形態4における文字描画装置のブロック図、図18は本
発明の実施の形態4における文字描画装置のフローチャ
ートである。
(Embodiment 4) FIG. 17 is a block diagram of a character drawing apparatus according to Embodiment 4 of the present invention, and FIG. 18 is a flowchart of the character drawing apparatus according to Embodiment 4 of the present invention.

【0105】本実施の形態4において、画像描画装置
は、図17に示すように、プレーン描画手段23a〜2
3d、および画像記憶手段24から構成されている。プ
レーン描画装置23a〜23dは、文字をプレーン毎に
描画する。画像記憶手段24は、描画結果を記憶する。
In the fourth embodiment, as shown in FIG. 17, the image drawing apparatus comprises plane drawing means 23a to 23d.
3d and image storage means 24. The plane drawing devices 23a to 23d draw characters on a plane-by-plane basis. The image storage means 24 stores the drawing result.

【0106】プレーン描画手段23a〜23dは、それ
ぞれ、シアン(C)、マゼンタ(M)、イエロー
(Y)、ブラック(K)のプレーンの描画を行う。プレ
ーン描画手段23a〜23dは、前記実施の形態3(図
15)と同様に、文字の濃度が0または255か否かを
判定し、判定結果に応じて演算方法を演算手段21に指
示する演算指示手段19、描画色の濃度に応じた二値の
濃度パターンを作成する濃度パターン作成手段20、濃
度パターンと形状パターンから濃度で文字を描画するた
めの演算を行う演算手段21から構成される。
The plane drawing means 23a to 23d perform drawing of cyan (C), magenta (M), yellow (Y), and black (K) planes, respectively. As in the third embodiment (FIG. 15), the plane drawing means 23a to 23d determine whether the character density is 0 or 255, and instruct the calculation means 21 to the calculation method according to the determination result. It comprises an instruction means 19, a density pattern creation means 20 for creating a binary density pattern corresponding to the density of the drawing color, and an arithmetic means 21 for performing an operation for drawing a character with the density from the density pattern and the shape pattern.

【0107】なお、ここでも描画する文字の形状は、描
画する画素を「1」、描画しない画素を「0」とした形
状パターンとして表現されているものとし、また、濃度
は0から255までの値であり0を0、各プレーンの色
を255とするものとする。
Here, the shape of the character to be drawn is assumed to be expressed as a shape pattern in which the pixel to be drawn is “1” and the pixel not to be drawn is “0”, and the density is from 0 to 255. The value is 0, and the color of each plane is 255.

【0108】ここで、演算指示手段19、濃度パターン
作成手段20および演算手段21の構成要素およびプレ
ーン毎の動作は、実施の形態3と同様である。
Here, the components of the calculation instruction means 19, the density pattern creation means 20 and the calculation means 21 and the operation of each plane are the same as in the third embodiment.

【0109】以下、本発明の技術を用いた印刷装置の処
理の流れを説明する。印刷装置の構成および流れは実施
の形態3と同様である。ここでは、実施の形態4の特徴
である文字描画処理について詳しい説明を行う。
Hereinafter, the flow of processing of the printing apparatus using the technique of the present invention will be described. The configuration and flow of the printing apparatus are the same as in the third embodiment. Here, a detailed description will be given of a character drawing process which is a feature of the fourth embodiment.

【0110】本実施の形態4における文字描画の処理に
ついて、図18のフローチャートを用いて説明する。
The character drawing process according to the fourth embodiment will be described with reference to the flowchart in FIG.

【0111】まず、描画するプレーンを選択する(S5
01)。選択されたプレーンに対応する演算指示手段1
9は文字の濃度が0であるか否かを判定する(S50
2)。濃度が0の場合、演算指示手段19は式12の演
算を行うよう演算手段21に指示する(S503)。
First, a plane to be drawn is selected (S5).
01). Calculation instruction means 1 corresponding to the selected plane
No. 9 determines whether the density of the character is 0 (S50).
2). If the density is 0, the calculation instruction unit 19 instructs the calculation unit 21 to perform the calculation of Expression 12 (S503).

【0112】濃度が0でない場合、さらに濃度が255
であるか否かを判定する(S504)。また、濃度が2
55の場合、演算指示手段19は式11の演算を行うよ
う演算手段21に指示する(S505)。
If the density is not 0, the density further increases to 255.
It is determined whether or not (S504). When the concentration is 2
In the case of 55, the calculation instruction means 19 instructs the calculation means 21 to perform the calculation of Expression 11 (S505).

【0113】濃度が0または255の何れでもない場
合、演算指示手段19は式10の演算を行うよう演算手
段21に指示する(S506)。以上のようにして、演
算方法が決定した後、濃度パターン作成手段20は演算
に濃度パターンが必要か否かを判定する(S507)。
If the density is neither 0 nor 255, the operation instructing unit 19 instructs the operation unit 21 to perform the operation of Expression 10 (S506). After the calculation method is determined as described above, the density pattern creating unit 20 determines whether a density pattern is necessary for the calculation (S507).

【0114】演算に濃度パターンが必要な場合は、濃度
パターン作成手段20は濃度に応じた濃度パターンを作
成する(S508)。その後、演算手段21は、演算指
示手段19で指定された演算を行うことで描画結果を算
出する(S509)。算出された結果は、画像記憶手段
24に記憶される(S510)。
If the calculation requires a density pattern, the density pattern creating means 20 creates a density pattern corresponding to the density (S508). After that, the calculation means 21 calculates the drawing result by performing the calculation specified by the calculation instruction means 19 (S509). The calculated result is stored in the image storage unit 24 (S510).

【0115】以上のようにして、選択したプレーンの描
画が終了する。全てのプレーンの描画が終了したか否か
を判定し(S511)、終了した場合は文字描画処理を
終了し、終了していない場合は、さらに別のプレーンの
描画を行う。
As described above, drawing of the selected plane is completed. It is determined whether or not rendering of all the planes has been completed (S511). If the rendering has been completed, the character rendering process is terminated. If not, another plane is rendered.

【0116】それにより、本実施の形態3であっても、
論理演算回数、および濃度パターンの作成処理を削減す
ることができるので高速に文字を描画することができ
る。
Thus, even in the third embodiment,
Since the number of logical operations and the process of creating a density pattern can be reduced, characters can be drawn at high speed.

【0117】[0117]

【発明の効果】以上のように、本発明によれば、特定の
濃度の場合は濃度パターンを作成せず、かつ簡単な演算
で文字を描画するので処理時間を短縮することができる
という有効な効果が得られる。
As described above, according to the present invention, it is possible to reduce the processing time since a character is drawn by a simple calculation without forming a density pattern for a specific density. The effect is obtained.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施の形態1における文字描画装置の
ブロック図
FIG. 1 is a block diagram of a character drawing apparatus according to Embodiment 1 of the present invention.

【図2】本発明の実施の形態1における第1の描画手段
のブロック図
FIG. 2 is a block diagram of a first drawing unit according to the first embodiment of the present invention;

【図3】本発明の実施の形態1における第2の描画手段
のブロック図
FIG. 3 is a block diagram of a second drawing unit according to the first embodiment of the present invention;

【図4】本発明の実施の形態1における形状パターンの
一例を示す説明図
FIG. 4 is an explanatory diagram showing an example of a shape pattern according to the first embodiment of the present invention;

【図5】本発明の実施の形態1における画像記憶手段に
記憶された画像データの一例を示す説明図
FIG. 5 is an explanatory diagram illustrating an example of image data stored in an image storage unit according to the first embodiment of the present invention.

【図6】濃度が128の場合の描画結果を示す説明図FIG. 6 is an explanatory diagram showing a drawing result when the density is 128;

【図7】濃度が255の場合の描画結果を示す説明図FIG. 7 is an explanatory diagram showing a drawing result when the density is 255;

【図8】濃度が0の場合の描画結果を示す説明図FIG. 8 is an explanatory diagram showing a drawing result when the density is 0;

【図9】本発明の実施の形態1における文字描画装置を
用いた印刷装置のブロック図
FIG. 9 is a block diagram of a printing apparatus using the character drawing apparatus according to the first embodiment of the present invention.

【図10】図9の印刷装置に設けられた画像展開手段の
ブロック図
FIG. 10 is a block diagram of an image expanding unit provided in the printing apparatus of FIG. 9;

【図11】図9の印刷装置における動作のフローチャー
FIG. 11 is a flowchart of an operation in the printing apparatus of FIG. 9;

【図12】本発明の実施の形態1における文字描画装置
の動作フローチャート
FIG. 12 is an operation flowchart of the character drawing apparatus according to the first embodiment of the present invention.

【図13】本発明の実施の形態2における文字描画装置
のブロック図
FIG. 13 is a block diagram of a character drawing apparatus according to Embodiment 2 of the present invention.

【図14】本発明の実施の形態2における文字描画装置
の動作フローチャート
FIG. 14 is an operation flowchart of the character drawing apparatus according to the second embodiment of the present invention.

【図15】本発明の実施の形態3における文字描画装置
のブロック図
FIG. 15 is a block diagram of a character drawing apparatus according to Embodiment 3 of the present invention.

【図16】本発明の実施の形態3における文字描画装置
のフローチャート
FIG. 16 is a flowchart of a character drawing apparatus according to Embodiment 3 of the present invention.

【図17】本発明の実施の形態4における文字描画装置
のブロック図
FIG. 17 is a block diagram of a character drawing apparatus according to Embodiment 4 of the present invention.

【図18】本発明の実施の形態4における文字描画装置
のフローチャート
FIG. 18 is a flowchart of a character drawing apparatus according to Embodiment 4 of the present invention.

【図19】従来の文字描画装置のブロック図FIG. 19 is a block diagram of a conventional character drawing apparatus.

【符号の説明】[Explanation of symbols]

1 選択手段 2 第1の描画手段 3 第2の描画手段 4 画像記憶手段 5 濃度パターン作成手段 6 第1の演算手段 7 第2の演算手段 18 画像記憶手段 19 演算指示手段 20 濃度パターン作成手段 21 演算手段 22 画像記憶手段 24 画像記憶手段 REFERENCE SIGNS LIST 1 selection means 2 first drawing means 3 second drawing means 4 image storage means 5 density pattern creation means 6 first calculation means 7 second calculation means 18 image storage means 19 calculation instruction means 20 density pattern creation means 21 Arithmetic means 22 Image storage means 24 Image storage means

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】二値の画像データを記憶する画像記憶手段
と、 二値の濃度パターンを文字の濃度値に応じて作成し、前
記濃度パターンと文字の形状を示した二値の形状ビット
マップと前記画像記憶手段に記憶された二値の画像デー
タとの演算を行い、演算結果を前記画像記憶手段に記憶
させる第1の描画手段と、 文字の形状を示した二値の形状ビットマップと、前記画
像記憶手段に記憶された二値の画像データとを演算し、
その演算結果を前記画像記憶手段に記憶させる第2の描
画手段と、 文字の濃度値に応じて、前記第1の描画手段、または前
記第2の描画手段の何れかを選択する選択手段とを有す
ることを特徴とする文字描画装置。
An image storage means for storing binary image data, a binary density pattern is created in accordance with a density value of a character, and a binary shape bit map showing the density pattern and the shape of the character A first drawing unit for performing an operation on the binary image data stored in the image storage unit and storing the calculation result in the image storage unit; and a binary shape bitmap indicating the shape of the character. Calculating the binary image data stored in the image storage means,
A second drawing unit that stores the calculation result in the image storage unit; and a selection unit that selects one of the first drawing unit and the second drawing unit in accordance with a density value of a character. A character drawing device comprising:
【請求項2】請求項1記載の文字描画装置において、カ
ラー描画の際には、前記選択手段が、プレーン毎に前記
第1の描画手段、または前記第2の描画手段の何れかを
選択することを特徴とする文字描画装置。
2. The character drawing device according to claim 1, wherein, when performing color drawing, the selection unit selects one of the first drawing unit and the second drawing unit for each plane. A character drawing device characterized by the above-mentioned.
【請求項3】二値の画像データを記憶する画像記憶手段
と、 文字の濃度値に応じて演算方法を指示する演算指示手段
と、 前記演算指示手段によって指示された演算に文字の濃度
値に応じた二値の濃度パターンが必要か否かを判定し、
必要である場合に二値の濃度パターンを作成するパター
ン作成手段と、 文字の形状を示した二値の形状パターンと前記画像記憶
手段に記憶された二値の画像データとを演算し、その演
算結果を前記画像記憶手段に記憶させる演算手段とを有
したことを特徴とする文字描画装置。
3. An image storage means for storing binary image data; an operation instruction means for instructing an operation method in accordance with a character density value; Determine whether the corresponding binary density pattern is necessary,
A pattern creating means for creating a binary density pattern when necessary; a binary shape pattern indicating the shape of a character; and binary image data stored in the image storage means. A character drawing device comprising: a calculation unit for storing a result in the image storage unit.
【請求項4】請求項3記載の文字描画装置において、カ
ラー描画の場合には、前記演算指示手段がプレーン毎に
演算方法を指示し、前記第1、第2の描画手段がプレー
ン毎に演算し、その演算結果を前記画像記憶手段に記憶
させることを特徴とする文字描画装置。
4. A character drawing apparatus according to claim 3, wherein in the case of color drawing, said calculation instruction means indicates a calculation method for each plane, and said first and second drawing means calculate for each plane. And a calculation result stored in the image storage means.
JP2000322310A 2000-10-23 2000-10-23 Character drawing apparatus Pending JP2002132245A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000322310A JP2002132245A (en) 2000-10-23 2000-10-23 Character drawing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000322310A JP2002132245A (en) 2000-10-23 2000-10-23 Character drawing apparatus

Publications (1)

Publication Number Publication Date
JP2002132245A true JP2002132245A (en) 2002-05-09

Family

ID=18800213

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000322310A Pending JP2002132245A (en) 2000-10-23 2000-10-23 Character drawing apparatus

Country Status (1)

Country Link
JP (1) JP2002132245A (en)

Similar Documents

Publication Publication Date Title
JP3008943B1 (en) Image processing apparatus and image processing method
JP2009092759A (en) Drawing device, image output device, and program
JP2002133428A (en) Plotting processing device
JPH04128970A (en) Document processing system
JP2005326756A (en) Character image generation device and its method, display controller, character image generating program and display control program
JP3606006B2 (en) Image forming apparatus and gradation drawing method
JP2845380B2 (en) Printing apparatus and control method thereof
JP2007122188A (en) Image forming device, image processing method and program
JP2002132245A (en) Character drawing apparatus
JP2006065817A (en) Drawing instruction processing device and method, image drawing device and method, and drawing instruction generation device and method
JP2004334533A (en) Image processing device and method
JP6821924B2 (en) Image processing device, image processing method
JPH08212362A (en) Character and graphic generation device
JPH06139032A (en) Page description language processor
JP3155617B2 (en) Document processing method and apparatus
JP2006054712A (en) Image processing unit
JP2710350B2 (en) Image processing apparatus and image processing method of image processing apparatus
JP3967175B2 (en) Image processing system
JP2008071317A (en) Image forming apparatus
JP2006079475A (en) Print processing system, program and recording medium
JP4764730B2 (en) Image forming apparatus and image forming method
JPH05112054A (en) Image processing device
JPH11110150A (en) Image processing system, method therefor and computer-readable recording medium recording image processing control program
JP2009265329A (en) Font drawing device and information processing device
JP2001043390A (en) Image processing device and method, and recording medium recording image processing program