Printing method, intelligent terminal, equipment and storage medium
By identifying and differentiating color space conversion according to the category of the printing element, the poor printing effect caused by consistent color space conversion of different types of printing elements in the prior art is solved, and a more efficient printing effect is achieved.
Patent Information
- Application Number
- CN202411546193.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-02-18
AI Technical Summary
In an image forming device, the printing task of the RGB color space needs to be converted to the CMYK color space. However, the prior art usually uses the same color space conversion method to different categories of printing elements, resulting in poor final printing effect.
Identification is carried out according to the category of the print elements, and different color space conversion strategies are used to process the print elements, including rendering, identification and color space conversion, ensuring that each type of print elements adopts the most suitable conversion method.
By identifying the categories of print elements and adopting targeted color space conversion strategies, the printing effect is significantly improved, ensuring that different categories of print elements can maintain the best color performance during the conversion process.
Smart Images

Figure CN119473184A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of image forming devices, and in particular to a printing method, a smart terminal, a device and a storage medium. Background Art
[0002] In an image forming device, the print head prints out data based on the CMYK color space, while the print task is often issued as data in the RGB color space. Therefore, the terminal that issues the print task needs to convert the data in the RGB color space into the CMYK color space and then send it to the image forming device for printing out. Alternatively, the terminal sends the data in the RGB color space to the image forming device, and the image forming device converts the data in the RGB color space into data in the CMYK color space before printing out. Print tasks often contain different types of printing elements such as text, graphics or images. If the same color space conversion method is used to convert the color space of different types of printing elements, the final printing effect may be poor. Summary of the invention
[0003] In view of this, the present application provides a printing method, intelligent terminal, device and storage medium. Printing elements are identified according to their categories, and different color space conversion strategies can be used to process the printing elements according to the identification to improve the printing effect.
[0004] In a first aspect, an embodiment of the present invention provides a printing method, comprising:
[0005] Determine the category of the printed element;
[0006] Determining a target rendering mode from multiple rendering modes according to the category of the printing element;
[0007] Rendering the printing element using the target rendering mode to obtain first raster data;
[0008] Performing identification processing on the first raster data according to the type of the printing element to obtain second raster data with identification information;
[0009] Determining a target color space conversion strategy from a plurality of color space conversion strategies according to the identification information of the second raster data;
[0010] The first raster data is subjected to color space conversion according to the target color space conversion strategy to obtain third raster data.
[0011] In a possible implementation manner, rendering the print element using the target rendering mode to obtain first raster data includes:
[0012] Determine an operating system engine function corresponding to the target rendering mode, wherein different rendering modes correspond to different operating engine functions;
[0013] The printing element is rendered by the operating system engine function to obtain the first raster data.
[0014] In a possible implementation manner, rendering the print element using the target rendering mode to obtain first raster data includes:
[0015] Acquire attribute information of the printing element; the attribute information includes one or more combinations of size, color, position, original image, and scaled image;
[0016] The attribute information is rendered to the print element using the target rendering mode to obtain the first raster data.
[0017] In a possible implementation manner, performing identification processing on the first raster data according to the type of the printing element includes:
[0018] Determining a logo color according to the category of the printing element;
[0019] The first raster data is subjected to identification dyeing according to the identification color to obtain second raster data with dyeing identification.
[0020] In a possible implementation, determining a target color space conversion strategy from a plurality of color space conversion strategies according to the identification information of the second raster data includes:
[0021] The target color space conversion strategy is determined from the multiple color space conversion strategies according to the coloring identifier of the second raster data; wherein different coloring identifiers correspond to different color space conversion strategies.
[0022] In a possible implementation, the method further includes:
[0023] The third raster data is sent to an image forming device, and the image forming device performs print output according to the third raster data.
[0024] In a possible implementation manner, the color of the printed element is black, and the method further includes:
[0025] Get printing configuration information;
[0026] Determining the output strategy of the printing element according to the printing configuration information; the output strategy includes a mixed color output strategy or a pure color output strategy;
[0027] The output strategy is sent to an image forming device; wherein the mixed color output strategy is used to instruct the image forming device to use color toner to print out the third raster data; and the pure color output strategy is used to instruct the image forming device to use black toner to print out the third raster data.
[0028] In a second aspect, an embodiment of the present invention provides an intelligent terminal, including:
[0029] A printing category determination module, used to determine the category of the printing element;
[0030] A rendering mode determination module, used to determine a target rendering mode from a plurality of rendering modes according to the category of the printing element;
[0031] A rendering module, used for rendering the printing element using the target rendering mode to obtain first raster data;
[0032] An identification module, used for performing identification processing on the first raster data according to the type of the printing element to obtain second raster data with identification information;
[0033] A color space conversion strategy determination module, used to determine a target color space conversion strategy from a plurality of color space conversion strategies according to the identification information of the second raster data;
[0034] The color space conversion module is used to perform color space conversion on the first raster data according to the target color space conversion strategy to obtain third raster data.
[0035] In a third aspect, an embodiment of the present invention provides an electronic device, including:
[0036] at least one processor; and
[0037] at least one memory in communication with the processor, wherein:
[0038] The memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the method described in the first aspect.
[0039] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the method described in the first aspect.
[0040] In a fifth aspect, an embodiment of the present invention provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.
[0041] In an embodiment of the present invention, the categories of printing elements are identified to render the printing elements into raster data using different rendering methods, and then the raster data is labeled, and finally a differentiated color space conversion is performed based on the labeled raster data to finally obtain the converted raster data in the CMYK color space. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0043] Figure 1 A flow chart of a printing method provided by an embodiment of the present invention;
[0044] Figure 2-a to Figure 2-c A schematic diagram of a first raster data provided by an embodiment of the present invention;
[0045] Figure 3-a to Figure 3-c A schematic diagram of a second grating data provided by an embodiment of the present invention;
[0046] Figure 4 A flowchart of another printing method provided by an embodiment of the present invention;
[0047] Figure 5 A schematic diagram of the structure of an intelligent terminal provided by an embodiment of the present invention;
[0048] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0049] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0050] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0051] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0052] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0053] Figure 1 The flowchart of a printing method provided by an embodiment of the present invention. The method can be applied to an intelligent terminal that issues printing tasks, such as a personal computer, a tablet computer, a mobile phone, etc. Figure 1 As shown in , the method includes:
[0054] Step 101, determining the category of the printing element.
[0055] The printing element refers to an element constituting a printing task, for example, each character and each pattern in the manuscript are printing elements. The types of printing elements may include character type, image type, and graphic type. Before determining the type of the printing element, all printing elements in the printing task may be acquired cyclically. After acquiring all printing elements in the printing task, the types of each acquired printing element are determined.
[0056] Step 102: Determine a target rendering mode from multiple rendering modes according to the type of the print element.
[0057] The rendering mode refers to the process of converting logical drawing (i.e., printing element) into raster data based on the interface function, which can also be called drawing. Different types of printing elements require different rendering modes for rendering. For example, for text-type printing elements, the text-type rendering mode needs to be called. For image-type printing elements, the image-type rendering mode needs to be called. For graphic-type printing elements, the graphic-type printing elements need to be called.
[0058] Step 103: Render the print element using the target rendering mode to obtain first raster data.
[0059] In some embodiments, while looping to obtain each print element in the print task, the attribute information of each print element can be obtained. The attribute information of the print element can specifically include one or more combinations of information such as size, color, position, original image, and zoomed image. For example, for a text-type print element, the text attribute information can be obtained. The text attribute information can include the size, color, and position of the text. For an image-type print element, the image attribute information can be obtained. The image attribute information includes the original image, zoomed image, size, and position of the image. For a graphic-type print element, the graphic attribute information can be obtained. The graphic attribute information can include the color, size, and position of the graphic.
[0060] After the attribute information of the printing element is acquired, the attribute information may be rendered to the printing element in a target rendering manner, so that the printing element is rendered in the form of an image to obtain corresponding first raster data.
[0061] In some embodiments, the attribute information can be rendered to the print element by calling the native engine function of the operating system of the device. The engine function is a core function of the operating system, which is used for graphics device interface (GDI) rendering. Using the native engine function of the operating system for rendering can improve the compatibility of the printing method provided by the embodiment of the present invention. Specifically, after determining the target rendering mode corresponding to the print element, the operating system engine function corresponding to the target rendering mode is determined. Different rendering modes correspond to different operating engine functions. The print element is then rendered by the operating system engine function to obtain the first raster data.
[0062] Step 104: perform identification processing on the first raster data according to the type of the printing element to obtain second raster data with identification information.
[0063] The identification processing can be implemented in the form of adding a corresponding label to the first raster data. For example, for a text-type printing element, a first label can be added to the first raster data corresponding to the printing element. For an image-type printing element, a second label can be added to the first raster data corresponding to the printing element. For a graphic-type printing element, a third label can be added to the first raster data corresponding to the printing element, thereby performing identification processing on all the printing elements contained in the acquired printing task.
[0064] Step 105: Determine a target color space conversion strategy from a plurality of color space conversion strategies according to the identification information of the second raster data.
[0065] Different types of printing elements use different color space conversion strategies, so as to improve the final printing effect. Therefore, the type of the printing element can be determined by identifying the identification information of the second raster data, and then the target color space conversion strategy to be adopted can be determined.
[0066] After the first raster data corresponding to all the printing elements are marked, a plurality of second raster data corresponding to the plurality of printing elements are obtained. Then, the target color space conversion strategy corresponding to each second raster data is determined according to the marking information in the second raster data, so as to convert the raster data from the RGB color space into the CMYK color space used for printing by the image forming device.
[0067] Step 106 , performing color space conversion on the first raster data according to the target color space conversion strategy to obtain third raster data.
[0068] The second raster data is obtained after dyeing based on the first raster data. The second raster data is only used to determine the color space conversion strategy. When executing the color space conversion, the first raster data needs to be color converted.
[0069] The third raster data obtained after the color space conversion is the raster data of the CMYK color space. Then the third raster data is sent to the image forming device. After receiving the third raster data, the image forming device can directly print out according to the third raster data.
[0070] In some embodiments, the identification processing of the first raster data in step 104 can also be implemented in the form of dyeing the first raster data. Specifically, the association relationship between different types of printing elements and different identification colors can be pre-established. Then, the identification color corresponding to the type of the printing element can be determined according to the type of the printing element and the pre-established association relationship. For example, for a text-type printing element, the corresponding identification color can be color A. For an image-type printing element, the corresponding identification color can be color B. For a graphic-type printing element, the corresponding identification color can be color C. Then, the first raster data is dyed with identification according to the determined identification color to obtain second raster data with dyed identification. Among them, the first raster data before identification dyeing and the second raster data after identification dyeing are different only in color.
[0071] For example, three printing elements are obtained, namely: printing element A, printing element B and printing element C. The identification color corresponding to the text type is preset to be red, the identification color corresponding to the pattern type is preset to be green, and the identification color corresponding to the graphic type is preset to be blue. Among them, the category of printing element A is text type, specifically the text "A", and the color is black. The category of printing element B is pattern type, specifically a circular pattern, and the color is red. The category of printing element C is graphic type, specifically a rectangular shape, and the color is purple. Then, after rendering printing element A, Figure 2-a After rendering the print element B, we get Figure 2-b After rendering the print element C, we get Figure 2-c The first raster data shown in FIG. Then the identification color corresponding to the printing element A is red. Figure 2-a The first raster data shown in FIG. 1 is dyed red to obtain Figure 3-a The second raster data shown in FIG. The identification color corresponding to the printing element B is green. Figure 2-bThe first raster data shown in FIG. 1 is dyed green to obtain Figure 3-b The third raster data shown in FIG. The identification color corresponding to the printing element C is blue. Figure 2-c The first raster data shown in FIG. 1 is dyed with blue to obtain Figure 3-c The second raster data shown in .
[0072] Afterwards, when determining the color space conversion strategy, the type of the printing element can be identified according to the color of the second raster data, and then the corresponding target color space conversion strategy can be determined. Specifically, color space conversion strategies corresponding to different dyeing identifiers can be established in advance, and different dyeing identifiers correspond to different color space conversion strategies. Afterwards, the corresponding target color space conversion strategy can be determined from multiple color space conversion strategies according to the dyeing identifier of the second raster data.
[0073] In some embodiments, a rendering raster may be created in advance, and the rendering raster includes a print rendering raster A and a print mask raster B. The print rendering raster A is used to store the first raster data. The print mask raster B is used to store the second raster data. The print rendering raster A and the print mask raster B are both implemented in the form of storage addresses. That is, the print rendering raster A is a collection of several first raster data forms. The print mask raster B is a collection of several second raster data forms. The print rendering raster A and the print mask raster B are not actual storage or memory, but virtual storage space for storing raster data.
[0074] Corresponding to the content of the above embodiment, the embodiment of the present invention provides another implementation process of the printing method. Figure 4 FIG. 1 is a flow chart of another printing method provided by an embodiment of the present invention. Figure 4 As shown in , the method includes:
[0075] Step 401, obtaining a printing element.
[0076] Step 402, determining whether the type of the printing element is a text type, if so, executing step 403, if not, executing step 404.
[0077] Step 403, obtaining attribute information of the text type.
[0078] Step 404, determine whether the type of the print element is an image type. If yes, execute step 405, if not, it means the type of the print element is a graphic type, execute step 406.
[0079] Step 405: Obtain attribute information of the image type.
[0080] Step 406, obtaining attribute information of the graphic type.
[0081] Step 407 , calling the text type operating system engine function to render into the first raster data and output to the print rendering raster A.
[0082] Step 408: Mark the first raster data of the text type in the print rendering raster A as identification color A.
[0083] Step 409 , calling the operating system engine function of the image type to render into the first raster data and output to the print rendering raster A.
[0084] Step 410 : Mark the first raster data of the image type in the print rendering raster A as identification color B.
[0085] Step 411 , calling a graphics type operating system engine function to render into first raster data and output to a print rendering raster A.
[0086] Step 412: Mark the first raster data of the graphic type in the print rendering raster A as identification color C.
[0087] Step 413: Render the first raster data in the print rendering raster A according to the identification color to obtain second raster data, and output it to the print mask raster B.
[0088] Among them, the operating system engine function of the text type can be called to render the first raster data marked as identification color A in the print raster A as the second raster data. The operating system engine function of the image type can be called to render the first raster data marked as identification color B in the print raster A as the second raster data. The operating system engine function of the graphic type can be called to render the first raster data marked as identification color C in the print raster A as the second raster data.
[0089] Step 414, determine whether the color of the second raster data in the print mask raster B is color A, if yes, execute step 415. If no, execute step 416.
[0090] Step 415: Use the text type color space conversion strategy to obtain the third raster data.
[0091] Step 416, determine whether the second raster data in the print mask raster B is the identification color B. If yes, execute step 417. If no, it indicates that it is the identification color C, execute step 418.
[0092] Step 417, using the image type color space conversion strategy to obtain third raster data.
[0093] Step 418: Use the graphic type color space conversion strategy to obtain the third raster data.
[0094] Step 419: output the third raster data to an image forming device.
[0095] In some embodiments, the image forming device has two ways to print black, one is to use black toner to print directly, that is, pure black. The other is to use blue toner, magenta toner and yellow toner to synthesize black for printing, that is, color black. For progressive colors, using the color black method can ensure that the color transition of the printing effect is more natural, and for text or vector graphics, pure black is used, and the color effect is better. Therefore, the user can make specific settings according to the desired printing effect, thereby indicating whether the image forming device uses a pure black strategy or a color black strategy. Specifically, the printing configuration information can be obtained first. The printing configuration information is determined according to the black output strategy set by the user. The user sets the black output strategy of the print task to a pure black strategy or a color black strategy. Then, the corresponding printing configuration information is obtained according to the black output strategy set by the user. The intelligent terminal determines the output strategy of the printing element according to the printing configuration information. The output strategy of the printing element corresponds to the black output strategy set by the user, including a mixed color output strategy (i.e., color black) or a pure color output strategy (i.e., pure black). Then, the output strategy is sent to the image forming device. The image forming device uses color toner to print and output the third raster data according to the mixed color output strategy. Alternatively, the image forming apparatus prints out the third raster data using black toner according to a solid color output policy.
[0096] In some embodiments, the method of dyeing and marking the first raster data in the embodiments of the present invention can also be used to filter printing elements. For example, for a scene where only text-type printing elements are output, the second raster data in the print mask raster B can be filtered according to the color of the second raster data, and only the second raster data of the color A corresponding to the text type is retained. Then, the corresponding first raster data is searched from the print rendering raster A according to the second raster data of the color A remaining in the print mask raster B, and the color space conversion is performed to generate the third raster data containing only the text-type printing elements. The third raster data is sent to the image forming device for printing and output, and finally a printed manuscript containing only text is obtained.
[0097] Corresponding to the above-mentioned printing method, an embodiment of the present invention provides an intelligent terminal. Figure 5 The following is a schematic diagram of the structure of an intelligent terminal provided by an embodiment of the present invention. Figure 5 As shown in , the intelligent terminal includes: a printing category determination module 501 , a rendering mode determination module 502 , a rendering module 503 , an identification module 504 , a color space conversion strategy determination module 505 and a color space conversion module 506 .
[0098] The printing category determination module 501 is used to determine the category of the printing element.
[0099] The rendering mode determining module 502 is used to determine a target rendering mode from multiple rendering modes according to the type of the print element.
[0100] The rendering module 503 is used to render the print element using a target rendering mode to obtain first raster data.
[0101] The identification module 504 is used to perform identification processing on the first raster data according to the type of the printing element to obtain second raster data with identification information.
[0102] The color space conversion strategy determination module 505 is used to determine a target color space conversion strategy from a plurality of color space conversion strategies according to the identification information of the second raster data.
[0103] The color space conversion module 506 is used to perform color space conversion on the first raster data according to a target color space conversion strategy to obtain third raster data.
[0104] Figure 5 The smart terminal provided in the embodiment shown can be used to execute the Figure 1-Figure 4 The technical solution of the method embodiment shown, its implementation principle and technical effects can be further referred to the relevant description in the method embodiment.
[0105] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention is shown in FIG. Figure 6 As shown, the electronic device may include at least one processor and at least one memory in communication with the processor, wherein the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the instructions of this specification. Figure 1-4 The printing method provided by the illustrated embodiment.
[0106] like Figure 6 As shown, the electronic device is in the form of a general computing device. The components of the electronic device may include but are not limited to: one or more processors 610, communication interface 620 and memory 630, and a communication bus 640 connecting different system components (including memory 630, communication interface 620 and processor 610).
[0107] The communication bus 640 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus structures. For example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnection (PCI) bus.
[0108] Electronic devices typically include a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device, including volatile and non-volatile media, removable and non-removable media.
[0109] The memory 630 may include a computer system readable medium in the form of a volatile memory, such as a random access memory (RAM) and / or a cache memory. The electronic device may further include other removable / non-removable, volatile / non-volatile computer system storage media. The memory 630 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of each embodiment of the present specification.
[0110] A program / utility having a set (at least one) of program modules may be stored in memory 630, such program modules including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules generally perform the functions and / or methods of the embodiments described in this specification.
[0111] The processor 610 executes various functional applications and data processing by running the programs stored in the memory 630, such as implementing the Figure 1-4 The printing method provided by the illustrated embodiment.
[0112] The embodiment of the present specification provides a computer program product, the computer program product includes a computer program, when the computer program is executed by a processor, implements the execution of the present specification Figure 1-4 The printing method provided by the illustrated embodiment.
[0113] The embodiment of the present specification provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, wherein the computer instructions enable the computer to execute the present specification. Figure 1-4 The printing method provided by the illustrated embodiment.
[0114] The above-mentioned computer-readable storage medium can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (Read Only Memory; hereinafter referred to as: ROM), an erasable programmable read-only memory (Erasab le Programmab le ReadOnly Memory; hereinafter referred to as: EPROM) or flash memory, optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0115] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0116] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of this specification. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0117] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this specification, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0118] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of this specification includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of this specification belong.
[0119] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0120] It should be noted that the devices involved in the embodiments of this specification may include but are not limited to personal computers (PCs), personal digital assistants (PDAs), wireless handheld devices, tablet computers, mobile phones, MP3 displays, MP4 displays, etc.
[0121] In the several embodiments provided in this specification, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0122] In addition, each functional unit in each embodiment of this specification may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0123] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a connector, or a network device, etc.) or a processor (Processor) to perform some steps of the method described in each embodiment of this specification. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory; hereinafter referred to as: ROM), random access memory (Random Access Memory; hereinafter referred to as: RAM), disk or optical disk and other media that can store program codes.
[0124] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.
[0125] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the device embodiment and the terminal embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.
Claims
1. A printing method, characterized in that: include: Determine the category of the printed element; Determining a target rendering mode from multiple rendering modes according to the category of the printing element; Rendering the printing element using the target rendering mode to obtain first raster data; Performing identification processing on the first raster data according to the type of the printing element to obtain second raster data with identification information; Determining a target color space conversion strategy from a plurality of color space conversion strategies according to the identification information of the second raster data; The first raster data is subjected to color space conversion according to the target color space conversion strategy to obtain third raster data.
2. The method according to claim 1, characterized in that The step of rendering the print element using the target rendering mode to obtain first raster data includes: Determine an operating system engine function corresponding to the target rendering mode, wherein different rendering modes correspond to different operating system engine functions; The printing element is rendered by the operating system engine function to obtain the first raster data.
3. The method according to claim 1, characterized in that: The step of rendering the print element using the target rendering mode to obtain first raster data includes: Acquire attribute information of the printing element; the attribute information includes one or more combinations of size, color, position, original image, and scaled image; The attribute information is rendered to the print element using the target rendering mode to obtain the first raster data.
4. The method according to claim 1, characterized in that The first raster data is subjected to identification processing according to the type of the printing element, including: Determining a logo color according to the category of the printing element; The first raster data is subjected to identification dyeing according to the identification color to obtain second raster data with dyeing identification.
5. The method according to claim 4, characterized in that Determining a target color space conversion strategy from a plurality of color space conversion strategies according to the identification information of the second raster data includes: The target color space conversion strategy is determined from the multiple color space conversion strategies according to the coloring identifier of the second raster data; wherein different coloring identifiers correspond to different color space conversion strategies.
6. The method according to claim 1, characterized in that The method further comprises: The third raster data is sent to an image forming device, and the image forming device performs print output according to the third raster data.
7. The method according to claim 6, characterized in that The color of the printing element is black, and the method further comprises: Get printing configuration information; Determining the output strategy of the printing element according to the printing configuration information; the output strategy includes a mixed color output strategy or a pure color output strategy; The output strategy is sent to an image forming device; wherein the mixed color output strategy is used to instruct the image forming device to use color toner to print out the third raster data; and the pure color output strategy is used to instruct the image forming device to use black toner to print out the third raster data.
8. An intelligent terminal, characterized in that: include: A printing category determination module, used to determine the category of the printing element; A rendering mode determination module, used to determine a target rendering mode from a plurality of rendering modes according to the category of the printing element; A rendering module, used for rendering the printing element using the target rendering mode to obtain first raster data; An identification module, used for performing identification processing on the first raster data according to the type of the printing element to obtain second raster data with identification information; A color space conversion strategy determination module, used to determine a target color space conversion strategy from a plurality of color space conversion strategies according to the identification information of the second raster data; The color space conversion module is used to perform color space conversion on the first raster data according to the target color space conversion strategy to obtain third raster data.
9. An electronic device, comprising: at least one processor; as well as at least one memory in communication with the processor, wherein: The memory stores program instructions executable by the processor, and the processor can execute the method according to any one of claims 1 to 7 by calling the program instructions.
10. A computer-readable storage medium storing computer instructions, wherein the computer instructions enable the computer to execute the method according to any one of claims 1 to 7.
11. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.