CN103186648B - A kind of method and device of page graphic primitive overlap process - Google Patents
A kind of method and device of page graphic primitive overlap process Download PDFInfo
- Publication number
- CN103186648B CN103186648B CN201110460712.8A CN201110460712A CN103186648B CN 103186648 B CN103186648 B CN 103186648B CN 201110460712 A CN201110460712 A CN 201110460712A CN 103186648 B CN103186648 B CN 103186648B
- Authority
- CN
- China
- Prior art keywords
- attribute information
- information
- original graph
- original
- graph meta
- 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.)
- Expired - Fee Related
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1203—Improving or facilitating administration, e.g. print management
- G06F3/1208—Improving or facilitating administration, e.g. print management resulting in improved quality of the output result, e.g. print layout, colours, workflows, print preview
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
- G06F3/1244—Job translation or job parsing, e.g. page banding
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1278—Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
- G06F3/1285—Remote printer device, e.g. being remote from client or server
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/40—Filling a planar surface by adding surface attributes, e.g. colour or texture
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Quality & Reliability (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Image Generation (AREA)
- Processing Or Creating Images (AREA)
- Record Information Processing For Printing (AREA)
- Image Processing (AREA)
Abstract
Description
技术领域 technical field
本发明涉及数字印刷领域技术,尤其涉及一种页面图元叠印处理的方法及装置。The invention relates to the technology in the field of digital printing, in particular to a method and a device for overprinting processing of page graphic elements.
背景技术 Background technique
传统的图元对象叠印处理,一般都是在光栅化处理器中进行实现。在这样的处理方式下,最终在页面上的叠印效果与用户所设置的光栅化参数有关,与光栅化器其本身的行为也有关。这样,就对最终叠印结果带来诸多不确定性。Traditional primitive object overprint processing is generally implemented in a rasterizer. In this processing mode, the final overprint effect on the page is related to the rasterization parameters set by the user, and also related to the behavior of the rasterizer itself. In this way, a lot of uncertainty is brought to the final overprinting result.
这种不确定性一般表现为:在不同光栅化器中相同页面的光栅化点阵结果不同;或者在相同光栅化器中,由于光栅化参数设置不同,从而导致相同页面每次光栅化点阵结果不同。同时,在光栅化器中进行叠印处理时,由于输出分辨率较高,光栅化点阵数据庞大,对整个叠印处理的效率也会有一定的影响。This kind of uncertainty generally manifests itself as: the results of rasterization of the same page in different rasterizers are different; The results were different. At the same time, when the overprinting process is performed in the rasterizer, due to the high output resolution and the huge rasterized dot matrix data, the efficiency of the entire overprinting process will also be affected to a certain extent.
发明内容 Contents of the invention
本发明实施例提供了一种页面图元叠印处理的方法及装置,可以在页面描述级别完成图元对象的叠印处理,在不改变视觉效果的前提下,降低叠印处理的复杂度,并提高叠印处理的效率。Embodiments of the present invention provide a method and device for overprinting processing of graphic elements on a page, which can complete overprinting processing of graphic element objects at the page description level, reduce the complexity of overprinting processing, and improve overprinting without changing the visual effect. processing efficiency.
本发明实施例提供了一种页面图元叠印处理的方法,包括:An embodiment of the present invention provides a method for overprinting processing of page graphic elements, including:
根据页面的原始描述中所有原始图元对象的属性信息,确定出所有相交的原始图元对象,所述属性信息包括路径信息、叠印属性信息和颜色信息;Determine all intersecting original primitive objects according to the attribute information of all original primitive objects in the original description of the page, the attribute information includes path information, overprint attribute information and color information;
分离出每组相交的原始图元对象的相交部分,将分离后的各个图元对象分别作为独立的当前图元对象,生成所述当前图元对象的包括路径信息的属性信息;Separating the intersecting parts of each group of intersecting original primitive objects, using each separated primitive object as an independent current primitive object, generating attribute information including path information of the current primitive object;
针对每组相交的原始图元对象,根据所述相交的原始图元对象的叠印属性信息和颜色信息进行叠印处理,确定所述当前图元对象的颜色信息,并将所述颜色信息添加到属性信息中;For each group of intersecting original primitive objects, perform overprint processing according to the overprint attribute information and color information of the intersecting original primitive objects, determine the color information of the current primitive object, and add the color information to the attribute information;
根据所述当前图元对象的属性信息和不相交的原始图元对象的属性信息,生成所述页面的当前描述。The current description of the page is generated according to the attribute information of the current primitive object and the attribute information of disjoint original primitive objects.
相应的,本发明实施例提供了一种页面图元叠印处理的装置,包括:Correspondingly, an embodiment of the present invention provides an apparatus for overprinting processing of page graphic elements, including:
相交确定模块,用于根据页面的原始描述中所有原始图元对象的属性信息,确定出所有相交的原始图元对象,所述属性信息包括路径信息、叠印属性信息和颜色信息;An intersection determination module, configured to determine all intersecting original primitive objects according to the attribute information of all original primitive objects in the original description of the page, the attribute information including path information, overprint attribute information and color information;
分离模块,用于分离出每组相交的原始图元对象的相交部分,将分离后的各个图元对象分别作为独立的当前图元对象,生成所述当前图元对象的包括路径信息的属性信息;The separation module is used to separate the intersecting parts of each group of intersecting original primitive objects, use each separated primitive object as an independent current primitive object, and generate attribute information including path information of the current primitive object ;
叠印处理模块,用于针对每组相交的原始图元对象,根据所述相交的原始图元对象的叠印属性信息和颜色信息进行叠印处理,确定所述当前图元对象的颜色信息并将所述颜色信息添加到属性信息中;The overprint processing module is configured to perform overprint processing for each group of intersecting original primitive objects according to the overprint attribute information and color information of the intersected original primitive objects, determine the color information of the current primitive object and Color information is added to attribute information;
生成模块,用于根据所述当前图元对象的属性信息和不相交的原始图元对象的属性信息,生成所述页面的当前描述。A generating module, configured to generate the current description of the page according to the attribute information of the current primitive object and the attribute information of disjoint original primitive objects.
本发明实施例提供了页面图元叠印处理的方法及装置,用于根据页面的原始描述中所有原始图元对象的属性信息,确定出所有相交的原始图元对象,所述属性信息包括路径信息、叠印属性信息和颜色信息;分离出每组相交的原始图元对象的相交部分,将分离后的各个图元对象分别作为独立的当前图元对象,生成所述当前图元对象的包括路径信息的属性信息;针对每组相交的原始图元对象,根据所述相交的原始图元对象的叠印属性信息和颜色信息进行叠印处理,确定所述当前图元对象的颜色信息,并将所述颜色信息添加到属性信息中;根据所述当前图元对象的属性信息和不相交的原始图元对象的属性信息,生成所述页面的当前描述。使用本发明实施例提供的页面图元叠印处理的方法及装置,通过将相交图元对象拆分为多个独立的图元对象,并计算出相交部分的颜色信息,相应修改各个图元对象的属性信息(相关描述),生成新的页面描述。这样可以在页面描述级别完成图元对象的叠印处理,在不改变视觉效果的前提下,降低叠印处理的复杂度,并提高叠印效率。Embodiments of the present invention provide a method and device for overprinting processing of page primitives, which are used to determine all intersecting original primitive objects according to the attribute information of all original primitive objects in the original description of the page, and the attribute information includes path information , overprint attribute information and color information; separate the intersecting parts of each group of intersecting original primitive objects, use each separated primitive object as an independent current primitive object, and generate the path information of the current primitive object attribute information; for each group of intersecting original primitive objects, overprint processing is performed according to the overprint attribute information and color information of the intersecting original primitive objects, the color information of the current primitive object is determined, and the color The information is added to the attribute information; and the current description of the page is generated according to the attribute information of the current primitive object and the attribute information of the disjoint original primitive object. Using the method and device for overprinting processing of page primitives provided by the embodiments of the present invention, by splitting the intersecting primitive objects into multiple independent primitive objects, and calculating the color information of the intersecting parts, modifying the color information of each primitive object accordingly Attribute information (related description), generate a new page description. In this way, the overprint processing of the primitive object can be completed at the page description level, and the complexity of the overprint processing can be reduced without changing the visual effect, and the overprint efficiency can be improved.
附图说明 Description of drawings
图1为本发明实施例中页面图元叠印处理的方法流程示意图;FIG. 1 is a schematic flowchart of a method for overprinting processing of page graphic elements in an embodiment of the present invention;
图2a和图2b为本发明实施例中原始图元分离的结构示意图;Fig. 2a and Fig. 2b are the structural diagrams of the separation of the original graphic elements in the embodiment of the present invention;
图3为本发明另一实施例中页面图元叠印处理的方法流程示意图;FIG. 3 is a schematic flowchart of a method for overprinting processing of page graphics elements in another embodiment of the present invention;
图4为本发明实施例中页面图元叠印处理的装置示意图。FIG. 4 is a schematic diagram of an apparatus for overprinting processing of page graphic elements in an embodiment of the present invention.
具体实施方式 detailed description
下面结合各个附图对本发明实施例技术方案的主要实现原理、具体实施方式及其对应能够达到的有益效果进行详细地阐述。The main realization principles, specific implementation modes and corresponding beneficial effects of the technical solutions of the embodiments of the present invention will be described in detail below in conjunction with each accompanying drawing.
为了解决现有技术存在的问题,本发明实施例提供了一种页面图元叠印处理的方法,如图1所示,包括以下步骤:In order to solve the problems existing in the prior art, an embodiment of the present invention provides a method for overprinting a page graphic element, as shown in FIG. 1 , including the following steps:
步骤101、根据页面的原始描述中所有原始图元对象的属性信息,确定出所有相交的原始图元对象,该属性信息包括路径信息、叠印属性信息和颜色信息;Step 101, according to the attribute information of all original primitive objects in the original description of the page, determine all intersecting original primitive objects, the attribute information includes path information, overprint attribute information and color information;
步骤102、分离出每组相交的原始图元对象的相交部分,将分离后的各个图元对象分别作为独立的当前图元对象,生成当前图元对象的包括路径信息的属性信息;Step 102, separating the intersecting parts of each group of intersecting original primitive objects, using each separated primitive object as an independent current primitive object, and generating attribute information including path information of the current primitive object;
步骤103、针对每组相交的原始图元对象,根据相交的原始图元对象的叠印属性信息和颜色信息进行叠印处理,确定当前图元对象的颜色信息,并将颜色信息添加到属性信息中;Step 103, for each group of intersecting original primitive objects, perform overprint processing according to the overprint attribute information and color information of the intersecting original primitive objects, determine the color information of the current primitive object, and add the color information to the attribute information;
步骤104、根据当前图元对象的属性信息和不相交的原始图元对象的属性信息,生成页面的当前描述。Step 104: Generate the current description of the page according to the attribute information of the current primitive object and the attribute information of the disjoint original primitive object.
具体的,分析页面的原始描述,获取页面中所有原始图元对象的属性信息,并按照页面描述中描述图元对象的顺序,存储所有图元对象的属性信息。该原始图元对象的属性信息包括:路径信息、叠印属性信息和颜色信息,还包括:图元对象类型、图元对象的剪裁信息;其中所述颜色信息包括:色空间和颜色值。Specifically, the original description of the page is analyzed, the attribute information of all original primitive objects in the page is obtained, and the attribute information of all primitive objects is stored according to the sequence in which the primitive objects are described in the page description. The attribute information of the original primitive object includes: path information, overprint attribute information and color information, and also includes: primitive object type, clipping information of the primitive object; wherein the color information includes: color space and color value.
然后,获取所有原始图元对象的属性信息中的路径信息;当两个路径信息表示的路径之间的距离小于预定阈值时,确定两个路径信息分别对应的原始图元对象的位置关系为相交。由于图元对象的路径信息都是采用矢量形式进行描述和记录,所以,可以采用矢量的相关算法判断两个路径是否相交。一般情况下,图元对象的位置关系包括相离、相邻不相交和相交三种情况。对于相邻不相交的情况,可以根据实际情况通过调整路径,使其改变为相离或相交。Then, obtain the path information in the attribute information of all original primitive objects; when the distance between the paths represented by the two path information is less than a predetermined threshold, determine that the positional relationship of the original primitive objects corresponding to the two path information is intersection . Since the path information of the primitive object is described and recorded in the form of vector, it is possible to use the correlation algorithm of vector to judge whether two paths intersect. In general, the positional relationship of primitive objects includes three situations: separation, adjacent non-intersecting and intersecting. For the adjacent non-intersecting situation, the path can be adjusted to be separated or intersected according to the actual situation.
将每组相交的原始图元对象的路径信息进行求交处理,将相交的原始图元对象的相交部分分离出来,并与分离后剩余的原始图元对象分别作为独立的当前图元对象,且生成每个当前图元对象各自的包括路径信息的属性信息。如图2a所示,相交的原始图元对象为:一个圆形和一个正六边形;如图2b所示,经过求交处理后,将该两个相交的原始图元对象分离为彼此不相交的三个当前图元对象。同时,经过求交处理后,生成每个当前图元对象的属性信息,其中,经过修改的原始图元对象作为当前图元对象,其属性信息中的路径信息被修改;相交的原始图元对象的相交部分作为当前图元对象,其属性信息为新生成的属性信息,包括路径信息、叠印属性信息、图元对象类型、图元对象的剪裁信息等。Perform intersection processing on the path information of each group of intersecting original primitive objects, separate the intersecting part of the intersecting original primitive objects, and use the remaining original primitive objects after separation as independent current primitive objects, and Generate respective attribute information including path information for each current primitive object. As shown in Figure 2a, the intersecting original primitive objects are: a circle and a regular hexagon; as shown in Figure 2b, after the intersection processing, the two intersecting original primitive objects are separated into non-intersecting each other The three current primitive objects. At the same time, after the intersection processing, the attribute information of each current primitive object is generated, wherein the modified original primitive object is used as the current primitive object, and the path information in its attribute information is modified; the intersected original primitive object The intersection part of is used as the current primitive object, and its attribute information is the newly generated attribute information, including path information, overprint attribute information, primitive object type, primitive object clipping information, etc.
相交部分的颜色信息由相交的原始图元对象的属性信息决定,所以需要根据相交的原始图元对象的叠印属性信息,确定相交部分的颜色呈现方式;根据呈现方式,呈现相交的原始图元对象中一个原始图元对象的颜色,或者根据相交的原始图元对象的颜色信息,计算出相交部分的颜色,作为相交部分的颜色信息;然后,将相交部分的颜色信息,添加到相应的当前图元对象的属性信息中。例如,假设两个原始图元对象相交,其中一个为白色图元对象,另一个为黑色图元对象,则当白色图元对象的叠印属性为始终置于顶层,则这两个图元对象的相交部分的颜色为白色;若两个原始图元对象的叠印属性在同一层,则计算两个图元对象的颜色混合后的颜色值,如为灰色。具体计算颜色值的方法可以参考现有技术中的一些方式,在此不做为本发明的重点。The color information of the intersecting part is determined by the attribute information of the intersecting original primitive object, so it is necessary to determine the color rendering method of the intersecting part according to the overprint attribute information of the intersecting original primitive object; according to the rendering method, the intersecting original primitive object is presented The color of an original primitive object, or calculate the color of the intersected part according to the color information of the intersected original primitive object, as the color information of the intersected part; then, add the color information of the intersected part to the corresponding current graph In the attribute information of the meta object. For example, assuming that two original primitive objects intersect, one of which is a white primitive object and the other is a black primitive object, then when the overprint property of the white primitive object is always on top, the The color of the intersecting part is white; if the overprint attribute of the two original primitive objects is on the same layer, calculate the color value of the mixed color of the two primitive objects, such as gray. For the specific method of calculating the color value, reference may be made to some methods in the prior art, which is not the focus of the present invention.
相交部分对应的当前图元对象的属性信息完整后,将该相交的原始图元对象的相交部分对应的当前图元对象的属性信息,存储在相交的原始图元对象的属性信息之后。如图2b所示,中间相交部分的属相信息,应存储在修改后的圆形图元对象和修改后的正六边形图元对象的后面,例如紧邻该原始图元对象的属性信息存储,或者与原始图元对象之间具有其他图元对象的属性信息。较佳的,将相交部分对应的当前图元对象存储在所有原始图元对象之后。例如,假设依次存储了图元对象1至图元对象6的属性信息,图元对象1和图元对象3相交,则经过叠印处理后,修改图元对象1和图元对象3的属性信息,并将图元对象1和图元对象3相交部分生成的当前图元对象7的属性信息存储在图元对象6的属性信息后面,或者也可以将该当前图元对象7的属性信息插入存储到图元对象3的属性信息后面。After the attribute information of the current primitive object corresponding to the intersection part is complete, the attribute information of the current primitive object corresponding to the intersection part of the intersected original primitive object is stored after the attribute information of the intersected original primitive object. As shown in Figure 2b, the genus information of the intersecting part in the middle should be stored behind the modified circular primitive object and the modified regular hexagonal primitive object, such as the attribute information storage next to the original primitive object, or It has attribute information of other primitive objects between the original primitive object. Preferably, the current primitive object corresponding to the intersection part is stored after all original primitive objects. For example, assuming that the attribute information of primitive object 1 to primitive object 6 is stored sequentially, and that primitive object 1 and primitive object 3 intersect, then after overprinting processing, modify the attribute information of primitive object 1 and primitive object 3, And the attribute information of the current primitive object 7 generated by the intersection of the primitive object 1 and the primitive object 3 is stored behind the attribute information of the primitive object 6, or the attribute information of the current primitive object 7 can also be inserted and stored in Behind the attribute information of primitive object 3.
最后,根据当前图元对象的属性信息和不相交的原始图元对象的属性信息,生成页面的当前描述。Finally, the current description of the page is generated according to the attribute information of the current primitive object and the disjoint attribute information of the original primitive object.
通过上述描述,可以看出,使用本发明实施例提供的页面图元叠印处理的方法,通过将相交图元对象拆分为多个独立的图元对象,并计算出相交部分的颜色信息,相应修改各个图元对象的属性信息(相关描述),生成新的页面描述。这样可以在页面描述级别完成图元对象的叠印处理,在不改变视觉效果的前提下,降低叠印处理的复杂度,并提高叠印处理的效率。From the above description, it can be seen that using the method for overprinting processing of page primitives provided by the embodiment of the present invention, by splitting the intersecting primitive objects into multiple independent primitive objects, and calculating the color information of the intersecting parts, corresponding Modify the attribute information (related description) of each primitive object to generate a new page description. In this way, the overprint processing of the primitive object can be completed at the page description level, and the complexity of the overprint processing can be reduced and the efficiency of the overprint processing can be improved without changing the visual effect.
下面通过具体实施例对本发明实施例提供的页面图元叠印处理的方法进行详细说明,如图3所示,包括以下步骤:The method for overprinting processing of page graphic elements provided by the embodiment of the present invention will be described in detail below through specific embodiments, as shown in FIG. 3 , including the following steps:
步骤301、分析页面的原始描述,获取页面中所有原始图元对象的属性信息;该原始图元对象的属性信息包括:路径信息、叠印属性信息和颜色信息,还包括:图元对象类型、图元对象的剪裁信息;其中颜色信息包括:色空间和颜色值。Step 301, analyze the original description of the page, and obtain the attribute information of all original primitive objects in the page; the attribute information of the original primitive object includes: path information, overprint attribute information and color information, and also includes: primitive object type, graph The clipping information of the meta object; the color information includes: color space and color value.
步骤302、按照页面描述中描述图元对象的顺序,存储所有图元对象的属性信息;Step 302, storing attribute information of all primitive objects according to the order in which the primitive objects are described in the page description;
步骤303、获取所有原始图元对象的属性信息中的路径信息,确定出相交的原始图元对象;具体的,当两个路径信息表示的路径之间的距离小于预定阈值时,确定两个路径信息分别对应的原始图元对象的位置关系为相交。Step 303: Obtain the path information in the attribute information of all original primitive objects, and determine the intersecting original primitive objects; specifically, when the distance between the paths indicated by the two path information is less than a predetermined threshold, determine the two paths The positional relationship of the original primitive objects corresponding to the information is intersection.
步骤304、将每组相交的原始图元对象的路径信息进行求交处理,将相交的原始图元对象的相交部分分离出来;Step 304, performing intersection processing on the path information of each group of intersecting original primitive objects, and separating the intersecting parts of the intersecting original primitive objects;
步骤305、将相交部分与分离后剩余的原始图元对象分别作为独立的当前图元对象,且生成每个当前图元对象的属性信息;其中,该相交部分对应的当前图元对象的属性信息中包括路径信息,但不包括颜色信息。Step 305, taking the intersecting part and the remaining original primitive objects after separation as independent current primitive objects, and generating attribute information of each current primitive object; wherein, the attribute information of the current primitive object corresponding to the intersection part Include path information, but not color information.
步骤306、根据相交的原始图元对象的叠印属性信息和颜色信息,确定相交部分对应的当前图元的颜色信息并添加到属性信息中;Step 306, according to the overprint attribute information and color information of the intersecting original primitive object, determine the color information of the current primitive corresponding to the intersection part and add it to the attribute information;
步骤307、将该相交部分对应的当前图元对象的属性信息,存储在相交的原始图元对象的属性信息之后;Step 307, storing the attribute information of the current primitive object corresponding to the intersection part after the attribute information of the intersected original primitive object;
步骤308、根据当前图元对象的属性信息和不相交的原始图元对象的属性信息,生成页面的当前描述。Step 308: Generate the current description of the page according to the attribute information of the current primitive object and the attribute information of the disjoint original primitive object.
通过上述描述,可以看出,使用本发明实施例提供的页面图元叠印处理的方法,通过将相交图元对象拆分为多个独立的图元对象,并计算出相交部分的颜色信息,相应修改各个图元对象的属性信息(相关描述),生成新的页面描述。这样可以在页面描述级别完成图元对象的叠印处理,在不改变视觉效果的前提下,降低叠印处理的复杂度,并提高叠印处理的效率。From the above description, it can be seen that using the method for overprinting processing of page primitives provided by the embodiment of the present invention, by splitting the intersecting primitive objects into multiple independent primitive objects, and calculating the color information of the intersecting parts, corresponding Modify the attribute information (related description) of each primitive object to generate a new page description. In this way, the overprint processing of the primitive object can be completed at the page description level, and the complexity of the overprint processing can be reduced and the efficiency of the overprint processing can be improved without changing the visual effect.
基于同一发明构思,本发明实施例还提供了一种页面图元叠印处理的装置,如图4所示,包括:Based on the same inventive concept, an embodiment of the present invention also provides an apparatus for overprinting processing of page graphic elements, as shown in FIG. 4 , including:
相交确定模块401,用于根据页面的原始描述中所有原始图元对象的属性信息,确定出所有相交的原始图元对象,所述属性信息包括路径信息、叠印属性信息和颜色信息;The intersection determination module 401 is configured to determine all intersecting original primitive objects according to the attribute information of all original primitive objects in the original description of the page, and the attribute information includes path information, overprint attribute information and color information;
分离模块402,用于分离出每组相交的原始图元对象的相交部分,将分离后的各个图元对象分别作为独立的当前图元对象,生成所述当前图元对象的包括路径信息的属性信息;The separation module 402 is used to separate the intersecting parts of each group of intersecting original primitive objects, use each separated primitive object as an independent current primitive object, and generate the attributes of the current primitive object including path information information;
叠印处理模块403,用于针对每组相交的原始图元对象,根据所述相交的原始图元对象的叠印属性信息和颜色信息进行叠印处理,确定所述当前图元对象的颜色信息,并将所述颜色信息添加到属性信息中;The overprint processing module 403 is configured to, for each group of intersecting original primitive objects, perform overprint processing according to the overprint attribute information and color information of the intersecting original primitive objects, determine the color information of the current primitive object, and The color information is added to the attribute information;
生成模块404,用于根据所述当前图元对象的属性信息和不相交的原始图元对象的属性信息,生成所述页面的当前描述。The generation module 404 is configured to generate the current description of the page according to the attribute information of the current primitive object and the attribute information of disjoint original primitive objects.
较佳的,该装置还包括:Preferably, the device also includes:
获取模块405,用于分析页面的原始描述,获取所述页面中所有原始图元对象的属性信息;Obtaining module 405, configured to analyze the original description of the page, and acquire attribute information of all original primitive objects in the page;
存储模块406,用于按照所述页面描述中描述图元对象的顺序,存储所述所有图元对象的属性信息。The storage module 406 is configured to store the attribute information of all the primitive objects according to the sequence in which the primitive objects are described in the page description.
较佳的,所述存储模块406,还用于将所述相交的原始图元对象的相交部分对应的当前图元对象的属性信息,存储在所述相交的原始图元对象的属性信息之后。Preferably, the storage module 406 is further configured to store the attribute information of the current primitive object corresponding to the intersection part of the intersecting original primitive object after the attribute information of the intersecting original primitive object.
较佳的,所述相交确定模块401,具体用于获取所有原始图元对象的属性信息中的路径信息;当两个所述路径信息表示的路径之间的距离小于预定阈值时,确定所述两个所述路径信息分别对应的原始图元对象的位置关系为相交。Preferably, the intersection determining module 401 is specifically configured to obtain path information in the attribute information of all original primitive objects; when the distance between two paths represented by the path information is less than a predetermined threshold, determine the The positional relationship of the original primitive objects respectively corresponding to the two path information is intersection.
较佳的,所述分离模块402,具体用于将每组所述相交的原始图元对象的路径信息进行求交处理,将所述相交的原始图元对象的相交部分分离出来,并与分离后剩余的原始图元对象分别作为独立的当前图元对象,且生成每个当前图元对象各自的包括路径信息的属性信息。Preferably, the separation module 402 is specifically configured to perform intersection processing on the path information of each group of intersected original primitive objects, separate the intersecting parts of the intersected original primitive objects, and separate The remaining original primitive objects are respectively regarded as independent current primitive objects, and respective attribute information including path information of each current primitive object is generated.
较佳的,所述叠印处理模块403,用于根据所述相交的原始图元对象的叠印属性信息,确定相交部分的颜色呈现方式;根据呈现方式,呈现所述相交的原始图元对象中一个原始图元对象的颜色,或者根据所述相交的原始图元对象的颜色信息,计算出相交部分的颜色,作为相交部分的颜色信息;将所述原始图元对象的颜色信息和相交部分的颜色信息,添加到相应的当前图元对象的属性信息中。Preferably, the overprint processing module 403 is configured to determine the color presentation mode of the intersecting part according to the overprint attribute information of the intersecting original graphic object; and present one of the intersecting original graphic object according to the presentation mode. The color of the original primitive object, or calculate the color of the intersecting part according to the color information of the original primitive object of the intersection, as the color information of the intersecting part; the color information of the original primitive object and the color of the intersecting part Information, added to the attribute information of the corresponding current primitive object.
通过上述描述,可以看出,使用本发明实施例提供的页面图元叠印处理的方法及装置,通过将相交图元对象拆分为多个独立的图元对象,并计算出相交部分的颜色信息,相应修改各个图元对象的属性信息(相关描述),生成新的页面描述。这样可以在页面描述级别完成图元对象的叠印处理,在不改变视觉效果的前提下,降低叠印处理的复杂度,并提高叠印处理的效率。From the above description, it can be seen that using the method and device for overprinting processing of page primitives provided by the embodiments of the present invention, the intersecting primitive objects are divided into multiple independent primitive objects, and the color information of the intersecting parts is calculated , correspondingly modify the attribute information (related description) of each primitive object, and generate a new page description. In this way, the overprint processing of the primitive object can be completed at the page description level, and the complexity of the overprint processing can be reduced and the efficiency of the overprint processing can be improved without changing the visual effect.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, systems, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and equivalent technologies thereof, the present invention also intends to include these modifications and variations.
Claims (10)
Priority Applications (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201110460712.8A CN103186648B (en) | 2011-12-31 | 2011-12-31 | A kind of method and device of page graphic primitive overlap process |
| PCT/CN2012/088055 WO2013097813A1 (en) | 2011-12-31 | 2012-12-31 | Method and device for overprinting page graphic elements |
| JP2014516191A JP2014520010A (en) | 2011-12-31 | 2012-12-31 | Page graphic element overprint processing method and apparatus |
| KR1020137033915A KR20140063528A (en) | 2011-12-31 | 2012-12-31 | Method and device for overprinting page graphic elements |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201110460712.8A CN103186648B (en) | 2011-12-31 | 2011-12-31 | A kind of method and device of page graphic primitive overlap process |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103186648A CN103186648A (en) | 2013-07-03 |
| CN103186648B true CN103186648B (en) | 2016-09-21 |
Family
ID=48677817
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201110460712.8A Expired - Fee Related CN103186648B (en) | 2011-12-31 | 2011-12-31 | A kind of method and device of page graphic primitive overlap process |
Country Status (4)
| Country | Link |
|---|---|
| JP (1) | JP2014520010A (en) |
| KR (1) | KR20140063528A (en) |
| CN (1) | CN103186648B (en) |
| WO (1) | WO2013097813A1 (en) |
Families Citing this family (19)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP3740735A4 (en) * | 2018-01-16 | 2021-11-24 | Pacific Light&Hologram, Inc. | THREE DIMENSIONAL DISPLAYS USING ELECTROMAGNETIC FIELDS CALCULATIONS |
| CN110097147B (en) * | 2018-01-29 | 2020-07-14 | 北大方正集团有限公司 | Method and system for setting primitive drawing attribute, computer equipment and storage medium |
| US11762333B2 (en) | 2020-09-17 | 2023-09-19 | Pacific Light & Hologram, Inc. | Reconstructing objects with display zero order light suppression |
| CN114510520B (en) * | 2022-02-07 | 2025-06-17 | 中国电力科学研究院有限公司 | Dynamic transaction path visualization interaction method, device, equipment and medium |
| US12300132B2 (en) | 2023-05-12 | 2025-05-13 | Pacific Light & Hologram, Inc. | Holographically displaying three-dimensional objects |
| US12243453B2 (en) | 2023-05-12 | 2025-03-04 | Pacific Light & Hologram, Inc. | Holographically displaying three-dimensional objects |
| US11900842B1 (en) | 2023-05-12 | 2024-02-13 | Pacific Light & Hologram, Inc. | Irregular devices |
| US12288490B2 (en) | 2023-05-12 | 2025-04-29 | Pacific Light & Hologram, Inc. | Holographically displaying three-dimensional objects |
| US12236816B2 (en) | 2023-05-12 | 2025-02-25 | Pacific Light & Hologram, Inc. | Holographically displaying live scenes including three-dimensional objects |
| US12374247B2 (en) | 2023-05-12 | 2025-07-29 | Pacific Light & Hologram, Inc. | Holographically displaying live scenes including three-dimensional objects |
| US12293687B2 (en) | 2023-05-12 | 2025-05-06 | Pacific Light & Hologram, Inc. | Holographically displaying live scenes including three-dimensional objects |
| US12230176B2 (en) | 2023-05-12 | 2025-02-18 | Pacific Light & Hologram, Inc. | Holographically displaying three-dimensional objects |
| US12315403B2 (en) | 2023-05-12 | 2025-05-27 | Pacific Light & Hologram, Inc. | Holographically displaying three-dimensional objects |
| US12266279B2 (en) | 2023-05-12 | 2025-04-01 | Pacific Light & Hologram, Inc. | Holographically displaying three-dimensional objects with optical devices having in-coupling and out-coupling diffractive structures |
| US12272279B2 (en) | 2023-05-12 | 2025-04-08 | Pacific Light & Hologram, Inc. | Holographically displaying three-dimensional objects |
| US12266280B2 (en) | 2023-05-12 | 2025-04-01 | Pacific Light & Hologram, Inc. | Holographically displaying three-dimensional objects |
| US12254797B2 (en) | 2023-05-12 | 2025-03-18 | Pacific Light & Hologram, Inc. | Holographically displaying live scenes including three-dimensional objects |
| US12254798B2 (en) | 2023-05-12 | 2025-03-18 | Pacific Light & Hologram, Inc. | Holographically displaying three-dimensional objects |
| US12281984B1 (en) | 2023-12-21 | 2025-04-22 | Pacific Light & Hologram, Inc. | Optical measurements |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6288724B1 (en) * | 1998-09-16 | 2001-09-11 | Texas Instruments Incorporated | Clipping and trapezoid decomposition of polygons for printing files in a page description language |
| CN102111529A (en) * | 2009-12-25 | 2011-06-29 | 北大方正集团有限公司 | Method and device for carrying out trapping treatment on gradually changed primitive object |
Family Cites Families (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2812412B2 (en) * | 1992-05-18 | 1998-10-22 | キヤノン株式会社 | Printer control device and method |
| JP2910649B2 (en) * | 1995-12-28 | 1999-06-23 | 富士ゼロックス株式会社 | Image forming apparatus and image forming method |
| JPH1049690A (en) * | 1996-08-07 | 1998-02-20 | Fuji Xerox Co Ltd | Picture forming device |
| JP2004304469A (en) * | 2003-03-31 | 2004-10-28 | Minolta Co Ltd | Regional division of original image, compression program, and regional division and compression method |
| JP3935127B2 (en) * | 2003-09-30 | 2007-06-20 | 京セラミタ株式会社 | Image forming method |
| JP4508953B2 (en) * | 2005-06-07 | 2010-07-21 | キヤノン株式会社 | Image processing method and image processing apparatus |
| JP4145910B2 (en) * | 2005-09-16 | 2008-09-03 | 京セラミタ株式会社 | Image forming apparatus and control program |
| JP5411692B2 (en) * | 2009-12-28 | 2014-02-12 | キヤノン株式会社 | Image processing apparatus and image processing method |
| JP5686292B2 (en) * | 2011-03-29 | 2015-03-18 | 富士ゼロックス株式会社 | Information processing apparatus and processing program |
-
2011
- 2011-12-31 CN CN201110460712.8A patent/CN103186648B/en not_active Expired - Fee Related
-
2012
- 2012-12-31 WO PCT/CN2012/088055 patent/WO2013097813A1/en not_active Ceased
- 2012-12-31 KR KR1020137033915A patent/KR20140063528A/en not_active Ceased
- 2012-12-31 JP JP2014516191A patent/JP2014520010A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6288724B1 (en) * | 1998-09-16 | 2001-09-11 | Texas Instruments Incorporated | Clipping and trapezoid decomposition of polygons for printing files in a page description language |
| CN102111529A (en) * | 2009-12-25 | 2011-06-29 | 北大方正集团有限公司 | Method and device for carrying out trapping treatment on gradually changed primitive object |
Non-Patent Citations (1)
| Title |
|---|
| 一种面向多光谱图像的打印分色方法;王莹 等;《光学学报》;20090815;第29卷(第8期);第2122-2127页 * |
Also Published As
| Publication number | Publication date |
|---|---|
| KR20140063528A (en) | 2014-05-27 |
| JP2014520010A (en) | 2014-08-21 |
| CN103186648A (en) | 2013-07-03 |
| WO2013097813A1 (en) | 2013-07-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103186648B (en) | A kind of method and device of page graphic primitive overlap process | |
| US10748324B2 (en) | Generating stylized-stroke images from source images utilizing style-transfer-neural networks with non-photorealistic-rendering | |
| US8217962B2 (en) | Single-pass bounding box calculation | |
| CN109035381B (en) | Cartoon picture hair rendering method and storage medium based on UE4 platform | |
| US10776996B2 (en) | Method and apparatus for processing image | |
| US20140267393A1 (en) | Virtual scene generation based on imagery | |
| CN110115841B (en) | Rendering method and device for vegetation object in game scene | |
| CN112489183A (en) | Unity 3D-based skeletal animation rendering method and system | |
| CN101685548A (en) | Fragment shader for a hybrid raytracing system and method of operation | |
| JP6676744B1 (en) | Image processing method, image processing system and program | |
| JP2014517961A5 (en) | ||
| WO2023179091A1 (en) | Three-dimensional model rendering method and apparatus, and device, storage medium and program product | |
| US8854392B2 (en) | Circular scratch shader | |
| CN102819855A (en) | Method and device for generating two-dimensional images | |
| KR20210123243A (en) | Method for processing 3-d data | |
| US8464170B2 (en) | 2D editing metaphor for 3D graphics | |
| US9704290B2 (en) | Deep image identifiers | |
| AU2006287409B2 (en) | 2D/3D combined rendering | |
| CN113920318A (en) | License plate image generation method, system and license plate image generator | |
| KR101189687B1 (en) | Method for creating 3d character | |
| KR20150128536A (en) | Method and apparatus for processing image | |
| Wübben et al. | Instance-level augmentation for synthetic agricultural data using depth maps | |
| KR100818286B1 (en) | Method and apparatus for rendering 3D graphics data considering fog effect | |
| Huang et al. | Pixel art color palette synthesis | |
| CN113590330A (en) | Grid model rendering method and device and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| ASS | Succession or assignment of patent right |
Owner name: FOUNDER INFORMATION INDUSTRY HOLDING CO., LTD. BEI Free format text: FORMER OWNER: BEIDA FANGZHENG ELECTRONICS CO., LTD., BEIJING Effective date: 20130902 |
|
| C41 | Transfer of patent application or patent right or utility model | ||
| TA01 | Transfer of patent application right |
Effective date of registration: 20130902 Address after: 100871 Beijing, Haidian District into the house road, founder of the building on the 9 floor, No. 298 Applicant after: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd. Applicant after: FOUNDER INFORMATION INDUSTRY HOLDINGS Co.,Ltd. Applicant after: BEIJING FOUNDER ELECTRONICS Co.,Ltd. Address before: 100871 Beijing, Haidian District into the house road, founder of the building on the 9 floor, No. 298 Applicant before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd. Applicant before: BEIJING FOUNDER ELECTRONICS Co.,Ltd. |
|
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CP01 | Change in the name or title of a patent holder |
Address after: 100871, Beijing, Haidian District Cheng Fu Road 298, founder building, 9 floor Patentee after: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd. Patentee after: PKU FOUNDER INFORMATION INDUSTRY GROUP CO.,LTD. Patentee after: BEIJING FOUNDER ELECTRONICS Co.,Ltd. Address before: 100871, Beijing, Haidian District Cheng Fu Road 298, founder building, 9 floor Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd. Patentee before: FOUNDER INFORMATION INDUSTRY HOLDINGS Co.,Ltd. Patentee before: BEIJING FOUNDER ELECTRONICS Co.,Ltd. |
|
| CP01 | Change in the name or title of a patent holder | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20220913 Address after: 3007, Hengqin international financial center building, No. 58, Huajin street, Hengqin new area, Zhuhai, Guangdong 519031 Patentee after: New founder holdings development Co.,Ltd. Patentee after: BEIJING FOUNDER ELECTRONICS Co.,Ltd. Address before: 100871, Beijing, Haidian District Cheng Fu Road 298, founder building, 9 floor Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd. Patentee before: PKU FOUNDER INFORMATION INDUSTRY GROUP CO.,LTD. Patentee before: BEIJING FOUNDER ELECTRONICS Co.,Ltd. |
|
| TR01 | Transfer of patent right | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160921 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |