Information processing unit, its method and storage medium
Abstract
This record has no abstract on file.
Term
No projected expiry on record.
- Priority and filed
- Granted
- Today
10 claims: 6 independent, 4 dependent
- 1Specifies to fill with a color similar to the background color when printingA determination means for determining the output destination of the white element for which the white outline attribute is set, an acquisition means for acquiring the background color of the output destination determined by the determination means, and an acquisition means.When the output destination determined by the determination means is a display device,A color different from the background color acquired by the acquisition means is set for the white element.Then, when the output destination determined by the determination means is a printing device, the same color as the background color acquired by the acquisition means is set for the white element.An information processing device including an output color setting means for performing. 印刷するときに背景色と同様の色で塗り潰すことを指定する白抜き属性が設定された白抜き要素の出力先を判定する判定手段と、 前記判定手段で判定された出力先の背景色を取得する取得手段と、前記判定手段で判定した出力先が表示装置である場合には、前記白抜き要素に対して前記取得手段によって取得された背景色とは異なる色を設定し、前記判定手段で判定した出力先が印刷装置である場合には、前記白抜き要素に対して前記取得手段によって取得された背景色と同じ色を設定する出力色設定手段とを備えることを特徴とする情報処理装置。
- 6SaidChangeThe means is obtained by multiplying the brightness or saturation obtained by the decomposition means by a predetermined correction coefficient.Change the color elementClaims characterized by5The information processing device described in. 前記変更手段は、前記分解手段で得られた明度、又は、彩度に所定の補正係数をかけて前記色要素を変更することを特徴とする請求項5に記載の情報処理装置。
- 7SaidChangeThe means isA color element changed by multiplying the brightness or saturation obtained by the decomposition means by a predetermined correction coefficient, andThe color of the filled figure arranged as the background of the white elementThe predetermined value so that the distance in the coordinate space of the element exceeds the predetermined value.Correction coefficientAdjustmentCorrection coefficientAdjustmentHaving means, said correction coefficientAdjustmentBy meansAdjustmentThe claim is characterized in that the value of the color element obtained by the decomposition means is corrected based on the corrected correction coefficient.5The information processing device described in. 前記変更手段は、前記分解手段で得られた明度、又は、彩度に所定の補正係数をかけることにより変更された色要素と、前記白抜き要素の背景として配置されている塗り潰し図形の色要素の座標空間にける距離が所定値を超えるように、前記所定の補正係数を調整する補正係数調整手段を有し、 前記補正係数調整手段によって調整された補正係数に基づいて前記分解手段で得られた色要素の値を補正することを特徴とする請求項5に記載の情報処理装置。
- 8The correction coefficientAdjustmentThe means is an area for calculating the area of a search means for searching for a filled figure that overlaps with a character string or a figure for which a white outline attribute is set, and a portion where the white element and the filled figure searched by the search means overlap. It has a calculation means and a figure color acquisition means for acquiring the color of the filled figure searched by the search means.A color element changed by multiplying the brightness or saturation obtained by the decomposition means by a predetermined correction coefficient, andArea calculated by the area calculation meansThe predetermined value is set so that the distance in the color space of the color element of the filled figure that maximizes the value exceeds the predetermined value.Correction coefficientAdjustmentClaims characterized by7The information processing device described in. 前記補正係数調整手段は、 白抜き属性の設定された文字列或いは図形と重なる塗り潰し図形を探索する探索手段と、 前記白抜き要素と、前記探索手段で探索された塗り潰し図形とが重なる部分の面積を算出する面積算出手段と、 前記探索手段で探索された塗り潰し図形の色を取得する図形色取得手段とを有し、前記分解手段で得られた明度、又は、彩度に所定の補正係数をかけることにより変更された色要素と、前記面積算出手段で算出された面積が最大となる塗り潰し図形の色要素の色空間にける距離が所定値を超えるように、前記所定の補正係数を調整することを特徴とする請求項7に記載の情報処理装置。
- 9Specifies to fill with a color similar to the background color when printingA determination process for determining the output destination of the white element for which the white outline attribute is set, an acquisition process for acquiring the background color of the output destination determined in the determination process, andWhen the output destination determined in the determination step is a display device,A color different from the background color acquired by the acquisition process is set for the white element.Then, when the output destination determined in the determination step is a printing device, the same color as the background color acquired in the acquisition step is set for the white element.An information processing method characterized by including an output color setting process. 印刷するときに背景色と同様の色で塗り潰すことを指定する白抜き属性が設定された白抜き要素の出力先を判定する判定工程と、 前記判定工程で判定された出力先の背景色を取得する取得工程と、前記判定工程で判定した出力先が表示装置である場合には、前記白抜き要素に対して前記取得工程によって取得された背景色とは異なる色を設定し、前記判定工程で判定した出力先が印刷装置である場合には、前記白抜き要素に対して前記取得工程によって取得された背景色と同じ色を設定する出力色設定工程とを備えることを特徴とする情報処理方法。
- 10A storage medium that stores a control program for displaying patterns such as figures and characters on a computer.On the computer、Specifies to fill with a color similar to the background color when printingJudgment to determine the output destination of the white element for which the white attribute is setProcess, Acquire the background color of the output destination determined in the determination process.Process、When the output destination determined in the determination step is a display device,A color different from the background color acquired by the acquisition process is set for the white element.Then, when the output destination determined in the determination step is a printing device, the same color as the background color acquired in the acquisition step is set for the white element.Output color settingProcess,ToA computer that stores the control program to be executed can be readStorage medium. コンピュータに図形や文字等のパターンを表示させるための制御プログラムを格納した記憶媒体であって、コンピュータに、印刷するときに背景色と同様の色で塗り潰すことを指定する白抜き属性が設定された白抜き要素の出力先を判定する判定工程、 前記判定工程で判定された出力先の背景色を取得する取得工程、前記判定工程で判定した出力先が表示装置である場合には、前記白抜き要素に対して前記取得工程によって取得された背景色とは異なる色を設定し、前記判定工程で判定した出力先が印刷装置である場合には、前記白抜き要素に対して前記取得工程によって取得された背景色と同じ色を設定する出力色設定工程、を実行させる制御プログラムを格納したコンピュータ読み取り可能な記憶媒体。
Independent claims6
200 paragraphs, as filed
[Technical field to which the invention belongs] The present invention is to create and print graphic / character string data using interactive processing such as CAD (Computer Aided Design) and DTP (Desk Top Publishig). Regarding the target information device, information processing method, and storage medium, for example, it is suitable for use in the information processing device, information processing method, and storage medium for creating a high-performance version.
[0002] In the above-mentioned CAD or DTP, when character string data is arranged while displaying a print image on a display device, the same color as the background color is placed on a filled figure or the like of a certain color. You may want to place a string. In particular, when creating a monochrome block copy manuscript, it often happens that the block copy data is created by arranging white characters of the background color on a black filled figure called "white outline".
[0003] At this time, there is a method of first writing the above-mentioned filled figure or the like, and then writing characters set to the same color as the background color.
[0004] [Problems to be Solved by the Invention] In the above case, the white character string data is placed directly on the background, or the background of the white character string or graphic is in the middle of interactive editing work. When the filled figure is moved or erased, the white character string or the figure character string data becomes indistinguishable from the background, and there is a problem that the editing work becomes very difficult.
[0005] For example, as shown in FIG. 24, when an outline character "ABC" (a character having the same white color as the background color) is arranged on a black filled figure, the black filled figure is processed in an interactive process. If you move to the upper right, the character "ABC" left behind disappears.
[0006] Further, in order to assist the interactive editing process, a specific color is temporarily set in order to display that the figure or character string data is in a temporary special state such as a selected state. It may be a temporary special condition. In such a case, when the background fill figure and the white character string data are set to a temporary special state at the same time, the character data and the fill figure cannot be distinguished, and the editing work becomes very difficult. There was also a problem.
[0007] For example, as shown in FIG. 25, when a black filled figure and an outline character arranged therein are selected, both the filled figure and the outline character shift to the same temporary special state. Then, the outline characters disappear.
[0008] The present invention has been made in view of the above problems, and an appropriate output color is set for a white element for which a white attribute is set, and it is always white in the process of interactive editing processing or the like. The purpose is to make it easier to recognize the extracted elements.
[Means for Solving the Problems] The present invention for achieving the above object.<u style="single">One aspect</u>Information processing device by<u style="single">the following</u>It has the configuration of. That is,<u style="single">Specifies to fill with a color similar to the background color when printing</u>A determination means for determining the output destination of the white element for which the white outline attribute is set, an acquisition means for acquiring the background color of the output destination determined by the determination means, and an acquisition means.<u style="single">When the output destination determined by the determination means is a display device,</u>A color different from the background color acquired by the acquisition means is set for the white element.<u style="single">Then, when the output destination determined by the determination means is a printing device, the same color as the background color acquired by the acquisition means is set for the white element.</u>It is provided with an output color setting means to be used.
[0010] In addition, an information processing method according to another aspect of the present invention for achieving the above object.<u style="single">Is</u><u style="single">Specifies to fill with a color similar to the background color when printing</u>A determination process for determining the output destination of the white element for which the white outline attribute is set, an acquisition process for acquiring the background color of the output destination determined in the determination process, and<u style="single">When the output destination determined in the determination step is a display device,</u>A color different from the background color acquired by the acquisition process is set for the white element.<u style="single">Then, when the output destination determined in the determination step is a printing device, the same color as the background color acquired in the acquisition step is set for the white element.</u>It is provided with an output color setting process to be performed.
[0011] In addition, the above object is achieved.<u style="single">According to another aspect of the invention for</u><u style="single">A storage medium that stores a control program for displaying patterns such as figures and characters on a computer.</u><u style="single">Judgment process to determine the output destination of a white element with a white attribute that specifies that it should be filled with the same color as the background color when printing.</u><u style="single">An acquisition step of acquiring the background color of the output destination determined in the determination step,</u><u style="single">When the output destination determined in the determination step is a display device, a color different from the background color acquired in the acquisition step is set for the white element, and the output destination determined in the determination step is In the case of a printing device, a computer-readable storage medium storing a control program for executing an output color setting step of setting the same color as the background color acquired by the acquisition step for the white element is provided. Provided</u>。
[Embodiments of the Invention] Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings.
FIG. 16 is a block diagram showing a hardware configuration of an information processing apparatus according to an embodiment of the present invention.
[0015] In FIG. 16, reference numeral 21 denotes a central processing unit (CPU), which controls the entire device and performs arithmetic processing. In addition, 11 is a keyboard for inputting characters and numerical values, and 12 is a mouse for instructing coordinates and figures. In addition, 41 is a display device, which displays graphic data, character data, various operation panels and buttons.
[0016] Further, reference numeral 31 denotes a read-only storage device (ROM), and the program according to the present embodiment is stored in the ROM 31 and executed by the CPU 21. Reference numeral 32 denotes a read / write storage device (RAM), and during execution of the program according to the present embodiment, the CPU 21 performs processing while reading / writing data to the RAM 32, if necessary. Reference numeral 33 denotes an external storage device such as a floppy disk device (FD) or a hard disk device (HD), which stores data such as character typeface information and code information.
The program according to the present embodiment may be stored in the external storage device 33, read into the RAM 32, and then executed by the CPU 21. In addition, character typeface information, code information, and the like may be used. Data may be stored in the ROM 31 so that the CPU 21 can read and use the data as needed.
[0018] Reference numeral 51 denotes a laser printer, which prints the print data created by the present apparatus for calibration printing (output for confirming the print data) and outputs the contents of the print log file. Reference numeral 52 denotes an image setter, which prints the print data created by this device in a clear print (high-precision output that becomes a formal block copy). Reference numeral 53 denotes a laser marker, which prints the print data created by this device directly onto the product with a laser.
[0019] Hereinafter, the difference between the laser printer 51, the image setter 52, and the laser marker 53 will be described.
[0020] First, the laser printer 51 is a printer that irradiates a photosensitive drum with a laser to adsorb toner and transfer it to paper, and the resolution can be up to about 1500 DPI. Further, the image setter 52 is a printer that directly irradiates the photosensitive paper with a laser, and the resolution can be up to about 4000 DPI, and the paper size can be up to about A1. Further, the laser marker 53 is a printing device that directly irradiates a molded product with a laser to melt a resin material to blacken it, or to develop a color using a special material containing a filler.
[0021] Reference numeral 22 denotes a system bus, and all the elements of the hardware constituting the present device transfer programs and data via the system bus 22.
Next, the display function in the display device 41 according to the present embodiment will be described.
The information processing device according to the present embodiment has a so-called WYSIWYG function of controlling the display of graphic data and character data on the display device 41 with an image of the same display form as the output form at the time of printing. A diagram illustrating this is shown in FIG.
[0024] FIG. 17 (a) is a display example of WYSIWYG, and the display form of FIG. 17 (a) is the same as the output form of FIG. 17 (c) which is an example of the output result at the time of printing. There is. On the other hand, FIG. 17 (b) is an example of a display other than WYSIWYG, and the display form of FIG. 17 (b) is different from the output form of FIG. 17 (c) which is an example of the output result at the time of printing. There is.
Next, an operation screen on the display device 41 according to the present embodiment will be described.
FIG. 18 is a diagram showing a main panel 61 displayed on the display device 41 when the program according to the present embodiment is executed.
In FIG. 18, 61 is the main panel, 62 is the drawing area, 63 is the mouse pointer, 64 is the character input area, 65 is the button group, 66 is the general-purpose button, 67 is the command menu, 68 is the guidance area, 71. Is a panel other than the main panel, and 72 is a button on panel 71. The buttons on FIG. 18 are all soft keys.
By operating an input device such as a keyboard 11 or a mouse 12 on the main panel 61, print data is created and edited interactively. The created print data is displayed in the drawing area 62.
[0029] Further, if necessary, various panels 71 other than the main panel 61 are displayed, and an operation may be performed on the panel 71.
[0030] Hereinafter, various input methods in the present embodiment will be described with reference to FIG. 18.
[0031] When inputting from the keyboard 11, the character input area 64 is indicated by the mouse 12 or the keyboard 11, and then characters or numerical values are input.
[0032] Further, when inputting from the mouse 12, the following method is used.
[0033] First, there are the following two methods (1) and (2) as a method of selecting a specific element or button.
(1) Element selection: By moving the mouse pointer 63 to a place where there is print data displayed in the drawing area 62 and pressing down the left mouse button at that position, for example, the operation target. Select the element to be.
(2) Button selection: At the positions of various buttons 65 and general-purpose buttons 66 displayed on the main panel 61, and various buttons 72 displayed on the panel 71 displayed as needed. , Move the mouse pointer 63 and press down the left mouse button at that position to select the button to be operated.
[0036] Further, as a method of designating a specific position on the drawing area 62, there are the following five methods (3) to (7).
(3) Arbitrary designation: The position is designated by moving the mouse pointer 63 to an arbitrary position on the drawing area 62 and pressing down the right mouse button at that position, for example.
(4) Point designation: The position is designated by selecting a point as an element displayed in the drawing area 62.
(5) Feature point designation: By selecting an element other than the point displayed in the drawing area 62, the CPU 21 extracts the feature point of the element and specifies the position.
[0040] Here, when there are a plurality of feature points, the method of specifying one point is a method in which the CPU 21 automatically extracts the feature point closest to the position of the mouse pointer 63 when the element is selected. There is a method of designating one more point from the existing feature points.
FIG. 19 shows an example of feature points of each element of graphic data. In the figure, the points indicated by * are the feature points. The specific positions of these feature points are as shown below. Line segment: both ends, midpoint Circle: center point, intersection of a straight line drawn from the center of the circle in the X and Y axes directions (4 points) Arc: center point, both ends, midpoint (arc Elliptical: center point, minor axis of elliptical axis and intersection of major axis and ellipse (4 points) Elliptical arc: center point, both ends, minor axis and major axis of elliptical arc and elliptical arc Intersection with an ellipse including (4 points), midpoint (point on the elliptical arc that divides the distance of the elliptical arc) / line segment: Both ends of each line segment that constitutes the line segment, midpoint / free curve: both ends , The control point of the curve, the midpoint (the point that divides the distance of the free curve into two).
(6) Intersection designation: By selecting one or two line elements such as line segments and circles displayed in the drawing area 62, the CPU 21 calculates the intersection of those elements. , Specify the position.
[0043] Here, when a single line element has an intersection by itself, that is, when it self-intersects, it is sufficient to select one line element. In other cases, specify two line elements.
[0044] When there are a plurality of intersections, there are a plurality of methods for identifying one point by the CPU 21 automatically extracting the intersection closest to the position of the mouse pointer 63 when the element is selected first or later. There is a method of designating one more point from the intersections.
FIG. 20 shows an example in which a line segment and an arc are selected as elements and their positions are specified by specifying intersections. In the figure, the elements are selected in the order of line segment and arc at the position indicated by the check mark, and the position marked with * indicates that the intersection is specified.
(7) Specifying a point on the line: By selecting one line element such as a line segment or a circle displayed in the drawing area 62, the line closest to the position of the mouse pointer 63 at that time. CPU21 calculates the point on the element and specifies the position.
FIG. 21 shows an example in which an arc is selected as an element and a position is specified by specifying a point on the line. In the figure, the element is selected at the position indicated by the check mark, and the position marked with * is indicated by specifying the point on the line. The points marked with a check mark are points near the arc, and the points marked with * are points on the arc.
[0048] Next, the "command" handled in this embodiment will be described. In this embodiment, each unit of print data creation and editing work is called a "command".
[0049] The commands handled in the present embodiment include commands for creating each element (drawing command) such as points, straight lines, circles, and curves, and shapes and attributes of each element such as move, copy, delete, and attributes. There are commands (correction commands) to modify, etc., and other commands related to files, prints, registration marks, bar codes, etc.
[0050] To create or edit print data, first select one arbitrary command according to the unit of work. The command can be selected by inputting the command name from the keyboard 11 in the character input area 64 or by selecting the button 65 on the main panel 61 in which the command name is preset.
[0051] When a command is selected, if there is a command that has already been selected, the end processing of that command is performed. Subsequently, the initial processing of the newly selected command is performed, and the processing in the command is started.
[0052] When a command is selected, a command menu 67 for selecting a finer unit of work within the selected command is displayed on the display device 41. The user can perform various editing operations by selecting a button of any menu item of the command menu 67. An instruction as to what kind of operation the user should perform is displayed in the guidance area 68 each time according to the work situation, so that the user may perform the operation according to this instruction.
[Explanation of Print Data] Elements of Print Data Next, what kind of elements exist in the graphic data and the character data that constitute the print data that can be created by the information processing apparatus according to the present embodiment. I will explain in detail.
[0054] The elements of graphic data and character data that can be created by the information processing apparatus according to the present embodiment are roughly classified into the following five types (A) to (E). (A) Basic figures: Points, line segments, line segment sequences (open / closed), circles, arcs, ellipses, elliptical arcs, free curves (open / closed) (B) Fill figures (C) Other figures: dragonflies, bars Code (D) Text (E) Group Shapes: Symbols, illustrations.
[0055] The element referred to here means a unit of data that is actually laid out as print data by adding an attribute (referred to as a print attribute) necessary for print data to graphic data or character data. ing. Moreover, if a plurality of elements laid out as print data are grouped together, it can be treated as one element. The method of grouping the elements will be described later. Now, the above five types (A) to (E) will be explained in detail below.
[0056] First, the basic figure of (A) is an element of the most basic figure data. In addition, a rectangle (a rectangle whose sides are parallel to the X and Y axes) and a regular polygon composed of a line segment sequence can be treated as elements of a basic figure. In addition, as a free curve, expression forms such as Bezier, rational Bezier, B-spline, Hermitian, and NURBS can be handled.
[0057] Further, in the filled figure of (B), a closed area is formed by connecting the elements (excluding points) of (A) alone or by connecting a plurality of elements (excluding points), and the inside of the filled figure is filled with the figure data. It is an element. There are four types of filling methods as follows. (1) Fill area: Fill the inside evenly. (2) Hatching: Fill with multiple line segments with a constant slope and spacing. A specific point in the filled figure can also be specified as a hatch reference point. (3) Mesh: Fill with repeating figures of a certain shape such as circles, rectangles, and regular polygons. A specific point in the filled shape can also be specified as a reference point for the mesh. (4) Pattern: Fill with a repeating bit pattern created in advance.
[0058] Further, other figures in (C) include registration marks, barcodes, and the like. These elements include both graphic data and character data. The method of creating each element of the register mark and the barcode will be described later.
[0059] Further, the text of (D) is an element of character data. It can be laid out as print data in the same way as the graphic data element, but the type of print attribute and the layout method are different from the graphic data element.
Finally, the group figure of (E) can be any one or more of each element of the basic figure of (A), the filled figure of (B), the other figures of (C), and the text of (D). There are symbols and illustrations for selecting as many as the number of and treating them as one element.
Print attribute of print data Next, what kind of print attribute exists in the print attribute of the graphic data and the character data, which is the print data that can be created by the information processing apparatus according to the present embodiment, is concretely described. I will explain to.
[0062] The print attributes of graphic data and character data that can be created by the information processing apparatus according to the present embodiment are roughly classified into the following seven types (a) to (g).
[0063] First, there are the following three types of print attributes (a) to (c) that are common to graphic data and character data. (a) Display attribute: Specify whether or not to display the element, and when displaying, what kind of hierarchical relationship is displayed (called display priority). (b) Selection attribute: Specify whether or not element selection is possible. If element selection is disabled, operations on that element cannot be performed. (c) Color attribute: The color of the element is expressed by giving the type of color model such as RGB or HLS and the value of the color code. When using a monochrome printing device such as display device 41 or laser printer 51 that cannot express colors other than white and black, it is converted to either white or black color and output depending on the color attribute. Will be done.
Next, there are three types of print attributes peculiar to graphic data (d) to (f) shown below. (d) Point attribute: In the case of a point element, a symbol can be displayed at a point or a character string can be displayed. (e) Line attributes: In the case of elements (line elements) of basic figures other than points, the following various line attributes can be expressed. -Line type: Indicates the shape of the line element, and includes solid line, broken line, one-dot chain line, and two-dot chain line. -Line width: Indicates the size of the line element in the normal direction. It is possible to specify a predetermined type such as a thin line, a medium line, a thick line, or the actual size. -Line width direction: Indicates which direction to offset by the line width from the case where the line width is not considered. -Terminal shape: The terminal shape of an open figure such as a line segment or an arc, such as round, flat, or square. -Connection shape: The shape of the corners of figures such as line segment rows and rectangles, such as miter, round, and bevel. -Line pitch: When the line type is other than the solid line, the length of the part where the line exists and the part where the line does not exist can be given by the actual size or the parameter, respectively. (f) Fill attribute: For fill graphic elements, the type of internal fill method such as fill area, hatch, mesh, pattern, etc., required detailed data for hatch or mesh, pattern number for pattern give.
Finally, there is only one type of print attribute peculiar to character data (g) shown below. (g) String attributes: For text elements, it can represent the following various character attributes, as well as the attributes of the entire string: -Typeface: Represents a set of character designs, including courier, helvetica, and gothic. -Character size: Represents the size of a character, and is generally equal to the height in the line spacing direction of the rectangular area = body that one character occupies. -Flat ratio: Expresses how much a character is shrunk in the line spacing direction of the character as a ratio. -Long body ratio: Expresses how much a character is shortened in the letter-spacing direction as a ratio. -Base angle: Indicates the angle between the letter-spacing direction and the X-axis. -Italic angle: Indicates the tilt angle of the character with respect to the letter-spacing direction of the character. -Character spacing: Indicates the spacing between the bodies of two adjacent characters on the same line. -Line spacing: Indicates the spacing between the bodies of characters on two adjacent lines. -Character string inversion: Inverts (mirror image) the character string and displays it.
Data structure of print data Next, the data structure of print data in the present embodiment will be described. The print data in the present embodiment is generally composed of a plurality of element data and a plurality of print attribute data as described above.
[0067] Here, each element data basically has a configuration of a data type code, a data number, required data for each element, and a data number for required print attribute data for each element.
[0068] Then, the type of each element data in the print data can be specified by the data type code uniquely assigned in the print data. In addition, each element data in the print data can be specified by the data number uniquely assigned in the print data. The types of required data and required print attributes are different for each element, but the CPU21 can identify these by the data type code.
[0069] Further, each print attribute is not retained for each element data, but only the data number of the required print attribute data is retained in each element data. This makes it possible to avoid duplication of print attribute data, reduce the capacity of print data, and change the print attributes of a plurality of element data with a single operation.
[0070] Then, first, the data structure of each element of the graphic data and the character data will be specifically shown below.
(A) Basic figure (1) Point, data type code, data number, point coordinate: c [2], display attribute data number, selection attribute data number, color attribute data number, point attribute data Number (2) Line segment, data type code, data number, start point coordinate: s [2], end point coordinate: e [2], display attribute data number, selection attribute data number, color attribute data number, line attribute Data number (3) Line branch, data type code, data number, number of passing points: np, coordinates of each passing point: pp [2] (np), data number of display attribute, data number of selection attribute, color attribute Data number Line attribute data number (4) Circle Data type code Data number Center coordinates: c [2] Radius: r Display attribute data number Selected attribute data number Color attribute data number Line attribute data number (5) Arc Data type code Data number Start point coordinate: s [2] End point coordinate: e [2] Center coordinate: c [2] Rotation direction flag (clockwise / counterclockwise) (Clockwise) -Display attribute data number-Selection attribute data number-Color attribute data number-Line attribute data number (6) Ellipse-Data type code-Data number-Center coordinates: c [2] -Major axis vector : a [2] Short axis vector: b [2] Display attribute data number Selected attribute data number Color attribute data number Line attribute data number (7) Elliptical arc Data type code Data number Start point coordinates: s [2] End point coordinates: e [2] Center coordinates: c [2] Major axis vector: a [2] Minor axis vector: b [2] Rotation direction flag (clockwise / counterclockwise) (Clockwise) -Display attribute data number-Selection attribute data number-Color attribute data number-Line attribute data number (8) Free curve (in the case of Bezier curve) -Data type code-Data number-Number of curves: nv Control point data (nv) of each curve: Number of control points: nc Coordinates of each control point: pc [2] (nc) Weight coefficient: w Number of passing points: np Coordinates of each passing point: pp [2] (np) (Items) -Display attribute data number-Selection attribute data number-Color attribute data number-Line attribute data number.
(B) Filled figure-Data type code-Data number-Layout reference rectangle Lower left point coordinate: p1 [2] -Layout reference rectangle upper right point coordinate: p2 [2] -Number of loops: nl-Components of each loop Data (nl): Number of components: nd Component data: Basic graphic element data (nd) excluding points-Passing reference point coordinates: pp [2] -Display attribute data number-Selection attribute data number-Color Attribute data number Fill attribute data number Frame display attribute data number Frame color attribute data number Frame line attribute data number In addition, it has a separate print attribute for the frame of the filled figure. For example, it is possible to display by changing the internal color attribute and the color attribute of the frame).
(C) Other figures (1) Dragonfly, data type code, data number, dragonfly type flag (dragonfly / scale dragonfly), dragonfly shape flag (11 types for dragonfly / 3 types for scale dragonfly) Dragonfly offset flag (with / without offset) Print data name (for scale dragonfly) Dragonfly length (for scale dragonfly) Layout reference point coordinates: pb [2] Output magnification: sc Layout reference rectangle lower left Point coordinates: p1 [2] Layout reference rectangle Upper right point coordinates: p2 [2] Number of components: nd Component data: Line for dragonfly, line for scale dragonfly, circle, text Element data (nd) (2) Bar code, data type code, data number, bar code type flag (4 types), code data, code display flag (with / without code display), layout reference position flag (lower left) / Center / upper right, etc. 9 types) Layout reference point coordinates: pb [2] Layout angle: ang Layout scale: sc Layout reference rectangle lower left point coordinates: p1 [2] Layout reference rectangle upper right point coordinates: p2 [ 2] -Number of components: nd-Component data: Element data (nd) of either line or text.
(D) Text (1) Basic character string (elements that make up the text) -Data type code-Data number-Character string start point coordinates: pt [2] -Character string bytes: nch-Character string data: str (nch bytes) -Layout angle: ang-Layout scale: sc-Display attribute data number-Selection attribute data number-Color attribute data number-Character string attribute data number (2) Text-Data type code-Data Number Layout reference position flag (9 types such as lower left / center / upper right) Layout reference point coordinates: pb [2] Layout reference rectangle lower left point coordinates: p1 [2] Layout reference rectangle upper right point coordinates: p2 [2] -Number of components: nd-Component data: Element data of basic character strings (nd pieces) (Text elements are composed by combining multiple basic character string elements. By doing so, in one text element, It is possible to handle character strings with multiple character string attributes. For example, it is possible to control the font of characters in the middle of one text, the height and width of characters, and so on. ).
(E) Group diagram (1) Symbol, data type code, data number, folder name, file name, layout reference position flag (9 types such as lower left / center / upper right), layout reference point coordinates: pb [2] Layout angle: ang Layout scale: sc Layout reference rectangle lower left point coordinates: p1 [2] Layout reference rectangle upper right point coordinates: p2 [2] Inversion flag (with / without inversion) Line width scale flag (line) Width scale available / without) Line width scale value (2) Illustration Data type code Data number Folder name File name Layout reference position flag (9 types such as lower left / center / upper right) Layout reference point coordinates: pb [2] Layout angle: ang Layout scale: sc Layout reference rectangle lower left point coordinate: p1 [2] Layout reference rectangle upper right point coordinate: p2 [2] Inversion flag (with / without inversion) Number of components : nd Component data: Arbitrary element data (nd) (Characteristics of the data structure of symbols and illustrations, and the file structure of symbol data files and illustration data files will be described later).
Next, the data structure of the print attribute data for the element data having the data structure as described above will be described.
[0077] Here, each print attribute data basically has a configuration of a data type code, a data number, an attribute setting flag, and necessary data for each print attribute.
[0078] The type of each print attribute data in the print data can be specified by the data type code uniquely assigned in the print data. In addition, each print attribute data in the print data can be specified by the data number uniquely assigned in the print data. Although the required data is different for each print attribute, the CPU 21 can identify them by the data type code.
[0079] Further, the attribute setting flag is a flag that specifies whether or not the print attribute data is valid. In the element data indicating the print attribute data for which the attribute setting flag is valid, the elements are displayed according to the corresponding print attribute data. On the other hand, in the element data indicating the print attribute data for which the attribute setting flag is invalid, it is considered that the corresponding print attribute is not set, and the default stored in the ROM 31 or the external storage device 33 in advance. The elements are displayed according to the print attributes.
[0080] Further, when the data structure is such that each element data can have a hierarchical relationship, it is possible to control the display according to the print attribute of the upper (or lower) element.
[0081] Then, the data structure of each print attribute data will be specifically shown below. (a) Display attribute, data type code, data number, attribute setting flag (valid / invalid), display flag (display / non-display), display priority (b) Selection attribute, data type code, data number, attribute setting flag ( Valid / invalid) Element selection flag (possible / impossible) (c) Color attribute Data type code Data number Attribute setting flag (valid / invalid) Color code type flag (RGB / HLS) Color code 1, 2 , 3 (d) Point attribute, data type code, data number, attribute setting flag (valid / invalid), marker character string (e) line attribute, data type code, data number, attribute setting flag (valid / invalid), line Seed flag (solid line / broken line / one-point chain line / two-point chain line / arbitrary broken line / arbitrary one-point chain line / arbitrary two-point chain line) Line width flag (thin line / middle line / thick line / extra-thick line / arbitrary line width) Line width direction flag (Center / Inside / Outside) Termination shape flag (Round / Flat / Square) Connection shape flag (Miter / Round / Bevel) Line type data 1, 2, 3, 4 (Line type = arbitrary) Line Width data (line width = arbitrary) (f) Fill attribute, data type code, data number, attribute setting flag (valid / invalid), fill type flag (with fill / without fill / hatch / mesh number / pattern number, etc.) ) Number of data groups: nd Fill data 1, 2, 3 (nd) (g) Character string attribute Data type code Data number Attribute setting flag (valid / invalid) Font Character size Flatness ratio -Long body ratio, base angle, oblique body angle, character spacing, line spacing, and character string inversion flag (with / without).
FIG. 22 shows an example of a print data file created by the information processing apparatus according to the present embodiment based on the data structure of the print data shown above. The print data shown in FIG. 22 is for printing a figure having a shape as shown in FIG. 23, and in the present embodiment, the figure represented by the print data shown in FIG. 22 is a basic figure. It consists of one line segment sequence, two circles, and two points (these two points are hidden and cannot be selected), the lower left point and the upper right point of the circumscribing rectangle of these three elements. Also, these one line segment row and two circles have the same display attribute (display), selection attribute (selectable), line attribute (solid line, line width 20 mm), and have different color attributes from each other. It is assumed that
Data structure of group figure Then, among the above-mentioned data structures of print data, the data structure of symbols and illustrations which are group figures will be described in detail.
[0084] First, the data structure of the symbol will be described.
[0085] In the present embodiment, a symbol is a graphic that is repeatedly used, such as a symbol defined by a standard or a logo mark, and is an element of graphic data (line segment, circle, etc.) or an element of character data. It is an element created by combining (text).
[0086] In the case of symbol data, when the contents of the symbol data file are updated due to a change in the standard, all the corresponding symbols that have already been laid out as a part of the print data are updated. Data can be kept in sync.
Therefore, in the information processing apparatus according to the present embodiment, the symbol data is held in the following data structure.
That is, in the print data, only the folder name and the file name for specifying the location of the symbol data file, and the information necessary for laying out the symbol are stored.
[0089] Further, a symbol data file is created separately from the print data file in which the print data is saved in the file. The symbol data file has the following file structure. -Layout reference rectangle lower left point coordinates: p1 [2] -Layout reference rectangle upper right point coordinates: p2 [2] -Component data: Arbitrary element data (plural) -Print attribute data: Required print attribute data (plural).
The layout reference rectangle will be described later, but if the layout reference rectangle is defined, it is possible to specify the position and size information necessary for laying out the symbol as print data. For example, as the layout reference rectangle, it is possible to specify the smallest rectangle (called an circumscribing rectangle) that surrounds the visible portion of the symbol.
[0091] When creating the symbol data file, if the data of the circumscribing rectangle of the corresponding symbol is registered as the layout reference rectangle, the circumscribing rectangle of the symbol is recalculated when the symbol data file is read again. You don't have to.
[0092] Each component data of the symbol is represented by a relative coordinate value with respect to the lower left point of the layout reference rectangle.
[0093] Further, for each print attribute data, the print attribute data required for displaying each component data is held separately from the element data, as in the case of the print data.
[0094] As a result, even if the print data file including the changed symbol is not updated, the corresponding print data file is simply read from the external storage device 33 into the RAM 32 again, and the print data is included in the print data. The symbol data of is replaced with the contents of the latest symbol data file, and the data can be synchronized automatically.
Next, the data structure of the illustration, which is another group figure, will be described.
[0096] In the present embodiment, an illustration is a figure that is repeatedly used like a template figure, and like a symbol, it is also an element of graphic data (line segment, circle, etc.) or character data. It is an element created by combining elements (text).
[0097] Unlike a symbol, an illustration is laid out as a part of print data, and then it is not synchronized with the contents of the original illustration data file, and it is desired to freely change the illustration. used.
Therefore, in the case of illustration data, unlike the symbol data, even if the content of the illustration data file is updated, the corresponding illustration that has already been laid out as a part of the print data is updated and synchronized. Never maintain.
Therefore, the information processing apparatus according to the present embodiment holds the illustration data in the following data structure.
[0100] That is, in the print data, in addition to the folder name and the file name for specifying the location of the illustration data file and the information necessary for laying out the illustration, the print data is read from the illustration data file. However, it holds the data of each element that actually composes the illustration.
[0101] Further, an illustration data file is created separately from the print data file. The illustration data file has the following file structure. -Layout reference rectangle lower left point coordinates: p1 [2] -Layout reference rectangle upper right point coordinates: p2 [2] -Component data: Arbitrary element data (plural) -Print attribute data: Required print attribute data (plural).
[0102] This structure is similar to the file structure of the symbol data file. When reading this into print data, the specified layout reference point coordinates are used as the origin, and each component data in the illustration data file is expanded (coordinate-converted) according to the specified layout angle and layout scale, and printed. It is different from the symbol in that it holds all the data as illustration element data.
[Processing of whiteout figure] In the present embodiment, it is possible to have a whiteout attribute as a print attribute. Hereinafter, the whitening process of the present embodiment will be described in detail.
[0104] Explanation of terms-White attribute: An attribute that specifies that the background color should be the same as the background color when printing. -White element: A character string with the above white attribute or a filled figure. For example, in FIG. 26, (a) shows a character string with a white attribute set, and (b) shows a filled figure with a white attribute set. -Background filled figure: A filled figure behind a character or figure with a white attribute. For example, in FIG. 27, the rectangle behind the white character string ABC is a background-filled figure. -Temporary special display state: In the interactive processing for editing, etc., the element that has been selected or cannot be selected as the processing target is displayed in a special display color. For example, when a graphic element or a character string is selected by a pointing device or the like, this state is obtained. FIG. 28 shows an example of a temporary special display state, and by selecting a black filled figure, the figure becomes a halftone dot state display indicating the selected state.
[Explanation of Implementation Contents of Each Process] The whitening process according to the present embodiment will be described in detail according to the flowcharts of FIGS. 1 to 15.
<White element output process (1)> This process is a process of changing the display color of a character string having a white attribute or a filled figure according to the output destination (see FIG. 29). For example, as shown in FIG. 29, when the character string "abc" is specified as white, the display color when the display is output by the display device and the display color when the display color is output by the printing device are changed.
[0107] FIG. 1 is a flowchart illustrating a procedure of white element output processing. First, in step S1, the white attribute is set in the character string or the filled figure. Here, the white attribute is set in the character string or the filled figure by the following procedure. (1) Select the character string or filled figure for which you want to set the white attribute by element selection. (2) Turn on the white attribute of the selected element using a graphic interface such as a panel as shown in Fig. 30 (3001). (3) The value indicating ON is stored in the read / write / storage device 32 in the white attribute data of each character string or the filled figure.
Next, in step S2, the output destination is determined. In the present embodiment, it is assumed that the output destination is set as a flag in the read / write / storage device 32 or the like prior to the output process. Therefore, the output destination may be determined by reading the set data (flag) from the read / write / storage device 32 or the like and determining the output destination by the central processing unit 21 based on the value.
Next, the background color to be used in step S3 is acquired. It is assumed that the background color is set in the read / write / storage device 32 or the like in advance for each output destination. Further, it is assumed that the background color value is represented by 3 or 4 real numbers such as RGB value, HSB value, and YMCB value. Therefore, the acquisition of the background color is realized by reading the set data from the read / write / storage device 32 or the like.
Next, in step S4, the color of the character string or the filled figure to which the white attribute is set is set to a color different from the background color according to the output destination. Specifically, in the present embodiment, the processing according to each step of steps S41 to S44 shown in the flowchart of FIG. 2 is performed.
[0111] First, in step S41, it is determined whether or not the output destination is a display device. As described in step S2 above, the central processing unit 21 determines by referring to the output destination data (flag) set in advance in the read / write device 32 or the like. If the output destination is a display device, in step S43, the display color of the white element is set to a display color different from the background color and output. The display color setting process will be described later with reference to FIGS. 3 and 31.
On the other hand, if the output destination is not a display device, it is determined in step S42 whether or not the output destination is a printing device. This determination is also made by referring to the output destination data (flag) set in advance in the read / write device 32 or the like, as in step S41. If the output destination is a printing device, the process proceeds to step S44, and the display color of the white element is set to the same color as the background color for output. Here, as described in step S3, the background color data set in advance in the read / write / storage device 32 or the like is read into the central processing unit 21. Then, in the output processing of each character string or figure, the output device is instructed to display in the color of the read background color data in the display of the character string or the filled figure in which the white area attribute is set to ON.
[0113] FIG. 3 is a flowchart illustrating a procedure for outputting a white element to a display device. In the present embodiment, the processing according to each step of steps S431 to S434 is specifically performed. Further, FIG. 31 is a diagram illustrating a flow of synthesizing the display colors of the white elements.
[0114] First, in step S431, the background color acquired in step S3 is decomposed into hue, lightness, and saturation. Here, as described above, the background color data expressed by the RGB value, HSB value, YMCB value, etc. is read from the read / write / storage device 32, etc., and the central processing device 21 reads the hue, lightness, and saturation. Convert to the HSB value of. As the conversion formula, a generally known formula may be used. As a result, as shown in FIG. 31, H (Hue: hue), S (Saturation: saturation), and B (Brightness: brightness) can be obtained from the background color.
Next, in step S432, each decomposition value obtained in step S431 is corrected. Specifically, for example, a process for correcting the brightness B as in step S4321 (see the flowchart in FIG. 4) or step S43211 (see the flowchart in FIG. 5), or step S4322 (see the flowchart in FIG. 8). And step S43221 (see the flowchart in FIG. 9), the saturation is corrected. Thus, as shown in FIG. 31, the values of H, S, and B obtained in step S431 are corrected to H', S', and B'in step S432.
Next, in step S433, the character string or the filled graphic display color is recombined using the corrected lightness, hue, and saturation. That is, the central processing unit 21 converts the brightness, hue, and saturation corrected in step S432 into the values of each color model such as the originally used RGB value, HSB value, and YMCB value. As the conversion formula, a well-known one may be used. In this way, as shown in FIG. 31, correction colors for whiteout display can be obtained from H', S', and B'.
[0117] Then, in step S434, the corrected color data obtained in step S433 is instructed to the output device to display a character string or a filled figure.
Next, the correction of the color analysis value in step S432 described above will be described in detail. In the present embodiment, as a method of correcting the brightness of the color separation values, a method of performing "correction by applying a certain correction coefficient to the brightness" as shown in step S4321 of 1 FIG. , 2 A method of "adaptively calculating the brightness correction coefficient from the color of the filled figure in the background" as shown in step S43211 of FIG. In addition, as a method of correcting the saturation of the color separation values, 3 "correction by multiplying the saturation by a certain correction coefficient", 4 "fill the background with the saturation correction coefficient". A method of "adaptively calculating and correcting from the color of a figure" will be described.
[0119] (1) (1) Method of correcting the display color of the white portion by applying a constant correction coefficient to the brightness FIG. 34 shows a process in which the correction is performed by applying a constant correction coefficient to the brightness (process of FIG. 4). It is a figure explaining. In this case, a constant correction coefficient set in the read / write / storage device 32 or the like in advance is read, and the brightness B obtained in step S431 is multiplied by the read correction coefficient to obtain the brightness B'. Therefore, each color component of H, S, and B obtained by color-separating the original background color becomes H, S, and B'.
[0120] 2 A method of adaptively calculating the brightness correction coefficient from the color of the background fill figure and correcting the display color of the white portion Next, the brightness correction coefficient is adaptively calculated from the color of the background fill figure. The correction coefficient calculation process in the case of calculating and correcting the brightness (process shown in FIG. 5) will be described with reference to the flowchart of FIG. FIG. 6 is a flowchart illustrating a procedure of the brightness correction coefficient calculation process when the brightness correction process is performed.
[0121] First, in step S432111, a background fill figure that overlaps with a character string having a white attribute or a fill figure is searched for. FIG. 32 is a diagram showing a state in which the background fill figure and the white character string overlap. In the example shown in FIG. 32, two background-filled figures are searched.
[0122] From the read / write storage device 32 or the like, the geometric data of each registered background fill figure and the geometric data of the target character string or the fill figure with the white attribute are taken out, and whether or not they overlap is determined. Judgment is made by the central processing unit and searched. The filled figure determined to overlap with the white character string or the white filled figure is the background filled figure.
[0123] As a method of determining whether or not the figure is a background-filled figure, for example, a character string having a white-out attribute or a filled figure and the outline shape of each background-filled figure are taken out, and each ridge line constituting the contour shape is taken out. There is a method such as checking whether the strings intersect.
[0124] At this time, the processing efficiency is improved by checking in advance the overlap between the Mini and MaxBox having ridgelines parallel to the horizontal and vertical directions surrounding each character string or graphic element, and checking whether or not there is a possibility of overlapping. There is also a way to give it.
Next, in step S432112, the geometric data of each registered background filled figure and the geometric data of the character string or the filled figure with the white attribute are taken out from the read / write storage device 32 and the like. , Calculate the area where both overlap. As a method of calculating the area, for example, a product figure may be calculated and the area of the product figure may be obtained. As a method of calculating the area of the product figure, for example, a polygon is approximated and the area of the polygon is obtained by a well-known method.
Next, in step S432113, the color of the background fill figure is acquired. It is assumed that the fill color is set in the read / write / storage device 32 or the like in advance for each fill figure. Further, it is assumed that the color value is represented by 3 or 4 real numbers such as RGB value, HSB value, and YMCB value. Therefore, the color of the background-filled figure is acquired by reading the fill color corresponding to the background-filled figure searched in step S432111 from the read / write / storage device 32 or the like.
Next, in step S432114, the brightness correction coefficient used in step S432 is obtained based on the display color of each background-filled figure obtained in the above process. The procedure for acquiring the brightness correction coefficient in step S432114 will be described later with reference to the flowchart of FIG.
[0128] (3) Method of correcting the display color of the white portion by applying a constant correction coefficient to the saturation As shown in step S4322 of FIG. 8, a constant correction coefficient is applied to the saturation of the HSB values. Correct by multiplying. As shown in FIG. 35, the saturation S is corrected by applying a constant correction coefficient to obtain S'. In this process, a constant correction coefficient set in the read / write / storage device 32 or the like in advance is read, and the saturation S obtained in step S431 is multiplied by this correction coefficient to obtain S'. Then, the correction color for white display is obtained from the HSB value (H, S', B) of the correction word.
[0129] 4 Method of adaptively calculating the saturation correction coefficient from the color of the background fill figure to correct the display color of the white area The saturation correction coefficient is adaptively calculated from the color of the background fill figure. It may be corrected by. In this case, the saturation correction coefficient is obtained by the procedure shown in the flowchart of FIG. FIG. 10 is a flowchart illustrating the procedure of the saturation correction coefficient calculation process. Steps S432111 to S432113 are the same as the processes described with reference to FIG. Then, in step S432211, the saturation correction coefficient is obtained from the display color of each background-filled figure obtained in steps S432111 to S432113.
[0130] Next, with reference to FIG. 13, the calculation of the correction coefficient adapted to the background fill figure will be described. Since this correction coefficient calculation process is almost common to both the brightness correction coefficient and the saturation correction coefficient described above, it will be described below.
[0131] FIG. 13 is a flowchart illustrating a procedure of the adaptive correction coefficient calculation process. First, in step S4321141, the background-filled figure having the largest overlapping area among the background-filled figures obtained in step S432112 (Fig. 6 in the case of brightness correction and Fig. 10 in the case of saturation correction) is searched for, and the step is performed. Among the display colors obtained by S432113, the display color corresponding to the searched figure is extracted. For example, in the case of FIG. 33, the area where the background fill figure B1 and the white text overlap is S1, the area where the background fill figure B2 and the white text overlap is S2, and if S1> S2, B1 Is selected and the display color of figure B1 is extracted. On the other hand, if S2 <S1, B2 is selected and the display color of the figure B2 is extracted.
Next, in step S4321142, it is determined whether or not the display color obtained by correcting the background color using a predetermined correction coefficient and the display color acquired in step S4321141 are close to each other.
[0133] In the present embodiment, the determination is made specifically by the process (flow chart of FIG. 14) shown in step S43211421. That is, the difference between the values obtained by decomposing the color by HSB or RGB is taken, and whether or not the color is near is determined by whether or not the sum of the squares of the differences is larger than a certain value.
[0134] For example, as shown in FIG. 36, let (R1, G1, B1) be the value when a certain color 1 is RGB-decomposed. However, R1, G1 and B1 are represented by real numbers or integers, and are R1: red component G1: green component B1: blue component. Similarly, another color 2 is also expressed as (R2, G2, B2).
[0135] At this time, when each value is considered as one point in the three-dimensional vector space, the squared d ^ 2 of the distance between the two points (where X ^ 2 represents the square of X) is It is expressed by d ^ 2 = (R1-R2) ^ 2 + (G1-G2) ^ 2 + (B1-B2) ^ 2.
[0136] When the value d ^ 2 thus obtained is smaller than or the same as a certain predetermined value ε, it is assumed that the colors C1 and C2 are in the vicinity. If not, it is determined that it is not in the vicinity. In addition, when it is expressed in HSB and when it is expressed by a combination of n other real values, the distance in the R ^ n space is similarly obtained in the same manner as above, and the neighborhood is determined.
[0137] When it is determined to be a neighborhood in the neighborhood determination in step S4321142, it is difficult to distinguish between the colors C1 and C2, that is, the corrected display color of the outline character or the outline fill figure is the background fill. Indicates that it is difficult to distinguish because it is close to the display color of the figure. Therefore, in order to further change the display color (change the correction coefficient), the process proceeds from step S4321143 to step S4321144. In step S4321144, a predetermined correction coefficient is corrected. In the present embodiment, the correction is performed by the process shown in step S4321441 (see the flowchart of FIG. 15).
[0138] In this correction method, assuming that a constant correction coefficient is α1 and a correction offset value is dα1, the correction coefficient is corrected by α1 + dα1 or α1-dα1. The sign can be either ±, but the corrected result should be within the range of possible values of the color component.
<White element output process (2)> In this process, a character string or a filled figure with a white attribute is displayed, depending on the output destination, the outline of the character string or the boundary information of the filled figure. This is the process of replacing with (Fig. 37).
[0140] Hereinafter, the white element output process will be described with reference to the flowchart of FIG. Since steps S1 to S4 are the same processes as in FIG. 1, the description thereof will be omitted.
[0141] In step S9, it is determined whether or not the element set in white is a character string. If it is determined that the character string is used, the process proceeds to step S11. In step S11, the central processing unit 21 calculates the figure constituting the outline from the geometric data of the character string. Figure 38 (a) shows the outline figure of the character string. Next, in step S12, the display of the character string is replaced with the contour figure obtained in step S11 displayed in the display color of the character string. Alternatively, it may be displayed as a dotted line to distinguish it from a normal figure.
On the other hand, if it is determined in step S9 that the element set in white is not a character string, the process proceeds to step S10, and it is determined whether the element set in white is a filled figure. If it is a filled figure here, proceed to step S13 and read the boundary information data of the preset filled figure (defining the filled figure is equivalent to setting the boundary information). It is read from the embedded storage device 32 or the like. Boundary information of the filled figure is shown in (b) of FIG. 38.
[0143] In step S14, the display of the filled figure is replaced with the one displayed with the boundary figure display color of the filled figure boundary information. That is, the display of the filled figure is replaced with the display of the boundary figure obtained from the boundary information data of the filled figure obtained in step S13 above in the boundary figure display color. Alternatively, it may be displayed as a dotted line to distinguish it from a normal figure.
<Temporary special display process (1)> Next, in interactive processing or the like, an element that has been selected or cannot be selected as a processing target is displayed in a special display color. In the temporary special display processing, the processing when a character string with a white attribute or a filled figure is the target of the temporary selection display processing will be described. In this process, as shown in FIG. 39, when the background fill figure and the white element are subject to the temporary special display processing, the white element and the background fill figure can be easily distinguished from each other. Display in a display color for temporary special display processing that is different from the display color of the target element of normal temporary special display processing.
[0145] FIG. 7 is a flowchart illustrating a procedure of the temporary special display process. First, in step S5, it is determined whether or not the output element is in the temporary special display state. For the determination of whether or not it is in the temporary special display state, it is assumed that the flag data indicating whether or not it is in the temporary special display state is set in advance in the read / write storage device 32 or the like for each element. Therefore, the above flag data may be read from the read / write / storage device 32 or the like and determined by the central processing unit 21.
If it is determined in step S5 that the special display process is temporary, the process proceeds to step S6, and it is determined whether or not the output element is a white element. As described above, it is assumed that the flag data indicating whether or not the element is a white element is set in the read / write storage device 32 or the like in advance for the determination of whether or not the element is a white element. Therefore, the above flag data is read from the read / write / storage device 32 or the like and determined by the central processing unit 21.
[0147] If it is determined in step S6 that the element is not a white element, the process proceeds to step S7, and the color is set to a normal temporary special display color. It is assumed that the color set when the normal element that is not set in white is in the temporary special display state is set in advance in the read / write / storage device 32 or the like. Therefore, the set color data is read from the read / write / storage device 32 or the like, and the output device is instructed to display the character string or the filled figure.
On the other hand, if it is determined in step S6 that the output element is a white element, the process proceeds to step S8. In step S8, the character string with the white attribute or the fill element data is set to a special color. Note that the color set when the white element is in the temporary special display state (different from the color set when the normal element not set in white in step S7 is in the temporary special display state). The color) is assumed to be set in the read / write / storage device 32 or the like in advance. Therefore, the central processing unit 21 reads the set color data from the read / write / storage device 32 or the like, and instructs the output device to display a character string or a filled figure.
<Temporary Special Display Process (2)> In the above-mentioned temporary special display process, the white element is filled with a color different from the color obtained by the normal temporary special display process. In the following processing, as shown in Fig. 40, when the white element and the background fill figure behind it are subject to temporary special display processing, the white element can be identified so that the white element can be identified. The boundary figure of the outline figure or the filled figure is displayed in the display color for the temporary special display process different from the display color of the target element of the temporary special display process.
[0150] FIG. 12 is a flowchart illustrating a procedure of white element output processing. In FIG. 12, steps S5 to S7 are the same processes as steps S5 to S7 in FIG. 7 described above, and steps S9 and S10 are the same processes as steps S9 and S10 in FIG. 11 described above. The description is omitted here.
[0151] In step S15, the character string contour information is extracted from the character string set in white, and a special color is set in the character string contour information. That is, the display of the character string is replaced by displaying the outline figure of the character string obtained by the same method as in step S11 (FIG. 11) in a color different from the color for the normal temporary special display. Alternatively, it may be displayed as a dotted line to distinguish it from a normal figure.
On the other hand, in the case of a filled figure, the process proceeds from step S10 to step S16, the boundary information of the filled figure is extracted, and the boundary information of the extracted filled figure is set to a special color. That is, the boundary figure obtained from the boundary information data of the filled figure obtained by the same method as in step S13 (FIG. 11) is displayed in a color different from the normal temporary special display color, and the filled figure is displayed. Replace the display of. Alternatively, it may be displayed as a dotted line to distinguish it from a normal figure.
[0153] As described above, according to the present embodiment, during the interactive work, it is possible to distinguish between the white character string or the filled figure and the background color, which facilitates the editing work. Further, by correcting the display color using lightness or saturation, a display color that can be easily associated with the background color can be adaptively set as the display color of the white element. For this reason, when arranging a white character string or a filled figure by interactive processing, it is easy to distinguish between the character string data and the background, and it is possible to use a display color close to the print image, which makes editing work easier. effective.
[0154] Further, (1) the amount of data is smaller than that of having the white background information as the background color information, and (2) the white color does not have to be changed when the background color changes (Fig.). (Because it is processed according to the background color as shown in steps S3 and S4 of 1), (3) It takes less time to set the white outline than matching the color to the background, (4) Output of display device, printing device, etc. More flexible processing can be performed in the display of white elements. (5) The same processing can be performed even when the display color is inverted and interactive processing is performed on the display device (as shown in steps S2 and S4 in FIG. 1). , To determine the output destination and distinguish the processing according to the output destination), (6) The same processing may be performed for both the color display device and the monochrome display device (to change the saturation or brightness in the color change processing). , Has the effect.
[0155] Even if the present invention is applied to a system composed of a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), the present invention is a device composed of one device (for example, a copier, a facsimile). It may be applied to a device, etc.).
[0156] An object of the present invention is to supply a storage medium in which a program code of software that realizes the functions of the above-described embodiment is recorded to a system or device, and to supply a computer (or CPU or MPU) of the system or device. Needless to say, is also achieved by reading and executing the program code stored in the storage medium.
[0157] In this case, the program code itself read from the storage medium realizes the function of the above-described embodiment, and the storage medium storing the program code constitutes the present invention.
[0158] As a storage medium for supplying the program code, for example, a floppy disk, a hard disk, an optical disk, a magneto-optical disk, a CD-ROM, a CD-R, a magnetic tape, a non-volatile memory card, a ROM, or the like is used. Can be done.
[0159] Further, by executing the program code read by the computer, not only the function of the above-described embodiment is realized, but also the OS (operating system) running on the computer is based on the instruction of the program code. ) Etc. perform a part or all of the actual processing, and it goes without saying that the processing may realize the function of the above-described embodiment.
[0160] Further, after the program code read from the storage medium is written in the memory provided in the function expansion board inserted in the computer or the function expansion unit connected to the computer, based on the instruction of the program code, the program code is written. Needless to say, there are cases where the function expansion board, the CPU provided in the function expansion unit, or the like performs a part or all of the actual processing, and the processing realizes the functions of the above-described embodiment.
[Effect of the Invention] As described above, according to the present invention, an appropriate output color is set for a white element for which a white attribute is set, and in an interactive editing process or the like. It is always easy to recognize the white elements.
BRIEF DESCRIPTION OF THE DRAWINGS [FIG. 1] FIG. 1 is a flowchart illustrating a procedure of white element output processing.
FIG. 2 is a flowchart illustrating a procedure for resetting a white element display color.
FIG. 3 is a flowchart illustrating a procedure of output processing of a white element display device.
FIG. 4 is a flowchart illustrating a procedure of HSB decomposition correction processing.
FIG. 5 is a flowchart illustrating a procedure of brightness correction processing.
FIG. 6 is a flowchart illustrating a procedure of brightness correction coefficient calculation processing.
FIG. 7 is a flowchart illustrating a procedure of temporary special display processing.
FIG. 8 is a flowchart illustrating a procedure of a second HSB decomposition correction process.
FIG. 9 is a flowchart illustrating a procedure of saturation correction processing.
FIG. 10 is a flowchart illustrating a procedure of saturation correction coefficient calculation processing.
FIG. 11 is a flowchart illustrating a procedure according to another aspect of the white element output process.
FIG. 12 is a flowchart illustrating a procedure of a second white element output process.
FIG. 13 is a flowchart illustrating a procedure of adaptive correction coefficient calculation processing.
FIG. 14 is a flowchart illustrating a procedure of color neighborhood determination processing.
FIG. 15 is a flowchart illustrating a procedure of correction coefficient correction processing.
FIG. 16 is a block diagram showing a hardware configuration of an information processing device according to an embodiment of the present invention.
FIG. 17 is a diagram illustrating a function of WYSIWIG.
FIG. 18 is a diagram showing a main panel of the program of the present embodiment.
FIG. 19 is a diagram showing feature points of each element.
FIG. 20 is a diagram showing an example of designating a position by designating an intersection.
FIG. 21 is a diagram showing an example of designating a position by designating a point on a line.
FIG. 22 is a diagram showing an example of a print data file.
FIG. 23 is a diagram showing an example of a symbol.
FIG. 24 is a diagram showing an example of a defect related to display of a white element.
FIG. 25 is a diagram showing an example of a defect related to a temporary special display state of a white element.
FIG. 26 is a diagram showing an example of a white element.
FIG. 27 is a diagram illustrating a background fill figure.
FIG. 28 is a diagram illustrating a temporary special display state.
FIG. 29 is a diagram showing a display flow of white elements.
FIG. 30 is a diagram of a panel for setting white attributes.
FIG. 31 is a diagram showing a flow of synthesizing white element display colors.
FIG. 32 is a diagram showing a background fill figure.
FIG. 33 is a diagram illustrating an overlapping area of a white element and a background-filled figure.
FIG. 34 is a diagram illustrating a brightness correction means.
FIG. 35 is a diagram illustrating a saturation correction means.
FIG. 36 is a diagram illustrating color neighborhood determination.
FIG. 37 is a diagram illustrating another procedure for displaying a white element.
FIG. 38 is a diagram illustrating boundary information of a contour figure and a filled figure of a character string.
FIG. 39 is a diagram illustrating a temporary special display state of a white element.
FIG. 40 is a diagram illustrating a temporary special display state of another white element.
2 priority claims, no other members on record
Priority claims2
| Document | Office | Kind | Date |
|---|---|---|---|
| 29593398 | Japan | A | |
| JP19980295933 | – | – | – |
Numbers
- Publication
- 4100779
- Publication, DOCDB
- 4100779
- Publication, EPODOC
- JP4100779B
- Application
- 29593398
- Application, DOCDB
- 29593398
- Application, EPODOC
- JP19980295933
Titles2
- Japanese
- 情報処理装置及び方法並びに記憶媒体
- English
- Information processing equipment and methods and storage media
Classification
- IPC, 7
- G06F3 12
- H04N1 387
- G06T1 00
- G06T11 80
- G09G5 02
- H04N1 46
- H04N1 60