JPH0344695A - Data storing method for character generator - Google Patents

Data storing method for character generator

Info

Publication number
JPH0344695A
JPH0344695A JP1178957A JP17895789A JPH0344695A JP H0344695 A JPH0344695 A JP H0344695A JP 1178957 A JP1178957 A JP 1178957A JP 17895789 A JP17895789 A JP 17895789A JP H0344695 A JPH0344695 A JP H0344695A
Authority
JP
Japan
Prior art keywords
data
image data
character generator
header
image pattern
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
JP1178957A
Other languages
Japanese (ja)
Inventor
Hideji Osawa
秀次 大澤
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.)
Toshiba TEC Corp
Original Assignee
Tokyo Electric 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 Tokyo Electric Co Ltd filed Critical Tokyo Electric Co Ltd
Priority to JP1178957A priority Critical patent/JPH0344695A/en
Publication of JPH0344695A publication Critical patent/JPH0344695A/en
Pending legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To reduce the storage capacity of the character generator by providing header data which represents necessary characteristics of image data at the head of hexadecimal data showing each lateral array of an image pattern and omitting the storage of necessary data. CONSTITUTION:A character generator ROM 3 is stored with the hexadecimal data showing each lateral array of the image pattern. A header indicating how many there are the same data following the header continuously is provided at the head part of this data and the storage of the same data in the ROM 3 is omitted. Consequently, the storage capacity of the dot image pattern of the character generator is reducible and the constitution of the character generator is reduced in size.

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、キャラクタジェネレータのデータ格納方法に
関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a data storage method for a character generator.

[従来の技術] 例えば第4図の(a)に示す縦30ドツト×横32ドツ
トで表されるドツトイメージパターンをキャラクタジェ
ネレータに格納する場合、第4図の(b)に示すように
横方向の8ドツトを1単位としそれを4ドツトずつ16
進コードにして1バイトのデータで示し、横1列を4バ
イトのイメージデータによって表わしている。そしてこ
れを縦方向に30個進数て1つのドツトイメージパター
ンをイメージデータとして格納するようにしている。
[Prior Art] For example, when storing a dot image pattern represented by 30 vertical dots x 32 horizontal dots as shown in FIG. 4(a) in a character generator, the dot image pattern shown in FIG. 4(b) is 1 unit is 8 dots, and each unit is 16 4 dots.
It is expressed as 1-byte data in a hexadecimal code, and one horizontal column is represented by 4-byte image data. Then, one dot image pattern is stored as image data by converting this into a decimal number in the vertical direction.

そしてこのようなデータ格納を多数の文字や数字等につ
いて行いキャラクタジェネレータを構成している。
A character generator is constructed by storing such data for a large number of characters, numbers, etc.

【発明が解決しようとする課題] しかしこのように4バイトのイメージデータを縦方向に
30個進数て1つのドツトイメージパターンを格納する
方法では、第4図の(b)に■、■、■で示すように縦
方向に同一のイメージデータが繰り返し配列される場合
にもそれぞれイメージデータを格納しなければならず、
このようなデータ格納を多数の文字や数字等について行
ったのではキャラクタジェネレータとして必要とされる
デー夕の格納容量が膨大となる問題があった。
[Problems to be Solved by the Invention] However, in this method of storing one dot image pattern by converting 4-byte image data into 30-digit numbers in the vertical direction, Even when the same image data is repeatedly arranged in the vertical direction as shown in , it is necessary to store each image data.
If such data storage is performed for a large number of characters, numbers, etc., there is a problem in that the data storage capacity required for the character generator becomes enormous.

そこで本発明は、データの格納容量を節約でき、従って
小形化を図ることができるキャラクタジェネレータのデ
ータ格納方法を提供しようとするものである。
SUMMARY OF THE INVENTION Therefore, it is an object of the present invention to provide a data storage method for a character generator that can save data storage capacity and thus be downsized.

[課題を解決するための手段と作用] 本発明は、文字、数字、記号等のドツトイメージパター
ンをそのドツトイメージパターンの各横1列を16進コ
ードのイメージデータに変換してキャラクタジェネレー
タに格納する場合に、イメージデータの先頭にヘッダー
データを設け、そのヘッダーデータをそのヘッダーデー
タが付されたイメージデータの後に同一のイメージデー
タが連続して何個あるかを示すデータとし、連続した同
一のイメージデータの格納を省略したことにある。
[Means and effects for solving the problem] The present invention converts a dot image pattern of letters, numbers, symbols, etc. into hexadecimal code image data for each horizontal row of the dot image pattern, and stores the converted image data in a character generator. In this case, header data is provided at the beginning of the image data, and the header data is used as data indicating how many consecutive identical image data items are present after the image data to which the header data is attached. The reason is that the storage of image data is omitted.

