JP2009237429A - Electronic apparatus and method of controlling the same - Google Patents

Electronic apparatus and method of controlling the same Download PDF

Info

Publication number
JP2009237429A
JP2009237429A JP2008085729A JP2008085729A JP2009237429A JP 2009237429 A JP2009237429 A JP 2009237429A JP 2008085729 A JP2008085729 A JP 2008085729A JP 2008085729 A JP2008085729 A JP 2008085729A JP 2009237429 A JP2009237429 A JP 2009237429A
Authority
JP
Japan
Prior art keywords
image
color
drawn
image data
unit
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.)
Withdrawn
Application number
JP2008085729A
Other languages
Japanese (ja)
Inventor
Takashi Nagai
隆 長井
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.)
Kyocera Corp
Original Assignee
Kyocera 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 Kyocera Corp filed Critical Kyocera Corp
Priority to JP2008085729A priority Critical patent/JP2009237429A/en
Publication of JP2009237429A publication Critical patent/JP2009237429A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an electronic apparatus capable of clearly displaying letters or the like without causing thinning and bleeding. <P>SOLUTION: The electronic apparatus 10 capable of displaying an image constituted of a main image and its background image includes: an output buffer 123 for drawing image data of the image; and a drawing section 145 configured to, while an image color of the image data to be drawn is an intermediate color formed based on the main image color and the background image color, and the image color of the image data drawn in a plot area R among the plot areas of the output buffer 123 is the same as the main image color, for stopping the drawing of the image data to be drawn in the plot area R. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、文字等の画像表示を行う携帯電話機やパーソナルコンピュータ等の電子機器およびその制御方法に関するものである。   The present invention relates to an electronic device such as a mobile phone or a personal computer that displays an image of characters and the like, and a control method thereof.

一般的に、携帯電話機やパーソナルコンピュータ(PC)等では、液晶表示装置(LCD)等からなるカラー表示装置に、画像や所定フォントの文字等を表示することができる。   In general, a cellular phone, a personal computer (PC), or the like can display images, characters of a predetermined font, and the like on a color display device including a liquid crystal display device (LCD).

ところで、スケーラブルフォント等のベクタ情報で構成されるフォントは、文字色を単色ではなく、多階調の色で出力を行う場合がある。これは、文字の曲線のラインをなるべく滑らかに見せるために、アンチエイリアス処理を行い、文字色と背景色との間に中間色を付与するためである。この中間色の計算は、文字を出力するドット(アドレス)と、その背景となるドットから中間色となる色を算出している。   By the way, a font composed of vector information such as a scalable font may output characters with a multi-tone color instead of a single color. This is because anti-aliasing processing is performed to make the curved line of the character appear as smooth as possible, and an intermediate color is added between the character color and the background color. In the calculation of the intermediate color, a color that is an intermediate color is calculated from the dot (address) that outputs the character and the dot that is the background.

このような方法を用いて記憶領域の同一ドットに同一文字を再描画した場合、前に出力したドットの文字の中間色を背景色としてアンチエイリアス処理を行うため、正確な中間色を算出できない問題が発生する。   If the same character is redrawn on the same dot in the storage area using such a method, the problem arises in that an accurate intermediate color cannot be calculated because the anti-aliasing process is performed using the intermediate color of the character of the previously output dot as the background color. .

そこで、以下のような電子機器が提案されている(特許文献1を参照)。図8は、一般的な電子機器の主要部を示すブロック図である。   Then, the following electronic devices are proposed (refer patent document 1). FIG. 8 is a block diagram illustrating a main part of a general electronic device.

図8に図示するように、電子機器1Aの主要部であるROM領域2Aには、表示するフォントのベクタデータ3が描画されており、電子機器1はベクタデータ3をワークバッファ4へグレースケールのビットマップデータとして内部展開する。
電子機器1Aは、ワークバッファ4のビットマップデータを図示しない表示装置に出力する前に、一旦出力用バッファ5に描画するが、この際に、電子機器1Aはワークバッファ4を参照しながら、出力用バッファ5の文字が出力されない背景画像のドットを対象として、背景色の平均となる色を算出する。そして、電子機器1Aは、出力用バッファ5のドットごとに、フォントの文字色と背景平均色から中間色を算出して色づけを行う。
As shown in FIG. 8, vector data 3 of the font to be displayed is drawn in the ROM area 2A which is the main part of the electronic device 1A. The electronic device 1 transfers the vector data 3 to the work buffer 4 in a gray scale. Internally expanded as bitmap data.
The electronic device 1A once draws the bitmap data of the work buffer 4 in the output buffer 5 before outputting it to a display device (not shown). At this time, the electronic device 1A outputs the data while referring to the work buffer 4. A color that is an average of the background colors is calculated for the dots of the background image from which characters in the buffer 5 are not output. Then, the electronic device 1A performs coloring by calculating an intermediate color from the character color of the font and the background average color for each dot of the output buffer 5.

特開2007−121735号公報JP 2007-121735 A

特許文献1が開示する方法は、同一文字を連続して同一位置へ描画する場合に有効であるが、同一文字を連続して1ドットずつずらして描画するような場合、鮮明な表示ができない。   The method disclosed in Patent Document 1 is effective when the same character is drawn continuously at the same position, but when the same character is drawn successively shifted by one dot, a clear display cannot be performed.

ここで、上述のように、同一文字を連続して1ドットずつずらして描画する場合の具体例を挙げる。図9は、同一文字を連続して1ドットずつずらして描画する場合の概念図である。   Here, as described above, a specific example in which the same character is continuously drawn by shifting by one dot is given. FIG. 9 is a conceptual diagram in the case where the same character is continuously drawn by shifting one dot at a time.

図9(A)に図示する「+」という記号をX軸の正の方向に1ドットずらすと、図9(B)の状態が描画される。図9(B)の状態からX軸の負の方向に1ドットずらし(図9(C))、さらにY軸の負の方向に1ドットずらし(図9(D))、その後Y軸の正の方向に1ドットずらし、色づけを行うと、図9(A)に図示する記号「+」は図9(F)に示す状態に描画される。   When the symbol “+” illustrated in FIG. 9A is shifted by one dot in the positive direction of the X axis, the state of FIG. 9B is drawn. 9B is shifted by 1 dot in the negative direction of the X axis (FIG. 9C), further shifted by 1 dot in the negative direction of the Y axis (FIG. 9D), and then the positive direction of the Y axis is changed. When the color is shifted by one dot in the direction, the symbol “+” shown in FIG. 9A is drawn in the state shown in FIG.

図9の具体例は単色の場合であるが、アンチエイリアス処理が施されたスケーラブルフォントに対して、図9に図示するような描画を行う場合、特許文献1が開示する方法では、図9(B)に示す2回目以降の描画時に描画先の座標がずれるため、前に描画した文字色が背景色として算出され、適切な中間色を求めることができず、文字等が掠れたように表示される。   The specific example of FIG. 9 is the case of a single color, but when drawing as shown in FIG. 9 is performed on a scalable font that has been subjected to anti-aliasing processing, the method disclosed in Patent Document 1 uses FIG. ), The coordinates of the drawing destination are shifted during the second and subsequent drawing, so that the previously drawn character color is calculated as the background color, an appropriate intermediate color cannot be obtained, and the character is displayed as if it has been drawn .

本発明は、文字等を掠れや滲みがなく鮮明に表示できる電子機器およびその制御方法を提供することにある。   An object of the present invention is to provide an electronic device and a control method thereof that can display characters and the like clearly without blurring or bleeding.

本発明の第1の観点の電子機器は、主画像およびその背景画像からなる画像を表示可能な電子機器であって、前記画像の画像データを描画するバッファと、前記バッファの描画領域のうち、描画すべき画像データの画像の色が前記画像の主画像の色と背景画像の色とに基づき作成された中間色で、前記描画領域に描画されている前記画像データの画像の色が主画像の色の場合、前記描画すべき画像データの前記描画領域への描画を停止する描画部とを有する。   An electronic device according to a first aspect of the present invention is an electronic device capable of displaying an image composed of a main image and a background image thereof, and includes a buffer for drawing image data of the image, and a drawing area of the buffer, The color of the image data to be drawn is an intermediate color created based on the color of the main image of the image and the color of the background image, and the color of the image data drawn in the drawing area is that of the main image. In the case of color, the image processing apparatus includes a drawing unit that stops drawing of the image data to be drawn in the drawing area.

好適には、前記電子機器は、前記描画すべき画像データが前に描画した前記画像データと一致するか否かを判別する判別部を有し、前記描画部は、前記判別部の判別結果が一致しないとの判別結果であった場合に、前記画像データを前記バッファの対応する描画領域に描画する。   Preferably, the electronic device includes a determination unit that determines whether or not the image data to be drawn matches the previously drawn image data, and the drawing unit has a determination result of the determination unit. If it is determined that they do not match, the image data is drawn in the corresponding drawing area of the buffer.

好適には、前記電子機器は、前記画像データに関する情報が登録され、前記登録された情報を管理する管理部を有し、前記情報は、少なくとも画像コード、座標位置および前記バッファのバッファポインタに関する情報を含み、前記判別部は、前に描画された時の前記情報と今回描画しようとする時の前記情報とが一致する場合、両者の画像データは同一であるものと判別する。   Preferably, the electronic device has information related to the image data registered therein, and includes a management unit that manages the registered information, and the information includes information related to at least an image code, a coordinate position, and a buffer pointer of the buffer. The determination unit determines that the image data is the same when the information drawn before and the information at the current drawing match.

好適には、前記管理部は、前記判別部の比較結果が一致しないとの比較結果であった場合、登録されている前記情報を更新する。   Preferably, the management unit updates the registered information when the comparison result is that the comparison result of the determination unit does not match.

好適には、前記主画像の色およびその背景画像の色に基づいて前記中間色を取得し、前記描画すべき画像データにアンチエイリアス処理を施すアンチエイリアス処理部を有する。   Preferably, the image processing apparatus includes an anti-aliasing processing unit that acquires the intermediate color based on the color of the main image and the color of the background image and performs anti-aliasing processing on the image data to be drawn.

本発明の第2の観点の電子機器の制御方法は、画像データを描画するバッファを有し、主画像およびその背景画像からなる画像を表示可能な電子機器の制御方法であって、前記バッファの描画領域のうち、描画すべき画像データの画像の色が前記画像の主画像の色と背景画像の色とに基づき作成された中間色で、前記描画領域に描画されている前記画像データの画像の色が主画像の色の場合、前記描画すべき画像データの前記描画領域への描画を停止するステップを有する。   An electronic device control method according to a second aspect of the present invention is a method for controlling an electronic device having a buffer for drawing image data and capable of displaying an image composed of a main image and a background image thereof. Of the drawing areas, the color of the image data to be drawn is an intermediate color created based on the main image color and the background image color of the image, and the image data image drawn in the drawing area When the color is the color of the main image, there is a step of stopping drawing of the image data to be drawn in the drawing area.

