Processing illustration artwork

Abstract: Methods and computer programs for processing a computer graphics illustration having overlapping pieces of artwork. The method includes flattening at least some of the pieces of artwork into non-overlapping regions, storing information describing how the appearances of one or more pieces of artwork can be combined to determine an appearance for at least one of the non-overlapping regions, determining an appearance for at least one of the non-overlapping regions based on the stored information, and outputting the determined appearance.

Description: Background of the Invention This invention relates to processing pieces of artwork in a computer-graphics illustration. Many items in everyday life exhibit some degree.of transparency. For example, a car windshield is almost completely transparent. The tinted glass of a bottle is less transparent than a car windshield; however, a viewer can still make out objects behind the bottle. Simulating transparency in a computer-generated images can consume large amounts of computer memory due to the amount of data needed to describe the image. For example, an image printed by a typical computer printer is made up of millions of colored dots roughly 0.005 inches in size. For each dot, a computer must determine a color based on the different transparent graphics overlapping the area covered by the dot. The process of determining these colors is known as "compositing." EP 0 924 653 A2 discloses a system for blending graphical objects using planar map representations. A page description or representation of an input document's graphical object is converted into a planar map representation. A colour is assigned to each region in the planar map as a function of the region's associated path transparency characteristics. It is an object of the present invention to provide a method of processing a computer graphics illustration and a computer program product for processing a computer graphics illustration which enables a faster processing and requires less computer memory. This object is solved according to the present invention by a method having the features disclosed in claim 1 and a computer program product having the feature disclosed in claim 29. Preferred embodiments are subject of the dependent claims. Summary of the Invention In general, in one aspect, a method of processing a computer graphics illustration having overlapping pieces of artwork includes flattening the artwork into non-overlapping regions, storing information describing how the appearances of artwork can be combined to determine an appearance for the non-overlapping regions, determining an appearance for the non-overlapping regions based on the stored information, and outputting the determined appearance. Furthermore, the stored information includes a graph that includes nodes, each node representing an appearance of a corresponding non-overlapping region, each node being a root of a tree that terminates in one or more leaves, wherein each leaf represents an appearance of a corresponding one of the pieces of artwork. Embodiments may include one or more of the following. Outputting may include printing. Flattening the artwork into non-overlapping regions may include producing a planar map. The information describing how to combine appearances may include information describing how the appearances of two or more other non-overlapping regions can be combined to determine an appearance. The method may further include discarding (e.g., deallocating from memory) the determined appearance of a non-overlapping region before determining an appearance of a different non-overlapping region. The method may further include not discarding selected regions. Storing information may include constructing a directed graph that includes one or more nodes representing the appearance of one of the non-overlapping regions. Each node in the graph may be the root of a tree. Storing information may include constructing an artwork tree that stores transparency values for pieces of artwork. The artwork tree may store transparency values for groups of pieces of artwork. Flattening artwork may include determining whether to include a piece of artwork or a portion of a piece of artwork in the flattening. Such determining may include determining whether a piece of artwork covers an area of the illustration also covered by one or more pieces of artwork having a degree of transparency. This determining may include mapping areas of the illustration covered by pieces of artwork having a degree of transparency and determining whether an opaque piece of artwork overlaps at least a portion of the mapped areas. Such mapping may include producing a map on an off-screen raster, for example, by using a rasterization engine to mark areas of the off-screen raster. The determining whether to include a piece of artwork in the flattening may include determining whether to include an opaque piece of artwork entirely within the mapped area. The determining may include a portion of an opaque piece of artwork within the mapped area. The outputting may include outputting an opaque piece of artwork outside the mapped area. The determining whether to include a piece of artwork in the flattening may include mapping one or more complex regions of the illustration and determining whether a piece of artwork overlaps the mapped complex region(s). Mapping complex regions may include mapping areas having a number of paths of pieces of artwork that exceeds a threshold. Mapping a complex region may include stroking the paths of the pieces of artwork on an off-screen raster. The method may further include processing a piece of artwork based on its degree of overlap with a complex region. The method may further include rasterizing the complex region and outputting the rasterized area. Preferably, the invention features a method of processing a computer graphics illustration having overlapping artwork objects. The method includes flattening the illustration artwork objects into non-overlapping regions of a planar map, and constructing a directed graph that includes a node for regions of the planar map. For at least some of the regions of the planar map, the method further includes determining a region appearance, outputting the determined appearance for the region, and discarding the stored appearance before determining the appearance of a different non-overlapping region. In general, in another aspect, the invention features a computer program product, disposed on a computer readable medium, for processing a computer graphics illustration having overlapping pieces of artwork, each piece of artwork having an appearance. The computer program includes instructions for causing a processor to flatten at least some of the illustration artwork into non-overlapping regions, store information describing how the appearances of one or more pieces of artwork can be combined to determine an appearance for a given one of the non-overlapping regions, determine an appearance for at least one of the non-overlapping regions based on the stored information, and output the determined appearance. Furthermore, the stored information includes a graph that includes nodes, each node representing an appearance of a corresponding non-overlapping region, each node being a root of a tree that terminates in one or more leaves, wherein each leaf represents an appearance of a corresponding one of the pieces of artwork. Brief Description of the Drawings FIGS. 1-4 are diagrams of illustrations that include overlapping artwork objects. FIG. 5 is a diagram of a planar map. FIG. 6 is a diagram of a graph that can be used to determine the appearance of regions in the planar map. FIGS. 7-9 are diagrams illustrating a process for constructing a planar map and graph. FIG. 10 is a flowchart of a process for outputting an illustration. FIGS. 11-14 are diagrams illustrating a process for identifying transparent regions of an illustration. FIG. 15 is a flowchart of a process for excluding regions of an illustration from representation in a planar map. FIG. 16 is a diagram of a planar map. FIGS. 17-20 are diagrams illustrating a process for identifying complex regions of an illustration. FIG. 21 is a flowchart of a process for excluding regions of an illustration from representation in a planar map. FIG. 22 is a diagram of a planar map. FIG. 23 is a diagram of a computer platform. Detailed Description I. Introduction FIG. 1 shows a computer illustration 10 that includes a circle 12 and a triangle 14. The circle 12 and triangle 14 are simple examples of artwork objects. An artwork object 12, 14 includes an outline shape (i.e., a path) and an appearance. The appearance may include a particular color, a type of shading, and/or a picture (i.e., a raster). As shown in FIG. 1, the intersection of circle 12 and triangle 14 forms a region 16. This intersection raises an important question. Should region 16 appear like the circle 12, the triangle 14, or some mixture of the two? One way to resolve the question of how to display regions shared by objects is to define different illustration layers. Each object appears on at least one layer. Objects at higher layers can block the visibility of objects at lower layers. These layers can be established by defining a painting order that describes a sequence for placing artwork objects in the illustration 10 (e.g., first paint the circle, then paint the triangle on top of the circle). Each object in the painting order essentially is given its own layer with objects earlier in the painting order appearing behind objects later in the order. As shown in FIG. 2, an opaque artwork object 14 on a higher layer can hide portions of an artwork object 12 on a lower layer. Instead of completely covering another object, artwork objects can exhibit some transparency. As shown in FIG. 3, when red triangle 14 has some degree of transparency, placing red triangle 14 on top of blue circle 12 produces a mixture of red and blue (e.g., purple) where triangle 14 overlaps circle 12. The more transparent the triangle 14, the more the appearance of the circle 12 dominates the appearance of the shared region 16. In this case, increased transparency of the triangle 14 produces a bluer intersection region 16. Similarly, decreased transparency of triangle 14 produces a redder intersection region 16. As shown in FIG. 4, adding additional artwork objects 22, 24 can quickly complicate an illustration 10. For example, adding just two rectangles 22, 24 increased the number of intersection regions between objects from one to twelve. Each additional intersection represents an additional region that the software must process. FIG. 5 shows a planar map 30 produced by flattening the multiple layers in an illustration (e.g., illustration 10 in FIG. 4) into an equivalent single layer of opaque regions. FIG. 5 shows exaggerated seams between the regions 31-42 for illustrative purposes. Much like a stained-glass window, a planar map 30 features interlocking non-overlapping regions 31-42. The appearance (e.g., a color, gradient, or raster) of each opaque region is determined such that outputting (e.g., sending to a printer or another program) the planar map regions is essentially indistinguishable from outputting the illustration objects directly. That is, instead of outputting each artwork object (e.g., circle 12, triangle 14, and rectangles 22 and 24 in FIG. 4), a system can output the path and appearance of each region 31-42 in the planar map. The non-overlapping regions of the planar map are known as "atomic regions." Atomic regions are opaque illustration regions that are not intersected by other regions. The appearance of any atomic region is based on the appearances of the artwork objects covering the region in the original illustration (FIG. 4). Different techniques for constructing and using the planar map can conserve memory when compositing an displaying an illustration. II. Postponed Compositing FIG. 6 shows information that can be used to determine the appearance of different illustration regions. As shown, the information is in the form of a graph 50. The graph 50 includes a bottom portion 70 that features nodes, labelled "1" through "12", for each planar map region. Each node is the root of a binary tree that terminates in one or more leaves 62-68 corresponding to the illustration artwork objects. For example, node "3" (corresponding to atomic region "3" 33 in the planar map of FIG. 5) is the root of a binary tree that includes pointers to children nodes "1" and "2". Nodes "1" and "2" in turn include pointers to artwork objects A 62 and B 64 (the rectangles in FIG. 4). Traversing the tree rooted by any node can be used to quickly determine the appearance of the node's planar map region. For example, node "1" represents the appearance of artwork object A 62; node "2" represents the appearance of artwork object B 64; and node "3" represents the composite appearance of artwork object B layered over artwork object A. Thus, the tree 70 acts as a pre-calculated set of indices that can be used dynamically to determine any represented region's appearance. The appearance for each node can be pre-determined and stored for use as needed. Though this may be practical in the relatively simple illustration shown, the amount of memory needed for storage can swell as the illustration incorporates more artwork objects and the number of regions in the planar map grows. Alternatively, the tree 70 can be used to determine the appearance of each region dynamically. For example, a system may produce an output stream that includes the path and appearance of each planar map region by making an on-the-fly determination of the region's appearance based on the region's tree 70 node. To conserve memory, the system may discard each determined appearance after the appearance is sent into the output stream. Thus, to output the image of FIG. 5, the system can determine, output, and discard the appearance of node "1"; determine, output, and discard-the appearance of node "2"; then re-determine the appearance of nodes "1" and "2" to determine the appearance of node "3"; and so on. At first blush, it may seem inefficient to discard the appearance of nodes "1" and "2" when their appearance will be needed to determine the appearance of node "3". However, discarding (e.g., deallocating from memory, marking for deletion if memory is needed, or otherwise making the memory available for use) each node's appearance after use can reduce the memory consumed when producing an output stream by an order of magnitude. Preservation of certain determined node appearances (e.g., node "4" which takes part in seven out of the twelve appearance determinations) may speed display of an illustration without greatly increasing memory consumption. For example, nodes involved in the most number of determinations can be identified and these appearances can be preserved for future use instead of being discarded. The top portion of FIG. 6 includes an artwork tree 52 representing the transparencies of artwork objects. The top portion can be quickly consulted to determine artwork transparency when determining region appearances. The tree 52 includes a root node 54 and nodes 56-60 that specify transparency. The degree of transparency can be represented as a number such as an alpha value that ranges between 0 and 1. A transparency value of "1" represents a completely opaque object. A transparency value of "0" represents a completely transparent object. A node can describe the transparency of an individual object. For example, node 60 indicates that triangle D (14 in FIG. 4) has a transparency value of 0.4. A node can also describe the transparency of a group of objects. For example, node 56 indicates that the group of circle C (12 in FIG. 4) and rectangle B (24 in FIG. 4) share a transparency value of 0.5. The group transparency value indicates the transparency of the group of objects as a collection, not the transparency of a particular object in the group. That is, the group of circle C and rectangle B will present the same transparent appearance relative to objects behind them, but the transparency of circle C relative to rectangle B is not affected by the group value. Members of a group (i.e., the nodes for individual objects or other groups) can have their own transparency values that are applied in addition to the transparency value of the group node. For example, node 58 indicates that the circle C will have an additional transparency of 0.3 applied in addition to the transparency of 0.5 indicated by group node 48. Navigating up the tree from an artwork object node 62-68 to the root 54 can quickly produce transparency for any given artwork object. As shown, transparency is represented by a single value. However, the transparency of an object need not be uniform. For example, an object may have a gradient of transparency. That is, one end of the object may be nearly opaque while another end is nearly completely transparent. In some embodiments, each node includes a reference to a transparency server that handles the different types and degrees of transparency. FIGS. 7-9 show one technique for constructing a planar map and graph 70 from a set of illustration artwork objects. FIG. 7 shows the first artwork object 31 in a paint order. The artwork object is added to the planar map along with a node (e.g., node "1") representing the appearance of the region covered by the artwork object. In FIG. 8, the second artwork object, rectangle B 33, adds a new region 32 and carves a region "3" out of previously existing region "1". The second artwork object is added to the planar map graph 70 along with a node for the region belonging solely to rectangle B 32 and a node "3" for the region 33 representing the layering of rectangle B over rectangle A. In FIG. 9, the third artwork object "steals" portions of regions "1", "2", and "3" to produce portions "5", "6", and "7". The new regions are added to the planar map graph in addition to region "4" and a leaf for artwork object C. The process shown in FIGS. 7 to 9 continues until the planar map represents all artwork objects in the paint order. Generating a planar map and graph prior to a request for display of the illustration shifts resource consumption to a time when resources may be in less demand. That is, much of the work involved in outputting an illustration can be done before a printing request. This increases the responsiveness of a system when a printing request is finally received. After constructing the planar map (FIG. 5) and graph (FIG. 6), the graph can be used to postpone determination of the appearance of a planar map regions until the appearance is to be included in an output stream. In a process 70 shown in FIG. 10, after producing a planar map 72, the process 70 handles each region in the planar map in turn. For each region, the process 70 determines the region's appearance 74 and sends 76 the determined appearance in an output stream along with the path of the region. The output stream may feed into memory of a printer. The process 70 then frees 78 memory used to describe the appearance of the region and begins processing the next region. This continues until each planar map region has been processed. III. Enhancements A planar map can become very large for complex illustrations. A number of different techniques can reduce the size of the planar map. Some of these techniques can take advantage of functions provided by existing rasterization engines often present in illustration software such as Adobe® Illustrator®. Further, these techniques may be used in a wide variety of flattening schemes such as schemes that individually determine the appearance of each dot in an illustration. A. Identifying Opaque Objects One approach to simplifying the planar map involves identifying opaque objects that do not overlap areas covered by transparent objects. Intuitively, the appearance of such regions is that of the opaque object. Thus, the opaque object can be sent immediately to the output stream and without being added to the planar map. FIG. 11 shows an illustration 80 that includes different opaque (shown as shaded) 82, 84, 86 and transparent 88, 90 artwork objects. A wide variety of techniques can be used to identify those opaque objects (or portions of opaque objects) that do not overlap any transparent objects. For example, a process could test each opaque object against each transparent object to determine whether their paths intersect. The number of comparisons, however, increases geometrically with each additional artwork object. FIG. 12 illustrates a technique for quickly identifying opaque objects that do not intersect any transparent objects without a direct determination of intersection between different pairs of opaque and transparent objects. The technique maps transparent artwork objects 88, 90 to an off-screen low-resolution grid 92, (e.g., 32 x 32 cells). As used herein, the term grid 92 does not imply a particular geometry of grid cells. That is, the grid 92 is merely a planar subdivision that can feature cells of a variety of geometries (e.g., squares, triangles, hexagons, and so forth). The portion of the grid 92 that includes any part of a transparent object is marked. In one implementation, this is performed by setting a rasterization engine's transform matrix to map bounding boxes of transparent objects to the low-resolution grid. As shown in FIG. 13, this marking produces a coarse approximation 94 of regions including transparent objects. Mapping an opaque object 82, 84, 86 to the low-resolution grid 92 quickly provides an estimate of whether any particular opaque object 82, 84, 86 overlaps any transparent objects. Because of the coarseness of the approximation of the transparent region 94, this approach will sometimes miscategorize an opaque object as overlapping the transparent region when no such overlap exists. However, the technique quickly identifies objects that do overlap the transparent region. This technique can be implemented using fast rasterization engine functions. For example, after painting the low-resolution grid (e.g., raster) white, the initial mapping of transparent objects to the low-resolution grid may be done by painting the transparent objects on the grid in black, for example, using an over-scanning flood-fill mode. The testing of whether an opaque object overlaps the transparency region may be performed using a rasterization engine blending mode function that checks a cell in the low-resolution grid and determines whether or not it has been previously painted black. These techniques may be incorporated into a process that avoids adding opaque objects that do not overlap transparent objects to the planar map. FIG. 15 shows one such process 72. After determining the transparency region 100, for example, by drawing the transparent objects on a low-resolution grid, the process 72 classifies 102 each opaque object based on its intersection, if any, with the transparency region. An opaque object may be completely inside the transparency region, partially inside, or completely outside the transparency region. Classifying an opaque object as being completely inside or completely outside requires analysis of the entire area covered by the opaque object. However, an opaque object can be immediately classified as being partially inside the transparency region once analysis of the region occupied by the opaque object yields at least one portion inside and one portion outside. If the opaque object is completely outside the transparency region, the process 72 immediately outputs 108 the opaque object to the output stream without adding the artwork object to the planar map. If the opaque object is completely inside the transparency region, the process 105 adds the entire object to the planar map. If, however, the opaque object is partially inside and partially outside the transparency region, the process 72 can immediately send 104 the opaque object to the output stream and add 106 the opaque object to the planar map. Alternatively, the process can add only the portion of opaque object that is inside the transparency region to the planar map. In either case, portions of an illustration that do not require transparency processing to determine their appearance do not unnecessarily consume computer resources. FIG. 16 shows a planar map produced using the process 72 shown in FIG. 15. The planar map does not include any regions corresponding to opaque object 84,-but does include opaque object 86 in its entirety (shown as planar map region 118). The map also includes a portion of opaque object 88 clipped to the transparency region (shown as planar map regions 114 and 116). The technique of identifying opaque objects that overlap transparent objects may be used to improve a variety of different illustration flattening schemes. For example, opaque objects that do not overlap transparent objects may be added to a flattened raster without compositing each individual dot in the opaque object. Reducing the number of dots composited both speeds processing and reduces consumption of computer resources. In a variation of the above, a process can exclude artwork objects from flattening based on a determination that the object is obscured by an opaque object. For example, an opaque object may be on an "higher" layer (i.e., conceptually closer to the screen) than objects beneath. Including the obscured artwork objects in a flattening process merely expends resources without altering the appearance of the output. An implementation to exclude obscured artwork from flattening may involve processing artwork objects layer by layer and progressively mapping out regions covered by opaque objects. As a transparent object is encountered in the layer by layer processing, a comparison may be made to determine if the transparent objects is completely (or partially) covered by a region mapped by one or more "higher" opaque objects. The covered portion may be excluded from the flattening process. The use of a low-resolution off-screen raster to make quick estimations of illustration can be used to perform other functions. For example, an off-screen grid can be used to identify complex regions of an illustration. B. Identifying Complex Regions of the Illustration Some illustrations may feature areas having multiple objects in a very small space. These objects typically produce a large number of very small (e.g., pixel or sub-pixel sized) atomic regions. For these small spaces, it can be more efficient to determine the color value of each point individually (i.e., rasterize a small area) than add the very small atomic regions to the planar map. FIGS. 17-20 illustrate a technique for identifying complex regions of an illustration. FIG. 17 shows an illustration 130 of artwork objects 132-142. As shown, many of the objects 132-142 appear clustered near object 138. FIG. 18 shows a mapping of the artwork objects onto an off-screen low-resolution grid 144. The resolution of the grid 144 may be fixed or dynamically determined. Counting the number of objects having an outline in each grid cell can identify complex regions. FIG. 19 shows a count of objects whose paths enter each cell in the low-resolution grid. As shown, grid cell 146 is entered by objects 136-142 and has a value of "4". A threshold can identify those grid cells having highly complex geometry. For example, a user may define any cell having a value of "4" or more as being highly complex. Based on this threshold, a grid cell may be classified as a complex region and rasterized instead of adding objects in the cell into the planar map. Alternatively, the process may use different techniques to produce a threshold (e.g., set the threshold so that it includes the most complex 5% of grid cells). FIG. 21 shows a process 72 for identifying complex regions of an illustration and processing objects that lie in the complex regions without use of the planar map. After identifying complex regions of an illustration 150, each object can be classified as being completely inside the complex region, partially inside, or completely outside the area. If completely inside, the object is not added 158 to the planar map. If completely outside, the object is added 157 to the planar map. If only partially inside, the entire object may be added to the planar map or, alternatively, only the portion of the object lying outside the complex region may be added to the planar map. The complex regions are then processed 159 (e.g., rasterized) for display independent of the processing for planar map regions. The process readily lends itself to the use of rasterization engine functions. For example, to determine high complex regions, each artwork object may be drawn in the low-resolution grid using a pen having a thickness of "1" and a transparency alpha value near "0". Thus, stroking each object adds a value of "1" to each cell covered by the stroke and darkens the cell. An intersection blending mode can identify "dark" cells having a number of strokes that exceeds the user defined threshold. FIG. 22 shows a planar map produced by the process of FIG. 19. As shown, object 138 is not represented in the planar map. Additionally, only portions of objects 136, 140, and 142 outside the complex regions appear in the planar map. Again, this technique for quickly identifying complex regions of an illustration may be used in systems that use flattening techniques other than the planar map technique described above, for example, to reduce the number of object intersections that need to be handled by other flattening techniques. Embodiments FIG. 23 shows a computer platform 170 suitable for implementing the techniques described above. The platform 170 can include an output device such as a monitor 172 or printer 186 for displaying an illustration 174. The platform may also include a keyboard 178 and/or pointing device 176. The platform includes a digital computer 180 that further includes a processor 182 and access a computer readable medium (e.g., Random Access Memory 184A, hard disk 184B, CD-ROM 184C, and/or floppy disk 184D). The memory can include instructions 186 that implement the techniques described herein. These instructions 186 are transferred to the processor 182 for execution in the course of operation. However, the techniques described here are not limited to any particular hardware, firmware, or software configuration; they may find applicability in any computing or processing environment. Additionally, different embodiments can be used in different graphics environments. For example, the disclosed invention can be used in a resolution-independent graphics environment that specifies artwork positioning using vectors and generates artwork coordinates when associated with a particular resolution. The techniques may be implemented in hardware or software, or a combination of any of them. Preferably, the techniques are implemented in computer programs executing on programmable computers that each include a processor, a storage medium readable by the processor (including volatile and non-volatile memory and/or storage elements), at least one input device, and one or more output devices. Program code is applied to data entered using the input device to perform the functions described and to generate output information. The output information is applied to one or more output devices. Each program is preferably implemented in a high level procedural or object oriented programming language to communicate with a computer system. However, the programs can be implemented in assembly or machine language, if desired. In any case, the language may be a compiled or interpreted language. Each such computer program is preferable stored on a storage medium or device (e.g., CD-ROM, hard disk or magnetic diskette) that is readable by a general or special purpose programmable computer for configuring and operating the computer when the storage medium or device is read by the computer to perform the procedures described in this document. The system may also be considered to be implemented as a computer-readable storage medium, configured with a computer program, where the storage medium so configured causes a computer to operate in a specific and predefined manner. Though elements of the following claims are listed one after another, the ordering of these elements does not imply a particular ordering of operations. Additionally, many of the operations may be performed incrementally. Other embodiments are within the scope of the following claims.

Claims: A method of processing a computer graphics illustration (10) having overlapping pieces of artwork (12, 14, 22, 24), each piece of artwork having an appearance, at least a portion of at least one piece of artwork having a degree of transparency, the method comprising: flattening at least some of the pieces of artwork (12, 14, 22, 24) into non-overlapping regions (31-42); storing information describing how the appearances of one or more pieces of artwork (12, 14, 22, 24) can be combined to determine an appearance for at least one of the non-overlapping regions; determining (74) an appearance for at least one of the non-overlapping regions (33) based on the stored information; and outputting (76) the determined appearance, characterized in that the stored information includes a graph (50) that includes nodes, each node representing an appearance of a corresponding non-overlapping region, each node being a root of a tree that terminates in one or more leaves (62, 64, 66, 68), wherein each leaf represents an appearance of a corresponding one of the pieces of artwork (12, 14, 22, and 24). The method of claim 1, wherein outputting comprises printing. The method of claim 1 wherein flattening comprises producing a planar map (30) and wherein the non-overlapping regions (31-42) comprise planar map regions. The method of claim 1 wherein the information comprises information describing how the appearances of two or more other non-overlapping regions (34, 38) can be combined to determine an appearance for one of the non-overlapping regions (39). The method of claim 1 further comprising discarding (78) the determined appearance of a non-overlapping region (31) before determining (74) an appearance of a different non-overlapping region (33). The method of claim 5, wherein the discarding (78) before determining (74) comprises discarding (78) before outputting (76) each non-overlapping region (31-42). The method of claim 5 wherein discarding (78) comprises deallocating from memory (184A). The method of claim 1 further comprising selecting one or more non-overlapping regions (31-42); not discarding (78) the determined appearance if the region is one of the selected regions; and discarding (78) the determined appearance if the region is not one of the selected regions. The method of claim 1 wherein storing information comprises constructing an artwork tree (52) that stores transparency values for pieces of artwork. The method of claim 9 wherein the artwork tree (52) stores transparency values for groups of pieces of artwork. The method of claim 1 wherein flattening at least some of the pieces of artwork (12, 14, 22, 24) comprises determining whether to include a piece of artwork or a portion of a piece of artwork in the flattening. The method of claim 11 wherein determining whether to include comprises determining whether a piece of artwork (12, 14, 22, 24) covers an area of the illustration (10) also covered by one or more pieces of artwork having a degree of transparency (14). The method of claim 12 wherein determining whether a piece of artwork (12, 14, 22, 24) covers comprises mapping (100) areas of the illustration (10) covered by pieces of artwork having a degree of transparency (14); and determining (102) whether an opaque piece of artwork (12) overlaps at least a portion of the mapped areas. The method of claim 13 wherein mapping (100) comprises producing a map on an off-screen raster (92). The method of claim 14 wherein mapping (100) comprises using a rasterization engine to mark areas of the off-screen raster (92). The method of claim 13 further comprising processing the opaque piece of artwork (12) based on the degree of overlap with the map. The method of claim 11 wherein determining whether to include comprises including (105) an opaque piece of artwork (12) entirely within the mapped area. The method of claim 11 wherein determining whether to include comprises including (106) a portion of an opaque piece of artwork (12) within the mapped area. The method of claim 11 wherein outputting comprises outputting (108) an opaque piece of artwork (12) outside the mapped area. The method of claim 11 wherein determining whether to include comprises identifying (150) one or more complex regions of the illustration (10); and determining (152) whether a piece of artwork (12, 14, 22, 24) overlaps any of the one or more complex region. The method of claim 20 wherein identifying (150) one or more complex regions comprises identifying one or more regions having a number of paths passing through each of the one or more regions that exceeds a threshold. The method of claim 20 wherein identifying (150) a complex region comprises stroking the paths of the pieces of artwork (12, 14, 22, 24) on an off-screen raster (92). The method of claim 20 further comprising processing a piece of artwork (12, 14, 22, 24) based on its degree of overlap with a complex region. The method of claim 20 further comprising rasterizing the complex region and outputting the rasterized area. The method of claim 20 wherein determining whether to include comprises including (157) pieces of artwork outside complex regions. The method of claim 1, wherein the non-overlapping regions (31-42) are regions of a planar map (30), the method further comprising for at least some of the regions of the planar map (30): determining (74) a region appearance; outputting (76) the determined appearance for the region; and discarding (78) the stored appearance before determining the appearance of a different non-overlapping region. The method of claim 26, further comprising identifying (102) one or more opaque artwork objects that do not overlap artwork objects having a degree of transparency; and excluding (108) the one or more identified opaque artwork objects from the planar map (30). The method of claim of claim 26, further comprising determining (150) one or more complex areas of the illustration; identifying (152) artwork objects having paths entirely within the determined complex area; and excluding (158) the identified artwork objects from the planar map (30). A computer program product, disposed on a computer readable medium, for processing a computer graphics illustration (10) having overlapping pieces of artwork (12, 14, 22, 24), each piece of artwork having an appearance, at least a portion of at least one piece of artwork having a degree of transparency, the computer program comprising instructions for causing a processor to: flatten at least some of the pieces of artwork (12, 14, 22, 24) into non-overlapping regions (31-42); store information describing how the appearances of one or more pieces of artwork (12, 14, 22, 24) can be combined to determine an appearance for a given one of the non-overlapping regions (31-42), determine (74) an appearance for at least one of the non-overlapping regions (33) based on the stored information; and output (76) the determined appearance, characterized in that the stored information includes a graph (50) that includes nodes, each node representing an appearance of a corresponding non-overlapping region, each node being a root of a tree that terminates in one or more leaves (62, 64, 66, 68), wherein each leaf represents an appearance of a corresponding one of the pieces of artwork (12, 14, 22, 24). The computer program product of claim 29 wherein flattening at least some of the pieces of artwork (12, 22, 22, 24) comprises determining whether to include pieces of artwork or portions of pieces of artwork in the flattening. The computer program product of claim 30, wherein determining whether to include comprises mapping (100) pieces of artwork (12, 14, 22, 24) to an off-screen raster 92. The computer program product of claim 30, wherein determining whether to include comprises determining (150) complex areas of the illustration and excluding (158) pieces artwork (12, 14, 22, 24) within the complex areas from the flattening. The computer program product of claim 30, wherein determining whether to include comprises determining (102) an opaque piece of artwork that does not overlap transparent artwork and excluding (108) such opaque artwork from the flattening. The computer program product of claim 29, wherein the flattening comprises constructing a planar map (30).

Inventors: BOURDEV LUBOMIR D, NEWELL MARTIN E, SCHILLER STEPHEN N, BOURDEV, LUBOMIR D., NEWELL, MARTIN E., SCHILLER, STEPHEN N.
Applicants: ADOBE SYSTEMS INC, ADOBE SYSTEMS INCORPORATED
Application year: 2000
Main classification: G06T11
IPC codes: G09G5, G06T11, G06T3