すなわち個数を示すヘッダデータを付加するが、同一の
イメージデータの繰り返し格納を無くすことができる。
That is, although header data indicating the number of images is added, it is possible to eliminate repeated storage of the same image data.

[実施例] 以下、本発明の実施例を図面を参照して説明する。なお
、本発明はレーザプリンタのキャラクタジェネレータに
適用したものについて述べる。
[Example] Hereinafter, an example of the present invention will be described with reference to the drawings. Note that the present invention will be described as applied to a character generator for a laser printer.

第1図はレーザプリンタの構成を示すブロック図で、1
は制御部本体を構成するCPU (中央処理装置)、2
はこのCPU1が各部を制御するためのプログラムデー
タが格納されたプログラムROM (リード・オンリー
・メモリ)、3は印字データをドツトイメージパターン
に変換するためのイメージデータが多数の文字や数字等
に対応して設けられたキャラクタジェネレータROM、
4はドツトイメージパターンに変換された印字データを
展開するラスターRAM (ランダム・アクセス・メモ
リ)、5は外部接続されるホストコンピュータから印字
データを受けるための外部インターフェースで゛ある。
Figure 1 is a block diagram showing the configuration of a laser printer.
is a CPU (central processing unit) that constitutes the main body of the control unit, 2
3 is a program ROM (read only memory) that stores program data for controlling each part of this CPU 1, and 3 is an image data for converting print data into a dot image pattern, which corresponds to a large number of characters, numbers, etc. A character generator ROM provided as
4 is a raster RAM (random access memory) for developing print data converted into a dot image pattern, and 5 is an external interface for receiving print data from an externally connected host computer.

前記CPUIと各ROM2.3、RAM4及びインター
フェース5とはパスライン6を介して接続されている。
The CPUI and each ROM 2.3, RAM 4, and interface 5 are connected via a path line 6.

前記ラスターRAM4に展開されたドツトイメージパタ
ーンはビデオインターフェース7を介して印字制御部8
に供給されるようになっている。
The dot image pattern developed in the raster RAM 4 is sent to the print control unit 8 via the video interface 7.
is being supplied to.

前記印字制御部8は入力されたドツトイメージパターン
に基づいてレーザスキャナー、感光体ドラム、帯電部、
転写部、定着部等からなる印字機構部9を駆動制御し印
字動作を行わせるようになっている。
The printing control unit 8 controls a laser scanner, a photosensitive drum, a charging unit,
A printing mechanism section 9 consisting of a transfer section, a fixing section, etc. is driven and controlled to perform a printing operation.

前記キャラクタジェネレータROM3には例えば第2図
の(a)に示すようにドツトイメージパターンの文字を
第2図の(b)に示すイメージデータとして格納されて
いる。すなわち、縦30ドツト×横32ドツトのドツト
イメージパターンを8ドツトをl111位としそれを4
ドツトずっ16進コードにして1バイトのデータで示し
、横1列を第2図の(b)に■で示すように4バイトの
イメージデータで表している。そしてイメージデータの
先頭には第2図の(b)に■で示すようなヘッダーデー
タを付加している。
The character generator ROM 3 stores, for example, characters in a dot image pattern as shown in FIG. 2(a) as image data as shown in FIG. 2(b). In other words, for a dot image pattern of 30 dots vertically x 32 dots horizontally, 8 dots are placed at 111th position, and it is
Each dot is expressed as 1-byte data in hexadecimal code, and one horizontal column is expressed as 4-byte image data as shown by ■ in FIG. 2(b). At the beginning of the image data, header data as shown in (b) of FIG. 2 is added.

前記ヘッダーデータは1バイト構成でこのヘッダーデー
タが付加されているイメージデータの後に同一のイメー
ジデータの繰り返し個数を示すようになっている。すな
わち第2図の(b)の■の部分は最初のイメージデータ
の後に同一のイメージデータが8個繰り返されるので最
初のイメージデータに付加されるヘッダーデータで「8
」を指定するようにしている。また第2図の(b)の■
の部分は最初のイメージデータの後に同一のイメージデ
ータが2個繰り返されるので最初のイメージデータに付
加されるヘッダーデータで「2」を指定するようにして
いる。さらに第2図の(b)の■の部分は最初のイメー
ジデータの後に同一のイメージデータが10個繰り返さ
れるので最初のイメージデータに付加されるヘッダーデ
ータでrAJを指定するようにしている。そして繰り返
される同一のイメージデータは省略している。
The header data is composed of one byte and indicates the number of repetitions of the same image data after the image data to which the header data is added. In other words, in the part marked ■ in (b) of Figure 2, the same image data is repeated 8 times after the first image data, so the header data added to the first image data is "8".
” is specified. Also, ■ in (b) of Figure 2
Since the same image data is repeated twice after the first image data, "2" is specified in the header data added to the first image data. Further, in the part (■) in FIG. 2(b), since the same image data is repeated 10 times after the first image data, rAJ is specified by the header data added to the first image data. The same image data that is repeated is omitted.

前記CPUIはキャラクタジェネレータROM3からデ
ータを読出して印字制御を行うときには第3図に示す処
理を行うようになっている。すなわち、先ず印字データ
に対応するイメージデータの最初のイメージデータを読
み出すとともに付加されたヘッダーデータを読む。そし
てヘッダーデ−タに指定された回数だけ同一のイメージ
データを繰り返し並べる。これが終了すると次のイメー
ジデータを読み出すとともに付加されたヘッダーデータ
を読む。そしてヘッダーデータに指定された回数だけ同
一のイメージデータを繰り近し並べる。
When the CPUI reads data from the character generator ROM 3 and performs printing control, it performs the processing shown in FIG. 3. That is, first, the first image data of the image data corresponding to the print data is read out, and the added header data is read out. Then, the same image data is repeatedly arranged the number of times specified in the header data. When this is completed, the next image data is read and the added header data is also read. Then, the same image data is repeatedly arranged the number of times specified in the header data.

以上の処理を文字構成ができるまで繰り返し行い、1文
字分について読出しが終了するとその読出したイメージ
データに基づくドツトパターンデータをラスターRAM
4に展開させる。そしてラスターRAM4からドツトパ
ターンデータを読出して印字制御部8に供給し印字を行
わせるようにしている。
The above process is repeated until the character structure is completed, and when the reading for one character is completed, the dot pattern data based on the read image data is stored in the raster RAM.
Expand to 4. The dot pattern data is then read from the raster RAM 4 and supplied to the print control section 8 for printing.

このような構成の本実施例においては、イメージデータ
の先頭にイメージデータの繰り返し個数を指定するヘッ
ダーデータを付加し、代わりに繰り返されるイメージデ
ータを省略してキャラクタジェネレータROM3に格納
するようにしているので、例えば同一のイメージデータ
が1回繰り返される部分を考えても1バイト増加するが
4バイト減少するので結局3バイトメモリ容量が減るこ
とになる。第2図の文字rHJについて考えると1バイ
トのへラダデータが10ケ所付加されているので10バ
イト増加するが、4バイトのイメージデータが繰り返さ
れる箇所は20ケ所あるので80バイト減少することに
なり、全体で70バイトのメモリ容量が節約できること
になる。
In this embodiment with such a configuration, header data specifying the number of repetitions of the image data is added to the beginning of the image data, and instead, the repeated image data is omitted and stored in the character generator ROM 3. Therefore, for example, considering a portion where the same image data is repeated once, it increases by 1 byte but decreases by 4 bytes, resulting in a reduction in memory capacity of 3 bytes. Considering the character rHJ in Figure 2, 1-byte header data is added in 10 places, so it increases by 10 bytes, but there are 20 places where 4-byte image data is repeated, so it decreases by 80 bytes. In total, 70 bytes of memory capacity can be saved.

従って同一のイメージデータの繰り返し回数が多く表わ
れる文字や数字等についてはかなりのメモリ容量を節約
できることになり、文字や数字等のドツトパターンに対
応するイメージデータを多数格納しているキャラクタジ
ェネレータ全体では相当量のメモリ容量を節約できるこ
とになり小形化することができる。
Therefore, it is possible to save a considerable amount of memory capacity for characters and numbers that appear repeatedly in the same image data. A considerable amount of memory capacity can be saved and the device can be made smaller.

そしてキャラクタジェネレータROM3からイメージデ
ータを読み出すときにはへラダーデータを読んで指定さ
れた回数分間−のイメージデータを繰り返し並べて文字
構成を行ない、それにより構成された文字に基づいてラ
スターRAM4にドツトイメージパターンを展開させて
いるので、本来のドツトイメージパターンを確実に再現
させることができる。
When reading image data from the character generator ROM 3, the ladder data is read and the image data for a specified number of times are repeatedly arranged to form a character, and a dot image pattern is developed in the raster RAM 4 based on the formed characters. Therefore, the original dot image pattern can be reliably reproduced.