本発明によれば、文字等を掠れや滲みがなく鮮明に表示できる。   According to the present invention, characters and the like can be clearly displayed without blurring or bleeding.

以下、本発明の実施形態を図面に関連付けて説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

はじめに、図1を中心に図2および図3を適宜参照しながら本実施形態に係る電子機器について説明する。
図1は、本実施形態に係る電子機器の構成例を示すブロック図である。図2は、図1の記憶部の詳細を示す図である。図3は、本実施形態に係る描画部の処理について説明するための図である。
First, the electronic apparatus according to the present embodiment will be described with reference to FIGS. 2 and 3 as appropriate with reference to FIG.
FIG. 1 is a block diagram illustrating a configuration example of an electronic apparatus according to the present embodiment. FIG. 2 is a diagram illustrating details of the storage unit in FIG. 1. FIG. 3 is a diagram for explaining processing of the drawing unit according to the present embodiment.

図1に図示するように、電子機器10は、表示部11、記憶部12、操作部13、および制御部14を有する。   As illustrated in FIG. 1, the electronic device 10 includes a display unit 11, a storage unit 12, an operation unit 13, and a control unit 14.

表示部11は、たとえば液晶表示装置(LCD)によって構成され、制御部14の制御に応じて所定フォントの文字(かな、カタカナ、漢字、アルファベット、数字、記号等を含むものとする)、画像等をカラー表示する。
なお、本実施形態では、背景画像に表示された文字を主画像とする。無論、主画像としては文字に限定されるものではなく、その他の画像であってもよい。
The display unit 11 is composed of, for example, a liquid crystal display (LCD), and color characters (such as kana, katakana, kanji, alphabets, numbers, symbols, etc.), images, etc. in a predetermined font under the control of the control unit 14. indicate.
In the present embodiment, the character displayed on the background image is the main image. Of course, the main image is not limited to characters and may be other images.

記憶部12は、ROM領域12A、RAM領域12Bを有し、ROM領域12Aにはベクタデータ121が記憶され、RAM領域12Bにはワークバッファ122、および本発明のバッファとしての出力用バッファ123が構成され、管理テーブル124が記憶されている。記憶部12は、制御部14の制御に従って、制御部14の処理で使用されるデータ、一時的なデータ、プログラム等を記憶する。   The storage unit 12 includes a ROM area 12A and a RAM area 12B. The ROM area 12A stores vector data 121. The RAM area 12B includes a work buffer 122 and an output buffer 123 as a buffer according to the present invention. The management table 124 is stored. The storage unit 12 stores data, temporary data, programs, and the like used in the processing of the control unit 14 under the control of the control unit 14.

ベクタデータ121は、文字情報であるフォント(書体)のベクタデータである。   The vector data 121 is vector data of a font (typeface) that is character information.

ワークバッファ122は、図2に図示するように、ROM領域12Aから入力されたベクタデータ121を多階調のグレースケール(グレー濃度0%〜100%)のビットマップデータとして内部展開するためのバッファ領域である。   As shown in FIG. 2, the work buffer 122 is a buffer for internally expanding the vector data 121 input from the ROM area 12A as bitmap data of multi-grayscale gray scale (gray density 0% to 100%). It is an area.

出力用バッファ123は、図2に図示するように、ワークバッファ122から入力されたデータを表示部11に出力するためのバッファ領域である。   The output buffer 123 is a buffer area for outputting data input from the work buffer 122 to the display unit 11 as shown in FIG.

管理テーブル124は、ワークバッファ122に展開された文字(ビットマップデータ)の文字コード(たとえばJIS X0208:1997等)、フォント、出力用バッファ123(または表示部11)上の座標位置、アンチエイリアス処理に使用する出力用バッファ123のバッファポインタ、文字サイズ、文字色等の表示に必要な描画情報で構成されている。管理テーブル124は、判別部142によって参照され、管理部143の管理の下で更新される。   The management table 124 is used for character codes (for example, JIS X0208: 1997) expanded in the work buffer 122, fonts, coordinate positions on the output buffer 123 (or the display unit 11), and anti-aliasing processing. It is composed of drawing information necessary for displaying the buffer pointer, character size, character color, etc. of the output buffer 123 to be used. The management table 124 is referred to by the determination unit 142 and is updated under the management of the management unit 143.

操作部13は、各種機能を選択し、実行するためのキー、あるいはポインティングデバイス等で構成され、文字や画像等を制御部14に入力できるように構成されている。   The operation unit 13 includes a key for selecting and executing various functions, a pointing device, or the like, and is configured to be able to input characters, images, and the like to the control unit 14.

制御部14は、データ展開部141、判別部142、管理部143、アンチエイリアス処理部144、および描画部145を有する。制御部14は、記憶部12に記憶されているプログラムに基づいて表示部11への表示処理を実行できるマイクロコンピュータ(CPU)等で構成され、電子機器10全体の動作を統括する。   The control unit 14 includes a data expansion unit 141, a determination unit 142, a management unit 143, an antialiasing processing unit 144, and a drawing unit 145. The control unit 14 is configured by a microcomputer (CPU) or the like that can execute display processing on the display unit 11 based on a program stored in the storage unit 12, and controls the entire operation of the electronic device 10.

データ展開部141は、ROM領域12Aから表示すべき文字のフォントのベクタデータをビットマップデータとしてワークバッファ122に描画(内部展開)する。   The data expansion unit 141 draws (internally expands) the font vector data of characters to be displayed from the ROM area 12A as bitmap data in the work buffer 122.

判別部142は、RAM領域12Bの管理テーブル124を参照し、今回ワークバッファ122に展開されたビットマップデータの描画情報が前に展開されたときのものと同一であるか否かを判断する。   The determination unit 142 refers to the management table 124 in the RAM area 12B, and determines whether or not the drawing information of the bitmap data expanded in the current work buffer 122 is the same as that previously expanded.

管理部143は、RAM領域12Bの管理テーブル124を管理し、管理テーブル124が未登録の場合には新たに作成して登録し、判別部142の判別結果に応じて管理テーブル124を最新のものに更新する。   The management unit 143 manages the management table 124 in the RAM area 12B. If the management table 124 is not registered, the management unit 143 newly creates and registers the management table 124, and updates the management table 124 according to the determination result of the determination unit 142. Update to

アンチエイリアス処理部144は、ワークバッファ122に展開された各ドットのビットマップデータに対して、データの文字色(主画像色)と背景色とに基づいて中間色を算出し、色づけ等を行うアンチエイリアス処理を施す。   The anti-aliasing processing unit 144 calculates an intermediate color based on the character color (main image color) and the background color of each dot bitmap data developed in the work buffer 122, and performs coloring or the like. Apply.

描画部145は、出力用バッファ123の描画領域Rに描画されているビットマップデータの色(文字色、中間色、または背景色)をドット毎に調べ、アンチエイリアス処理が施されたワークバッファ122のビットマップデータを出力用バッファ123の対応する描画領域Rに描画する。
なお、描画領域とは、出力用バッファ123におけるデータの格納領域をいう。また、バッファにデータを描画するとは、バッファにデータを格納することをいい、データをバッファに格納することを単に、データを描画するともいう。
ただし、描画部145は、判別部142の判別結果が一致しない場合、図3に示す描画規則に従い描画する。具体的には、描画部146は、ワークバッファ122のビットマップデータを描画先である出力用バッファ123の対応する描画領域Rに描画するが、描画すべきドットのビットマップデータの色が中間色で、描画先の対応するドットに描画されたビットマップデータの色が文字色である場合には、その描画を停止(スキップ)する。
The drawing unit 145 checks the color (character color, intermediate color, or background color) of the bitmap data drawn in the drawing area R of the output buffer 123 for each dot, and the bit of the work buffer 122 subjected to anti-aliasing processing. The map data is drawn in the corresponding drawing area R of the output buffer 123.
The drawing area is a data storage area in the output buffer 123. In addition, drawing data in the buffer means storing data in the buffer, and storing data in the buffer is simply drawing data.
However, if the determination result of the determination unit 142 does not match, the drawing unit 145 performs drawing according to the drawing rule shown in FIG. Specifically, the drawing unit 146 draws the bitmap data of the work buffer 122 in the corresponding drawing region R of the output buffer 123 that is the drawing destination, but the color of the bitmap data of the dots to be drawn is an intermediate color. When the color of the bitmap data drawn on the corresponding dot at the drawing destination is a character color, the drawing is stopped (skipped).

次に、電子機器10の動作を図2および図4に関連付けて説明する。図4は、本実施形態に係る電子機器の動作例を示すフローチャートである。   Next, the operation of the electronic device 10 will be described with reference to FIGS. FIG. 4 is a flowchart illustrating an operation example of the electronic apparatus according to the present embodiment.

図4に図示するように、電子機器10が描画を開始すると(ステップST1)、データ展開部141は、表示部11に表示しようとする文字(たとえば図2に図示する文字「あ」)のベクタデータをROM領域12Aから読み出し、グレースケールのビットマップデータとしてワークバッファ122上に内部展開する(ステップST2)。   As shown in FIG. 4, when the electronic device 10 starts drawing (step ST1), the data development unit 141 displays a vector of characters to be displayed on the display unit 11 (for example, the character “A” shown in FIG. 2). Data is read from the ROM area 12A and internally expanded on the work buffer 122 as grayscale bitmap data (step ST2).

このとき管理部143は、ワークバッファ122上に展開された文字の管理テーブル124が未登録の場合、すなわち「あ」という文字をはじめて表示する場合(ステップST3のYES)、アンチエイリアス処理部144は、ビットマップデータにアンチエイリアス処理を施し、描画部145は、アンチエイリアス処理されたビットマップデータを出力用バッファ123の対応する描画領域Rに描画する(ステップST4)。なお、このとき描画部145は、図3に示す描画規則に従う必要はなく、単に描画するだけでよい。
その後、管理部143は、描画された文字の描画情報を管理テーブル124に登録し、RAM領域12Bに描画する(ステップST5)。
管理テーブル124が新たに登録された後、制御部14は、出力用バッファ123のデータを表示部11に出力する(ステップST6、ST7)。
At this time, when the character management table 124 developed on the work buffer 122 is not registered, that is, when the character “A” is displayed for the first time (YES in step ST3), the management unit 143 displays the anti-aliasing processing unit 144. Anti-aliasing processing is performed on the bitmap data, and the rendering unit 145 renders the anti-aliased bitmap data in the corresponding rendering region R of the output buffer 123 (step ST4). At this time, the drawing unit 145 does not need to follow the drawing rules shown in FIG. 3 and simply draws.
Thereafter, the management unit 143 registers the drawing information of the drawn characters in the management table 124 and draws it in the RAM area 12B (step ST5).
After the management table 124 is newly registered, the control unit 14 outputs the data in the output buffer 123 to the display unit 11 (steps ST6 and ST7).

一方、ステップST3の処理において、管理テーブル124が既に登録されている場合(NO)、管理部143は、今回ワークバッファ122上に展開された文字の描画情報と、前に登録された管理テーブル124の描画情報とを比較する(ステップST8)。
判別部142の比較結果が一致しない場合(ステップST9のNO)、ステップST4の処理が実行されるが、管理テーブル124が未登録の場合(ステップST3のYES)と異なり、描画部146は、図3に示す描画規則に従い描画する。
詳細には、描画部145は、ワークバッファ122のビットマップデータを描画先である出力用バッファ123の対応する描画領域Rに描画するが、描画すべきドットのビットマップデータの色が中間色で、描画先の対応するドットに描画されたビットマップデータの色が文字色である場合には、描画を停止(スキップ)する。
On the other hand, if the management table 124 has already been registered in the process of step ST3 (NO), the management unit 143 displays the character drawing information developed on the work buffer 122 this time and the management table 124 registered previously. Are compared with the drawing information (step ST8).
When the comparison result of the determination unit 142 does not match (NO in step ST9), the process of step ST4 is executed. However, unlike the case where the management table 124 is not registered (YES in step ST3), the drawing unit 146 Drawing is performed according to the drawing rule shown in FIG.
Specifically, the drawing unit 145 draws the bitmap data of the work buffer 122 in the corresponding drawing region R of the output buffer 123 that is the drawing destination, but the color of the bitmap data of the dots to be drawn is an intermediate color, If the color of the bitmap data drawn on the corresponding dot at the drawing destination is a character color, drawing is stopped (skipped).

その後、管理テーブル124が更新され(ステップST5)、制御部14は、出力用バッファ123のデータを表示部11に出力する(ステップST6、ST7)。   Thereafter, the management table 124 is updated (step ST5), and the control unit 14 outputs the data in the output buffer 123 to the display unit 11 (steps ST6 and ST7).

表示する文字の管理テーブル124が既に登録され(ステップST3のNO)、判別部142の比較結果が一致した場合(ステップST9のYES)、制御部14は、ワークバッファ122のビットマップデータを一旦出力用バッファ123に出力した上で、そのまま表示部11に出力する(ステップST6、ST7)。   When the management table 124 of the characters to be displayed has already been registered (NO in step ST3) and the comparison result of the determination unit 142 matches (YES in step ST9), the control unit 14 once outputs the bitmap data of the work buffer 122. After being output to the buffer 123, it is output to the display unit 11 as it is (steps ST6 and ST7).

つづいて、本発明の特徴である電子機器10によって描画された具体的な描画例を、図8に示す一般的な電子機器1Aによる描画例と対比させながら説明する。図5は、本実施形態に係る電子機器によって描画されたビットマップデータ一例を示す概念図である。図6は、一般的な電子機器によって描画されたビットマップデータの一例を示す概念を示す図である。   Next, a specific drawing example drawn by the electronic device 10 which is a feature of the present invention will be described in comparison with a drawing example by the general electronic device 1A shown in FIG. FIG. 5 is a conceptual diagram showing an example of bitmap data drawn by the electronic apparatus according to the present embodiment. FIG. 6 is a diagram showing a concept showing an example of bitmap data drawn by a general electronic device.

以下の説明では、アンチエイリアス処理が施された記号「−」を連続して1ドットずつずらして描画する場合について説明する。
なお、描画領域Rは、たとえば13ドット(=X軸)×7ドット(=Y軸)であって、描画領域R中の任意のドット(アドレス)をドットD(X,Y)のように表記する。たとえばドットD(1,1)は、X軸の1ドット目、Y軸の1ドット目を意味し、ドットD(1〜3,1〜3)は、X軸の1ドット目〜3ドット目、Y軸の1ドット目〜3ドット目の描画領域を意味するものとする。
また、上述の描画領域Rは、本実施形態に係る電子機器10および一般的な電子機器1共に、出力用バッファ123(図8の出力用バッファ5)に設けられている描画領域であるとする。
In the following description, a case will be described in which the anti-aliasing-processed symbol “-” is continuously shifted by one dot.
The drawing area R is, for example, 13 dots (= X axis) × 7 dots (= Y axis), and an arbitrary dot (address) in the drawing area R is represented as a dot D (X, Y). To do. For example, the dot D (1, 1) means the first dot on the X axis and the first dot on the Y axis, and the dots D (1 to 3, 1 to 3) mean the first to third dots on the X axis. , And the Y-axis drawing area of the first to third dots.
The drawing area R described above is a drawing area provided in the output buffer 123 (the output buffer 5 in FIG. 8) in both the electronic device 10 according to the present embodiment and the general electronic device 1. .

図5(A)および図6(A)に図示するように、ドットD(3〜9、4)に記号「−」を表す文字色部分が描画され、その隣接する周辺に幅1ドットの中間色が描画されている(すなわち、アンチエイリアス処理されている)。便宜上、図5(A)の破線で囲む記号「−」の周縁部を記号BLKと称し、図6(A)の破線で囲む記号「−」の周縁部を記号BLKaと称する。   As shown in FIGS. 5A and 6A, a character color portion representing the symbol “-” is drawn on the dots D (3 to 9, 4), and an intermediate color having a width of 1 dot around the adjacent area. Is drawn (ie, anti-aliased). For convenience, the peripheral portion of the symbol “−” surrounded by the broken line in FIG. 5A is referred to as symbol BLK, and the peripheral portion of the symbol “−” surrounded by the broken line in FIG. 6A is referred to as symbol BLKa.

