JPH0226767A - Printer - Google Patents
PrinterInfo
- Publication number
- JPH0226767A JPH0226767A JP63178376A JP17837688A JPH0226767A JP H0226767 A JPH0226767 A JP H0226767A JP 63178376 A JP63178376 A JP 63178376A JP 17837688 A JP17837688 A JP 17837688A JP H0226767 A JPH0226767 A JP H0226767A
- Authority
- JP
- Japan
- Prior art keywords
- printing
- raster image
- dots
- vector
- raster
- 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.)
- Granted
Links
- 238000006243 chemical reaction Methods 0.000 claims abstract description 12
- 238000007493 shaping process Methods 0.000 abstract 1
- 238000004904 shortening Methods 0.000 abstract 1
- 238000004458 analytical method Methods 0.000 description 4
- 238000000034 method Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
Landscapes
- Dot-Matrix Printers And Others (AREA)
- Image Processing (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
本発明は、ベクトルラスク変換により、ベクトル情報を
ラスタイメージに変換して印字を行なう印刷装置に関す
る。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a printing device that converts vector information into a raster image and prints by using vector rask conversion.
[従来の技術]
この種の印刷装置では、ホストコンピュータ等から送ら
れてきたベクトル情報を解析することにより、ビットマ
ツプによるラスタイメージを生成し、出力用紙上に描画
するようになっている。[Prior Art] This type of printing apparatus generates a bitmap raster image by analyzing vector information sent from a host computer, etc., and draws it on output paper.
たとえば、縦方向の直線を描画する場合、上記ベクトル
情報から、この直線の始点の座標データ請求め、この座
標に対応するビットマツプのアドレスのドツトをオンし
た後、この最初のドツトを基準として座標計算を行ない
、次に続くドツトのアドレスを算出してこのドツトをオ
ンする。そして、最後にオンしたドツトのアドレスが上
記直線の終点の座標データと一致するまで、以上のよう
な動作を繰り返し、この直線を形成する全てのドツトを
オンするようになっている。For example, when drawing a vertical straight line, request the coordinate data of the starting point of this straight line from the above vector information, turn on the dot at the bitmap address corresponding to this coordinate, and then calculate the coordinates based on this first dot. , calculate the address of the next dot, and turn on this dot. The above operation is repeated until the address of the last dot turned on matches the coordinate data of the end point of the straight line, and all dots forming this straight line are turned on.
[発明が解決しようとする課題]
ところで、上記従来技術では、描画する画像の種類にか
かわらず、全ての画像について連続的にドツトをオンし
てラスタイメージを生成していた。つまり、上述の縦方
向の直線の場合には、上下に連続するドツトがオンされ
る。また他の例として斜線の場合には、斜め方向に連続
するドツトがオンされることになる。[Problems to be Solved by the Invention] Incidentally, in the above-mentioned conventional technology, raster images are generated by continuously turning on dots for all images, regardless of the type of image to be drawn. That is, in the case of the above-mentioned vertical straight line, dots that are continuous above and below are turned on. As another example, in the case of diagonal lines, consecutive dots in the diagonal direction are turned on.
しかしながら、このように全ての画像について]!I続
的にドツトをオンしてラスタイメージを生成するような
装置においては、上記座標計算や印字動作等の負担が大
きくなり、たとえば図形の描画等、処理が複雑なアルゴ
リズムの場合には、処理時間が長くなる問題があった。However, for all images like this]! In a device that generates a raster image by continuously turning on dots, the burden of the coordinate calculations and printing operations described above becomes large, and in the case of complex algorithms such as drawing figures, the processing The problem was that it took a long time.
本発明は、描画する画像に応じて簡略化したラスタイメ
ージを生成することができ、処理時間の短縮を図ること
ができる印刷装置を提供することを目的とする。SUMMARY OF THE INVENTION An object of the present invention is to provide a printing apparatus that can generate a simplified raster image according to an image to be drawn, and can reduce processing time.
[課題を解決する手段]
本発明は、ベクトル情報に基いて画像を印字する印刷装
置において、上記ベクトル情報より、連続的なドツトに
よってラスタイメージを生成する第1の変換モードと、
所定間隔おきの不連続的なドツトによってラスタイメー
ジを生成する第2の変換モードとを有するベクトルラス
ク変換手段と、このベクトルラスク変換手段の上記各モ
ードを選択するモード指定手段とを有することを特徴と
する。[Means for Solving the Problems] The present invention provides a printing device that prints images based on vector information, including a first conversion mode that generates a raster image using continuous dots from the vector information;
A vector rask conversion means having a second conversion mode for generating a raster image using discontinuous dots at predetermined intervals, and a mode specifying means for selecting each of the above modes of the vector rask conversion means. shall be.
[作用]
本発明では、ベクトルラスク変換手段の第2の変換モー
ドを選択することにより、所定間隔おきの不連続的なド
ツトによる間引状態でラスタイメージが生成される。し
たがって、座標計算や印字動作等が簡略化されることに
なり、全体としての処理時間の短縮を図ることができる
。[Operation] In the present invention, by selecting the second conversion mode of the vector rask conversion means, a raster image is generated in a thinned state with discontinuous dots at predetermined intervals. Therefore, coordinate calculations, printing operations, etc. are simplified, and the overall processing time can be shortened.
[実施例]
第1図は1本発明の一実施例による印刷装置の回路構成
を示すブロー2り図である。[Embodiment] FIG. 1 is a blow diagram showing the circuit configuration of a printing apparatus according to an embodiment of the present invention.
この印刷装置は、ホストコンピュータlと、印刷装置本
体2から構成されている。This printing device is composed of a host computer 1 and a printing device main body 2.
ホストコンピュータ1は、プリントデータや印刷コマン
ド等を印刷装置本体2に送り、この印刷装置本体2に印
刷処理を行なわせるものである。The host computer 1 sends print data, print commands, etc. to the printer main body 2 and causes the printer main body 2 to perform printing processing.
印刷装置本体2は、ROMおよびRAMを含むマイクロ
プロセッサシステムを有し、入カハッ7ア21、コマン
ド解析部22、出力バッファ23および印字部24を備
えている。The printing apparatus main body 2 has a microprocessor system including ROM and RAM, and includes an input hacker 7a 21, a command analysis section 22, an output buffer 23, and a printing section 24.
大力バッファ21は、ホストコンピュータ1から入力さ
れたプリントデータを受取る。コマンド解析部22は、
ベクトル情報としての上記プリントデータのコードを解
析し、ラスタイメージ情報としてのパターンデータに変
換する。出力バッファ23は、コマンド解析部22によ
って変換されたパターンデータを印字部24へ転送する
。印字部24は出力バッファ23より送られてきたパタ
ーンデータを用紙上に永久可視像として出力する。The power buffer 21 receives print data input from the host computer 1. The command analysis unit 22
The code of the print data as vector information is analyzed and converted into pattern data as raster image information. The output buffer 23 transfers the pattern data converted by the command analysis section 22 to the printing section 24. The printing unit 24 outputs the pattern data sent from the output buffer 23 on paper as a permanent visible image.
そして、この印刷装置では、ホストコンピュータlの指
示により、ベクトル情報より、連続的なドツトによって
ラスタイメージを生成する通常のグラフィック印字モー
ドと、所定間隔おきの不連続的なドツトによってラスタ
イメージを生成するドラフトモードとを選択して印字部
24による描画を行なうようになっている。In accordance with instructions from the host computer, this printing device uses a normal graphic printing mode that generates a raster image using continuous dots based on vector information, and a raster image that generates a raster image using discontinuous dots at predetermined intervals. Draft mode is selected and drawing is performed by the printing section 24.
第2図は、このようなモードの選択によって、縦方向の
直線を描画する場合の動作を示すフローチャートである
。FIG. 2 is a flowchart showing the operation when drawing a vertical straight line by selecting such a mode.
まず、ホストコンピュータlによりモードが選択され(
SL)、通常のグラフィック印字モードが選択された場
合(32、S3)、縦線を書き始める最初の点の位置に
ポインタを移動しくS4)、1ドツト描画した後(S5
)、 ポインタの位置を1ドツトだけ下に移動する(
S6)。First, a mode is selected by the host computer (
SL), if the normal graphic printing mode is selected (32, S3), move the pointer to the position of the first point to start drawing a vertical line (S4), then after drawing one dot (S5
), move the pointer down one dot (
S6).
そして、このポインタの位置が縦線の最終の点の位置に
来るまで、S5、S6の動作を繰り返しくS7)、縦線
の最終の点の位置で1ドツト描画して(S8)、処理を
終了する。これによって、第3図に示すように、先頭ド
ラ)alから最終ドツトat までの連続するドツトに
よる縦線Aが印字される。Then, repeat the operations of S5 and S6 until the pointer reaches the final point of the vertical line (S7), draw one dot at the final point of the vertical line (S8), and execute the process. finish. As a result, as shown in FIG. 3, a vertical line A made up of continuous dots from the first dot ()al to the last dot (at) is printed.
また、S2において、ドラフトモードが選択ざれた場合
(S9)、縦線を書き始める最初の点の位置にポインタ
を移動しく510)、1ドツト描画した後(S l 1
) 、ポインタの位置を2ドツトだけ下に移動する(S
12) 、そして、このSllと512の動作を繰り
返し、ポインタの位置が縦線の最終の点の位置より下に
来たところで(S 13) 、処理を終了する。これに
よって、第3図に示すように、先頭ドラ)b+ から最
終ドツトb[までの1ドツトおきの不連続なドツトによ
る縦線Bが印字される。In addition, in S2, if the draft mode is not selected (S9), move the pointer to the position of the first point to start drawing a vertical line (510), and after drawing one dot (S l 1
), move the pointer down two dots (S
12) Then, the operations of Sll and 512 are repeated, and when the pointer position reaches below the position of the final point of the vertical line (S13), the process ends. As a result, as shown in FIG. 3, a vertical line B is printed by discontinuous dots every other dot from the first dot b+ to the last dot b[.
なお、以上の実施例では、縦方向の直線を描画する場合
について述べたが、他の図形の描画や複雑で処理時間が
長くかかるアルゴリズムにも適用可能である。In the above embodiment, the case of drawing a straight line in the vertical direction has been described, but it is also applicable to the drawing of other figures and algorithms that are complex and require a long processing time.
また、上述のように各ドツトの座標計算を行なう代りに
、イメージデータを拡大する方法によってドツトを間引
き、印字処理を簡略化するようにしてもよい。Furthermore, instead of calculating the coordinates of each dot as described above, the printing process may be simplified by thinning out the dots by enlarging the image data.
[発明の効果]
本発明によれば、ベクトルラスク変換手段の第2の変換
モードを選択することにより、所定間隔おきの不連続的
なドツトによる間引状態でラスタイメージが生成される
。したがって、座標計算や印字動作等が簡略化されるこ
とになり、全体としての処理時間の短縮を図ることがで
きる。[Effects of the Invention] According to the present invention, by selecting the second conversion mode of the vector rask conversion means, a raster image is generated in a thinned state with discontinuous dots at predetermined intervals. Therefore, coordinate calculations, printing operations, etc. are simplified, and the overall processing time can be shortened.
第1図は、本発明の一実施例による印刷装置の回路構成
を示すブロック図である。
第2図は、同実施例の印刷装置において縦方向の直線を
描画する場合の動作を示すフローチャートである。
第3図は、同実施例の印刷装置により描画した縦方向の
直線をドツトの状態を示す拡大平面図である。
1・・・ホストコンピュータ、
2・・・印刷装置本体。
21・・・入力バッファ、
22・・・コマンド解析部、
23・・・出力バッファ、
24・・・印字部。FIG. 1 is a block diagram showing the circuit configuration of a printing apparatus according to an embodiment of the present invention. FIG. 2 is a flowchart showing the operation when drawing a vertical straight line in the printing apparatus of the same embodiment. FIG. 3 is an enlarged plan view showing the state of vertical straight lines drawn by the printing apparatus of the same embodiment as dots. 1...Host computer, 2...Printing device main body. 21... Input buffer, 22... Command analysis section, 23... Output buffer, 24... Printing section.
Claims (1)
、 上記ベクトル情報より、連続的なドットによってラスタ
イメージを生成する第1の変換モードと、所定間隔おき
の不連続的なドットによってラスタイメージを生成する
第2の変換モードとを有するベクトルラスタ変換手段と
; このベクトルラスタ変換手段の上記各モードを選択する
モード指定手段と; を有することを特徴とする印刷装置。[Claims] In a printing device that prints an image based on vector information, a first conversion mode that generates a raster image using continuous dots based on the vector information; A printing apparatus comprising: a vector raster converting means having a second conversion mode for generating a raster image by; mode specifying means for selecting each of the modes of the vector raster converting means;
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63178376A JP2711860B2 (en) | 1988-07-18 | 1988-07-18 | Output control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63178376A JP2711860B2 (en) | 1988-07-18 | 1988-07-18 | Output control method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH0226767A true JPH0226767A (en) | 1990-01-29 |
JP2711860B2 JP2711860B2 (en) | 1998-02-10 |
Family
ID=16047409
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP63178376A Expired - Lifetime JP2711860B2 (en) | 1988-07-18 | 1988-07-18 | Output control method and device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2711860B2 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03104666A (en) * | 1989-09-08 | 1991-05-01 | Internatl Business Mach Corp <Ibm> | Page printer |
EP0485917A2 (en) * | 1990-11-13 | 1992-05-20 | Mita Industrial Co. Ltd. | Color image forming apparatus |
-
1988
- 1988-07-18 JP JP63178376A patent/JP2711860B2/en not_active Expired - Lifetime
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03104666A (en) * | 1989-09-08 | 1991-05-01 | Internatl Business Mach Corp <Ibm> | Page printer |
EP0485917A2 (en) * | 1990-11-13 | 1992-05-20 | Mita Industrial Co. Ltd. | Color image forming apparatus |
Also Published As
Publication number | Publication date |
---|---|
JP2711860B2 (en) | 1998-02-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH0226767A (en) | Printer | |
JPH03112267A (en) | Printer | |
JP4368652B2 (en) | Printing processing method and apparatus | |
JP2771629B2 (en) | Character processor | |
JPS6316766A (en) | Printing device | |
JP2633566B2 (en) | Image processing method | |
JPH09277616A (en) | Printer and control method therefor | |
JPS61267126A (en) | Plotter controller | |
JPH08118745A (en) | Character output device | |
JP2748438B2 (en) | Computer system | |
JP3571119B2 (en) | Image drawing device | |
JPS62175794A (en) | Character generator | |
JPH02127059A (en) | Printer device | |
JPH0962849A (en) | Printer device | |
JPH064396A (en) | Image plotter | |
JPH05313634A (en) | Outline font developing device | |
JPH0511736A (en) | Character pattern output device | |
JPH03150594A (en) | System and device for character generation and document printer | |
JPH06301367A (en) | Character generator | |
JPH03111893A (en) | Output device | |
JPH05221073A (en) | Printing control device | |
JPH10149148A (en) | Screen processor | |
JPH04244866A (en) | Printer | |
JPH01283157A (en) | Printer controller | |
JPH04165395A (en) | Correcting method of distortion in image magnification |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20071031 Year of fee payment: 10 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081031 Year of fee payment: 11 |
|
EXPY | Cancellation because of completion of term | ||
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081031 Year of fee payment: 11 |