なお、前記実施例においては本発明をレーザプリンタの
キャラクタジェネレータに適用したものについて述べた
が必ずしもこれに限定されるものではなく、他のプリン
タや表示装置に使用されるキャラクタジェネレータにも
適用できるものである。
In the above embodiments, the present invention is applied to a character generator for a laser printer, but the present invention is not necessarily limited to this, and can be applied to character generators used for other printers and display devices. It is.

[発明の効果] 以上詳述したように本発明によれば、ヘッダデータを設
けて同一のイメージデータの繰り返し回数を指定させ、
代わりに繰り返される同一のイメージデータを省略して
いるので、データの格納容量を節約でき、従って小形化
を図ることができるキャラクタジェネレータのデータ格
納方法を提供できるものである。
[Effects of the Invention] As detailed above, according to the present invention, header data is provided to specify the number of repetitions of the same image data,
Instead, since the same image data that is repeated is omitted, it is possible to save data storage capacity and thus provide a data storage method for a character generator that can be made smaller.

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

第1図乃至第3図は本発明の実施例を示すもので、第1
図はレーザプリンタの要部ブロック図、第2図はドツト
イメージパターンとキャラクタジェネレータに対するイ
メージデータの格納内容との関係を示す模式図、第3図
はCPUによるイメージデータの読出し処理を示す流れ
図、第4図はドツトイメージパターンと従来におけるキ
ャラクタジェネレータに対するイメージデータの格納内
容との関係を示す模式図である。 1・・・CPU (中央処理装置)、
1 to 3 show embodiments of the present invention.
2 is a schematic diagram showing the relationship between the dot image pattern and the content of image data stored in the character generator. FIG. 3 is a flowchart showing the image data reading process by the CPU. FIG. 4 is a schematic diagram showing the relationship between a dot image pattern and the contents of image data stored in a conventional character generator. 1...CPU (central processing unit),

Claims (1)

【特許請求の範囲】[Claims] 文字、数字、記号等のドットイメージパターンをそのド
ットイメージパターンの各横1列を16進コードのイメ
ージデータに変換してキャラクタジェネレータに格納す
る場合に、イメージデータの先頭にヘッダーデータを設
け、そのヘッダーデータをそのヘッダーデータが付され
たイメージデータの後に同一のイメージデータが連続し
て何個あるかを示すデータとし、連続した同一のイメー
ジデータの格納を省略したことを特徴とするキャラクタ
ジェネレータのデータ格納方法。
When converting each horizontal row of dot image patterns such as letters, numbers, symbols, etc. into hexadecimal code image data and storing it in a character generator, header data is provided at the beginning of the image data, and the A character generator characterized in that the header data is data indicating the number of consecutive identical image data items after the image data to which the header data is attached, and storage of consecutive identical image data is omitted. Data storage method.
JP1178957A 1989-07-13 1989-07-13 Data storing method for character generator Pending JPH0344695A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1178957A JPH0344695A (en) 1989-07-13 1989-07-13 Data storing method for character generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1178957A JPH0344695A (en) 1989-07-13 1989-07-13 Data storing method for character generator

Publications (1)

Publication Number Publication Date
JPH0344695A true JPH0344695A (en) 1991-02-26

Family

ID=16057619

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1178957A Pending JPH0344695A (en) 1989-07-13 1989-07-13 Data storing method for character generator

Country Status (1)

Country Link
JP (1) JPH0344695A (en)

Similar Documents

Publication Publication Date Title
JPS58144890A (en) Character display area control system for character generator
JPH0344695A (en) Data storing method for character generator
JPS6035687B2 (en) Print data control device
JPH0985983A (en) Printer control device
JP2935510B2 (en) Output device and output method
JP2881180B2 (en) Control method of drawing head in thermal plotter
JPH08183207A (en) Method for controlling color image data
JP2690567B2 (en) Printing control device
JPS63254516A (en) Printer control system
JP3154243B2 (en) Printing equipment
JP2002335398A (en) Image processing method, image processing unit and image forming device
JP3055738B2 (en) Dot matrix pattern printing method and apparatus
JPH1093813A (en) Recording device
JP2908571B2 (en) Page printer
JP3145460B2 (en) Print data transfer control method
JPS61225063A (en) Printing apparatus
JPH0451190A (en) Pattern generating system
JPH03110182A (en) Hybrid printer
JPS63267556A (en) Printing control system of personal computer
JPS6364086A (en) Output unit
JPS58208836A (en) Japanese word processor
JPH06202610A (en) Method and device for pattern compression
JPS62199458A (en) Apparatus for processing document
JPH02299017A (en) Pattern data output controller
JPS60216378A (en) Signal generator for laser printer