両記号共にX軸の負の方向へ1ドット平行移動する場合、本実施形態の電子機器10によれば図5(A)の記号BLKは、図5(B)のように描画され、一般的な電子機器10Aによれば図6(A)の記号BLKaは図6(B)のように描画される。   When both symbols are translated by one dot in the negative direction of the X axis, according to the electronic apparatus 10 of the present embodiment, the symbol BLK in FIG. 5A is drawn as shown in FIG. According to the electronic apparatus 10A, the symbol BLKa in FIG. 6A is drawn as shown in FIG.

図6(B)に図示する一般的な電子機器1Aによる描画例では、たとえばドットD(4〜9,3)のデータの色は、図6(A)のものよりも濃くなっている。これは、前に描画したときの回の中間色に今回の中間色が重ねられ、平均化等の処理が施されたためである。   In the drawing example by the general electronic device 1A illustrated in FIG. 6B, for example, the color of the data of the dots D (4-9, 3) is darker than that of FIG. 6A. This is because the current intermediate color is superimposed on the intermediate color of the previous rendering and subjected to processing such as averaging.

これに対して、図5(B)に図示する本実施形態の電子機器10による描画例では、たとえばドットD(4〜9,3)のデータの色は、図5(A)のものと同一の中間色である。これは、前に描画したときの中間色に今回の中間色が描画されたためで、図6(B)のように記号「−」の輪郭が滲む(ぼやける)ことはない。   On the other hand, in the drawing example by the electronic apparatus 10 of the present embodiment illustrated in FIG. 5B, for example, the data color of the dots D (4-9, 3) is the same as that of FIG. Is an intermediate color. This is because the current intermediate color is drawn as the intermediate color from the previous drawing, and the outline of the symbol “-” does not blur (blur) as shown in FIG. 6B.

次に、両記号共にさらにY軸の負の方向へ1ドット平行移動する場合、本実施形態の電子機器10によれば図5(B)の記号BLKは、図5(C)のように描画され、一般的な電子機器10Aによれば図6(B)の記号BLKaは図6(C)のように描画される。   Next, when both symbols further move one dot in the negative direction of the Y axis, according to the electronic apparatus 10 of the present embodiment, the symbol BLK in FIG. 5B is drawn as shown in FIG. Then, according to the general electronic device 10A, the symbol BLKa in FIG. 6B is drawn as shown in FIG.

このとき、たとえば図5(C)のドットD(4〜10、4)のデータの色は、文字色であるのに対し、図6(C)のドットD(4〜10、4)のデータの色は濃い中間色となっている。これは、本実施形態の特徴である描画部145が、図5(B)のドットD(4〜10、5)の中間色をドットD(4〜10、4)の文字色に描画しなかったためである。   At this time, for example, the data color of the dots D (4 to 10 and 4) in FIG. 5C is the character color, whereas the data of the dots D (4 to 10 and 4) in FIG. The color of is a dark intermediate color. This is because the drawing unit 145, which is a feature of the present embodiment, did not draw the intermediate color of the dots D (4-10, 5) in FIG. 5B to the character color of the dots D (4-10, 4). It is.

同様にして、両記号共にY軸の正の方向へ1ドット平行移動すると、両記号は図5(D)および図6(D)のように描画され、さらに両記号共にX軸の正の方向へ1ドット平行移動すると、両記号は図5(E)および図6(E)のように描画される。その後、両記号共にドットD(4〜10、4)の文字色をたとえば緑色に色づけすると、図5(A)および図6(A)に図示する記号「−」は図5(F)および図6(F)のように描画される。   Similarly, when both symbols are translated by one dot in the positive direction of the Y axis, both symbols are drawn as shown in FIGS. 5D and 6D, and both symbols are positive in the X axis direction. When moving one dot in parallel, both symbols are drawn as shown in FIGS. 5 (E) and 6 (E). Thereafter, when the character color of the dots D (4 to 10 and 4) is colored, for example, to green for both symbols, the symbol “−” shown in FIGS. 5A and 6A is changed to FIG. 5F and FIG. It is rendered as 6 (F).

図6(F)に図示するように、一般的な電子機器1Aによる描画では、ドットD(4〜10,4)の周辺が滲んだように描画されるのに対し、本実施形態の電子機器10による描画では、ドットD(4〜10,4)の周辺が滲むことなく、非常に鮮明である。   As shown in FIG. 6F, in the drawing with the general electronic device 1A, the periphery of the dots D (4 to 10 and 4) is drawn, whereas the electronic device of this embodiment is drawn. In the drawing by 10, the periphery of the dot D (4 to 10 and 4) does not blur and is very clear.

本実施形態によれば、主画像およびその背景画像からなる画像を表示可能な電子機器10は、画像の画像データを描画する出力用バッファ123と、出力用バッファ123の描画領域のうち、描画すべき画像データの画像の色が画像の主画像の色と背景画像の色とに基づき作成された中間色で、描画領域Rに描画されている画像データの画像の色が主画像の色の場合、描画すべき画像データの描画領域Rへの描画を停止する描画部145とを有することから、掠れたり滲むことなく文字等が鮮明に表示できる利点がある。   According to the present embodiment, the electronic device 10 capable of displaying an image composed of a main image and its background image draws the output buffer 123 for drawing the image data of the image and the drawing area of the output buffer 123. When the color of the image of the power image data is an intermediate color created based on the color of the main image of the image and the color of the background image, and the color of the image of the image data drawn in the drawing area R is the color of the main image, Since it has the drawing unit 145 that stops drawing the image data to be drawn in the drawing region R, there is an advantage that characters and the like can be clearly displayed without blurring or bleeding.

また、本実施形態によれば、電子機器10が、画像データに関する描画情報が管理テーブル124に登録され、登録された描画情報を管理する管理部143を有することから、余計なデータ転送およびアンチエイリアス処理時の中間色の演算を省略でき、電子機器全体の性能が向上する利点がある。   In addition, according to the present embodiment, the electronic device 10 has the management unit 143 that manages drawing information related to image data registered in the management table 124, and therefore, extra data transfer and anti-aliasing processing. There is an advantage that the calculation of the intermediate color at the time can be omitted, and the performance of the entire electronic device is improved.

このような特徴を有する電子機器10は、携帯電話機やパーソナルコンピュータ等に搭載可能で、画像や所定フォントの文字等を表示することが可能である。以下に具体例を示す。   The electronic device 10 having such characteristics can be mounted on a mobile phone, a personal computer, or the like, and can display images, characters of a predetermined font, and the like. Specific examples are shown below.

図7は、本実施形態に係る電子機器が採用可能な携帯電話機の外観の一例を示す図である。
図7の携帯電話機100は、たとえば図1の電子機器10の表示部11が表示部101として適用され、操作部13がテンキー等を含む操作部102として適用される。
そして、記憶部12および制御部14は、携帯電話機100内部の図示しない回路基板に搭載されている。
この場合、制御部14に、電話機に関連する処理機能、たとえば操作部13のおけるキー入力操作に応じて通信処理部(図示せず)における発呼、着信シーケンスを制御する処理機能や、音声処理部(図示せず)において入力される音声データを通信処理部において送受信させる処理機能等を持つように構成することも可能である。
FIG. 7 is a diagram illustrating an example of the appearance of a mobile phone that can employ the electronic apparatus according to the present embodiment.
In the mobile phone 100 of FIG. 7, for example, the display unit 11 of the electronic device 10 of FIG. 1 is applied as the display unit 101, and the operation unit 13 is applied as the operation unit 102 including a numeric keypad.
The storage unit 12 and the control unit 14 are mounted on a circuit board (not shown) inside the mobile phone 100.
In this case, the control unit 14 has processing functions related to the telephone, for example, processing functions for controlling outgoing / incoming sequences in a communication processing unit (not shown) in accordance with key input operations on the operation unit 13, voice processing, It is also possible to have a processing function or the like that causes the communication processing unit to transmit / receive voice data input in the unit (not shown).

本実施形態に係る電子機器を採用した携帯電話機等では、表示部101が文字等を掠れたり滲むことなく鮮明に表示できる利点がある。   In a mobile phone or the like that employs the electronic apparatus according to the present embodiment, there is an advantage that the display unit 101 can clearly display characters without blurring or bleeding.

実施形態に係る電子機器の構成例を示すブロック図である。It is a block diagram which shows the structural example of the electronic device which concerns on embodiment. 図1の記憶部の詳細を示す図である。It is a figure which shows the detail of the memory | storage part of FIG. 実施形態に係る描画部の処理について説明するための図である。It is a figure for demonstrating the process of the drawing part which concerns on embodiment. 実施形態に係る電子機器の動作例を示すフローチャートである。It is a flowchart which shows the operation example of the electronic device which concerns on embodiment. 実施形態に係る電子機器によって描画されたビットマップデータ一例を示す概念図である。It is a conceptual diagram which shows an example of the bitmap data drawn by the electronic device which concerns on embodiment. 一般的な電子機器によって描画されたビットマップデータの一例を示す概念を示す図である。It is a figure which shows the concept which shows an example of the bitmap data drawn with the general electronic device. 実施形態に係る電子機器が採用可能な携帯電話機の外観の一例を示す図である。It is a figure which shows an example of the external appearance of the mobile telephone which can employ | adopt the electronic device which concerns on embodiment. 一般的な電子機器の主要部を示すブロック図である。It is a block diagram which shows the principal part of a general electronic device. 同一文字を連続して1ドットずつずらして描画する場合の概念図である。It is a conceptual diagram in the case of drawing the same character by shifting one dot at a time.

符号の説明Explanation of symbols

10…電子機器、11…表示部、12…記憶部、13…操作部、14…制御部、12A…ROM領域、12B…RAM領域、121…ベクタデータ、122…ワークバッファ、123…出力用バッファ(バッファ)、124…管理テーブル、141…データ展開部、142…判別部、143…管理部、144…アンチエイリアス処理部、145…描画部   DESCRIPTION OF SYMBOLS 10 ... Electronic device, 11 ... Display part, 12 ... Memory | storage part, 13 ... Operation part, 14 ... Control part, 12A ... ROM area | region, 12B ... RAM area | region, 121 ... Vector data, 122 ... Work buffer, 123 ... Output buffer (Buffer), 124 ... management table, 141 ... data development unit, 142 ... determination unit, 143 ... management unit, 144 ... anti-aliasing processing unit, 145 ... drawing unit

Claims (6)

主画像およびその背景画像からなる画像を表示可能な電子機器であって、
前記画像の画像データを描画するバッファと、
前記バッファの描画領域のうち、描画すべき画像データの画像の色が前記画像の主画像の色と背景画像の色とに基づき作成された中間色で、前記描画領域に描画されている前記画像データの画像の色が主画像の色の場合、前記描画すべき画像データの前記描画領域への描画を停止する描画部と
を有する電子機器。
An electronic device capable of displaying an image composed of a main image and a background image thereof,
A buffer for drawing image data of the image;
Of the drawing area of the buffer, the image data to be drawn is an intermediate color created based on the color of the main image and the background image of the image, and the image data drawn in the drawing area And a drawing unit that stops drawing the image data to be drawn in the drawing area when the color of the image is the color of the main image.
前記描画すべき画像データが前に描画した前記画像データと一致するか否かを判別する判別部を有し、
前記描画部は、
前記判別部の判別結果が一致しないとの判別結果であった場合に、前記画像データを前記バッファの対応する描画領域に描画する
請求項1記載の電子機器。
A determination unit for determining whether or not the image data to be drawn matches the previously drawn image data;
The drawing unit
The electronic device according to claim 1, wherein the image data is drawn in a corresponding drawing area of the buffer when the determination result of the determination unit indicates that the determination results do not match.
前記画像データに関する情報が登録され、前記登録された情報を管理する管理部を有し、
前記情報は、少なくとも画像コード、座標位置および前記バッファのバッファポインタに関する情報を含み、
前記判別部は、
前に描画された時の前記情報と今回描画しようとする時の前記情報とが一致する場合、両者の画像データは同一であるものと判別する
請求項2記載の電子機器。
Information related to the image data is registered, and includes a management unit that manages the registered information.
The information includes at least information regarding an image code, a coordinate position, and a buffer pointer of the buffer;
The discrimination unit
The electronic device according to claim 2, wherein when the information when drawn before and the information when trying to draw this time coincide with each other, the image data of both are determined to be the same.
前記管理部は、
前記判別部の比較結果が一致しないとの比較結果であった場合、登録されている前記情報を更新する
請求項3記載の電子機器。
The management unit
The electronic device according to claim 3, wherein the registered information is updated when the comparison result indicates that the comparison result of the determination unit does not match.
前記主画像の色およびその背景画像の色に基づいて前記中間色を取得し、前記描画すべき画像データにアンチエイリアス処理を施すアンチエイリアス処理部を有する
請求項1から4のいずれか一に記載の電子機器。
5. The electronic apparatus according to claim 1, further comprising an anti-aliasing processing unit that acquires the intermediate color based on the color of the main image and the color of the background image and performs anti-aliasing processing on the image data to be drawn. .
画像データを描画するバッファを有し、主画像およびその背景画像からなる画像を表示可能な電子機器の制御方法であって、
前記バッファの描画領域のうち、描画すべき画像データの画像の色が前記画像の主画像の色と背景画像の色とに基づき作成された中間色で、前記描画領域に描画されている前記画像データの画像の色が主画像の色の場合、前記描画すべき画像データの前記描画領域への描画を停止するステップ
を有する電子機器の制御方法。
A control method for an electronic device having a buffer for drawing image data and capable of displaying an image composed of a main image and a background image thereof,
Of the drawing area of the buffer, the image data to be drawn is an intermediate color created based on the color of the main image and the background image of the image, and the image data drawn in the drawing area A method for controlling an electronic device, comprising: stopping drawing of the image data to be drawn in the drawing area when the color of the image is the color of the main image.
JP2008085729A 2008-03-28 2008-03-28 Electronic apparatus and method of controlling the same Withdrawn JP2009237429A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008085729A JP2009237429A (en) 2008-03-28 2008-03-28 Electronic apparatus and method of controlling the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008085729A JP2009237429A (en) 2008-03-28 2008-03-28 Electronic apparatus and method of controlling the same

Publications (1)

Publication Number Publication Date
JP2009237429A true JP2009237429A (en) 2009-10-15

Family

ID=41251407

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008085729A Withdrawn JP2009237429A (en) 2008-03-28 2008-03-28 Electronic apparatus and method of controlling the same

Country Status (1)

Country Link
JP (1) JP2009237429A (en)

Similar Documents

Publication Publication Date Title
KR100677689B1 (en) Character image generating apparatus, character image generating method, display control apparatus, display control method and computer-readable recording medium for recording character image generation program or display control program there on
US20070013700A1 (en) Mobile communication terminal having function of animating input characters
JP2007517251A (en) Configuration for font scaling
JP2009237429A (en) Electronic apparatus and method of controlling the same
JP2010282200A (en) Structure of animation font file and text-displaying method for mobile terminal
US10049478B2 (en) Retrieval and display of visual objects
JP4662412B2 (en) Character graphic display device, character graphic display method, program, and recording medium
JP2009237428A (en) Electronic apparatus and image processing method thereof
JP2007240848A (en) Display program, data structure and display device
JP2005114958A5 (en)
KR100705188B1 (en) A character font display method
JP5197917B2 (en) Data display device and data display method
JP2005004318A (en) Apparatus and program for image processing
EP1916650A1 (en) Character data generation device, electronic information device, character data generation program, and readable recording medium
JP2000267644A (en) Device and method for processing font, and storage medium therefor
JP2018201145A (en) Information processing apparatus and information processing method
JP2007264090A (en) Built-in device provided with font change function, and program thereof
JP3883554B2 (en) Character / graphic display device, program, and recording medium
JP2005077750A (en) Display device and character display control method
JP4726087B2 (en) Data processing apparatus, data processing method, electronic information device, control program, and readable recording medium
CN116912093A (en) Picture rendering method and device, electronic equipment and storage medium
JP4461965B2 (en) CHARACTER IMAGE GENERATION DEVICE, CHARACTER IMAGE GENERATION PROGRAM, AND CHARACTER IMAGE GENERATION METHOD
JP4515978B2 (en) Drawing apparatus and program thereof
CN115240196A (en) Character processing method and device, storage medium and electronic equipment
JP4234664B2 (en) Image drawing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110225

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20110830