Graphic object drawing method and device, storage medium and electronic equipment
By introducing the custom graphic object function into the graphics drawing method, users can directly create and edit graphic objects, which solves the problem of low drawing efficiency of graphic objects in the existing technology and realizes a more efficient and flexible graphics drawing process.
Patent Information
- Application Number
- CN202411454960.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-17
- Publication Date
- 2024-11-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In existing technologies, the drawing efficiency of graphic objects is low. Users need to make complex adjustments and transformations to predefined fixed graphics to meet specific needs, which leads to increased drawing complexity and reduced efficiency.
A method for drawing graphical objects is provided, which displays predefined optional graphical objects and user-defined graphical objects in response to user commands by displaying the drawing area of the target program, thereby reducing the steps required to adjust predefined graphics.
It improves the efficiency of drawing graphic objects, allowing users to obtain the desired graphic effects more quickly, maintaining high accuracy and flexibility, and reducing adjustment steps in the drawing process.
Smart Images

Figure CN119048645A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a method, device, storage medium and electronic device for drawing a graphic object. Background Art
[0002] In graphics drawing scenarios, it is common practice to combine and draw with fixed graphics objects predefined in the program to meet specific visual requirements. However, when the graphics required by the user are not predefined fixed graphics, these fixed graphics must be adjusted and transformed in a complex manner to approach or achieve the desired graphics effect. This process not only increases the complexity of drawing, but also significantly reduces the efficiency of graphics drawing due to the additional adjustment steps. Therefore, there is a problem of low efficiency in drawing graphics objects.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present application provide a method, device, storage medium and electronic device for drawing a graphic object, so as to at least solve the technical problem of low efficiency in drawing a graphic object.
[0005] According to one aspect of an embodiment of the present application, a method for drawing a graphic object is provided, comprising: displaying a drawing area of a target program, wherein the drawing area is used to present a graphic object drawn by the target program; in response to a first calling instruction triggered to the target program, displaying a first graphic object in the drawing area, wherein the first graphic object is an optional graphic object provided by the target program; in response to a second calling instruction triggered to the target program, displaying a second graphic object in the drawing area, wherein the second graphic object is a custom graphic object created by a user.
[0006] According to another aspect of an embodiment of the present application, a device for drawing a graphic object is also provided, including: a first display unit, used to display a drawing area of a target program, wherein the drawing area is used to present a graphic object drawn by the target program; a second display unit, used to display a first graphic object in the drawing area in response to a first calling instruction triggered to the target program, wherein the first graphic object is an optional graphic object provided by the target program; and a third display unit, used to display a second graphic object in the drawing area in response to a second calling instruction triggered to the target program, wherein the second graphic object is a custom graphic object created by a user.
[0007] As an optional scheme, the above-mentioned third display unit includes: a first display module, used to display a custom interface in response to a first instruction, wherein the above-mentioned custom interface displays at least one custom graphic object created by a user, the above-mentioned at least one custom graphic object includes the above-mentioned second graphic object, and the above-mentioned second calling instruction includes the first instruction; a determination module, used to determine the above-mentioned second graphic object from the above-mentioned at least one custom graphic object in response to a second instruction, wherein the above-mentioned second calling instruction includes the second instruction; a second display module, used to display the above-mentioned second graphic object in the above-mentioned drawing area.
[0008] As an optional solution, the above-mentioned device also includes: an adjustment module, which is used to adjust the graphic properties of the above-mentioned second graphic object in response to a third instruction before displaying the above-mentioned second graphic object in the above-mentioned drawing area, so as to obtain the adjusted second graphic object, wherein the above-mentioned second calling instruction includes the third instruction; the above-mentioned second display module includes: a display submodule, which is used to display the above-mentioned adjusted second graphic pair in the above-mentioned drawing area in response to a fourth instruction, wherein the above-mentioned second calling instruction includes the fourth instruction.
[0009] As an optional solution, the above-mentioned device also includes: a fourth display unit, which is used to display a setting interface of the above-mentioned target program before displaying the second graphic object in the above-mentioned drawing area in response to the second calling instruction triggered by the above-mentioned target program, wherein the above-mentioned setting interface is used to create the above-mentioned custom graphic object; a creation unit, which is used to create an initial graphic object in response to the creation execution executed on the above-mentioned setting interface before displaying the second graphic object in the above-mentioned drawing area in response to the second calling instruction triggered by the above-mentioned target program; an establishment unit, which is used to configure the calling instruction of the above-mentioned initial graphic object before displaying the second graphic object in the above-mentioned drawing area in response to the second calling instruction triggered by the above-mentioned target program, and establish a calling relationship between the above-mentioned second calling instruction and the above-mentioned initial graphic object; a configuration unit, which is used to configure the graphic properties of the above-mentioned initial graphic object before displaying the second graphic object in the above-mentioned drawing area in response to the second calling instruction triggered by the above-mentioned target program, so as to obtain the above-mentioned second graphic object.
[0010] As an optional solution, the configuration of the graphic attributes of the above-mentioned initial graphic object to obtain the above-mentioned second graphic object includes at least one of the following: a first configuration module, used to configure the graphic type of the above-mentioned initial graphic object, wherein the above-mentioned graphic attributes include the above-mentioned graphic type; a second configuration module, used to configure the graphic color of the above-mentioned initial graphic object, wherein the above-mentioned graphic attributes include the above-mentioned graphic color; a third configuration module, used to configure the graphic scale of the above-mentioned initial graphic object, wherein the above-mentioned graphic attributes include the above-mentioned graphic scale; a fourth configuration module, used to configure the graphic angle of the above-mentioned initial graphic object, wherein the above-mentioned graphic attributes include the above-mentioned graphic angle; a fifth configuration module, used to configure the graphic layer of the above-mentioned initial graphic object, wherein the above-mentioned graphic attributes include the above-mentioned graphic layer; a sixth configuration module, used to configure the graphic line type of the above-mentioned initial graphic object, wherein the above-mentioned graphic attributes include the above-mentioned graphic line type; a seventh configuration module, used to configure the printing attributes of the above-mentioned initial graphic object, wherein the above-mentioned graphic attributes include the above-mentioned printing attributes.
[0011] As an optional solution, the third display unit includes: a third display module, configured to display the target number of second graphic objects in the drawing area when the second calling instruction indicates calling the target number of second graphic objects.
[0012] As an optional solution, the above-mentioned device also includes: an acquisition unit, which is used to acquire the graphic parameters corresponding to the above-mentioned second graphic object in response to a parameter export instruction triggered by the above-mentioned target program when the above-mentioned target program is configured with the above-mentioned second graphic object; an export unit, which is used to import the graphic parameters corresponding to the above-mentioned second graphic object into the above-mentioned other program in response to a parameter import instruction triggered by other programs when the above-mentioned target program is configured with the above-mentioned second graphic object; and an import unit, which is used to display the above-mentioned second graphic quantity in the drawing area of the above-mentioned other program in response to a call instruction triggered by the above-mentioned other program when the above-mentioned target program is configured with the above-mentioned second graphic object.
[0013] According to another aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes the above method for drawing a graphic object.
[0014] According to another aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for drawing the graphic object through the computer program.
[0015] In an embodiment of the present application, a drawing area of a target program is displayed, wherein the drawing area is used to present a graphic object drawn by the target program; in response to a first calling instruction triggered to the target program, a first graphic object is displayed in the drawing area, wherein the first graphic object is an optional graphic object provided by the target program; in response to a second calling instruction triggered to the target program, a second graphic object is displayed in the drawing area, wherein the second graphic object is a custom graphic object created by a user.
[0016] First, the target program displays a drawing area that is dedicated to presenting graphic objects drawn by the program. This setting provides users with a clear and focused working environment, which helps improve concentration and accuracy when drawing.
[0017] Secondly, when the user triggers the first call instruction to the target program, the program will display an optional predefined graphic object (i.e., the first graphic object) in the drawing area. These predefined graphic objects meet the user's needs for conventional graphic drawing, allowing the user to quickly and accurately combine and draw graphics.
[0018] However, when the graphics required by the user are not predefined fixed graphics, the traditional approach usually requires complex adjustments and transformations of these fixed graphics. This process is not only time-consuming and labor-intensive, but also easily affects the accuracy and efficiency of drawing. In order to solve this problem, the target program introduces the function of customizing graphic objects.
[0019] Specifically, when the user triggers the second call instruction to the target program, the program will display a user-created custom graphic object (i.e., the second graphic object) in the drawing area. This function allows users to directly create and edit graphic objects according to their specific needs without making complex adjustments to predefined graphics. In this way, users can not only obtain the desired graphic effects more quickly, but also maintain higher accuracy and efficiency during the drawing process, thereby achieving the purpose of reducing the adjustment steps in the drawing process, thereby achieving the technical effect of improving the drawing efficiency of graphic objects, and thus solving the technical problem of low drawing efficiency of graphic objects. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0021] Figure 1 is a schematic diagram of an application environment of an optional method for drawing a graphic object according to an embodiment of the present application;
[0022] Figure 2 is a schematic diagram of a process of an optional method for drawing a graphic object according to an embodiment of the present application;
[0023] Figure 3 is a schematic diagram of an optional method for drawing a graphic object according to an embodiment of the present application;
[0024] Figure 4 is a schematic diagram of another optional method for drawing a graphic object according to an embodiment of the present application;
[0025] Figure 5 is a schematic diagram of another optional method for drawing a graphic object according to an embodiment of the present application;
[0026] Figure 6 is a schematic diagram of another optional method for drawing a graphic object according to an embodiment of the present application;
[0027] Figure 7 is a schematic diagram of another optional method for drawing a graphic object according to an embodiment of the present application;
[0028] Figure 8 is a schematic diagram of another optional method for drawing a graphic object according to an embodiment of the present application;
[0029] Fig. 9 is a schematic diagram of an optional device for drawing a graphic object according to an embodiment of the present application;
[0030] Fig.10 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0031] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0033] According to one aspect of an embodiment of the present application, a method for drawing a graphic object is provided. Optionally, as an optional implementation, the method for drawing a graphic object can be but is not limited to being applied to: Figure 1 In the environment shown, the environment may include, but is not limited to, a user device 102 and a server 112 . The user device 102 may include, but is not limited to, a display 104 , a processor 106 , and a memory 108 . The server 112 includes a database 114 and a processing engine 116 .
[0034] The specific process can be as follows:
[0035] Step S102, the user device 102 obtains the first / second calling instruction;
[0036] Step S104, sending the first / second calling instruction to the server 112 via the network 110;
[0037] Step S106, the server 112 obtains the first graphic object corresponding to the first calling instruction through the processing engine 116; or obtains the second graphic object corresponding to the second calling instruction;
[0038] Step S108 , sending the first / second graphic object to the user device 102 via the network 110 , and the user device 102 displays the first / second graphic object on the display 104 via the processor 106 , and stores the first / second graphic object in the memory 108 .
[0039] remove Figure 1In addition to the examples shown, the terminal device may be a terminal device configured with a target client, which may include but is not limited to at least one of the following: a mobile phone (such as an Android phone, an iOS phone, etc.), a laptop, a tablet computer, a PDA, a MID (Mobile Internet Devices), a PAD, a desktop computer, a smart TV, etc. The target client may be a video client, an instant messaging client, a browser client, an education client, etc. The network may include but is not limited to: a wired network, a wireless network, wherein the wired network includes: a local area network, a metropolitan area network and a wide area network, and the wireless network includes: Bluetooth, WIFI and other networks that implement wireless communication. The server may be a single server, or a server cluster consisting of multiple servers, or a cloud server. The above is only an example, and no limitation is made to this in this embodiment.
[0040] Optionally, as an optional implementation, as Figure 2 As shown, the method for drawing a graphic object may be executed by an electronic device, which may be, for example, Figure 1 The user device or server shown in the figure comprises:
[0041] S202, displaying a drawing area of the target program, wherein the drawing area is used to present a graphic object drawn by the target program;
[0042] S204, in response to a first calling instruction triggered to the target program, displaying a first graphic object in the drawing area, wherein the first graphic object is an optional graphic object provided by the target program;
[0043] S206 , in response to a second calling instruction triggered to the target program, displaying a second graphic object in the drawing area, wherein the second graphic object is a custom graphic object created by a user.
[0044] Optionally, in this embodiment, the drawing area is an area in the target program specifically used for drawing and displaying graphic objects.
[0045] Optionally, in this embodiment, the first calling instruction is an instruction triggered by a user, and is used to display a selectable graphic object provided by the target program in the drawing area.
[0046] Optionally, in this embodiment, the first graphic object refers to a selectable graphic object pre-defined by the target program and provided to the user, such as a basic shape, pattern, etc.
[0047] Optionally, in this embodiment, the second calling instruction: another instruction triggered by the user, used to display a user-defined graphic object in the drawing area.
[0048] Optionally, in this embodiment, the second graphic object: a custom graphic object created by a user according to requirements, which may include a special shape, color, line type, etc.
[0049] It should be noted that this embodiment describes the basic workflow of the target program's drawing function. First, it emphasizes a dedicated "drawing area", which is the main work area for users to draw and edit graphics. Then, the description mentions two types of call instructions and their responses: the first call instruction is used to display the optional graphic object (first graphic object) provided by the program, while the second call instruction is used to display the user-defined graphic object (second graphic object).
[0050] This design not only improves the flexibility of drawing, but also greatly increases the user's work efficiency. By providing preset standard graphic objects and allowing users to customize graphic objects, the program can meet the different needs of users from beginners to professional designers. In addition, this design also encourages users to use their creativity to create unique graphics that meet personal or project needs.
[0051] Specifically, in the graphics drawing scenario, in order to solve the problem of low efficiency in drawing graphics objects, the key of this embodiment is to provide users with more flexibility and customization capabilities to reduce the dependence on predefined fixed graphics objects and the complex adjustment process, for example:
[0052] First, the drawing area of the target program is displayed. This step provides users with a visual working environment for presenting the graphic objects drawn by the target program. This is the basis, ensuring that users can intuitively see the results of their creations and modifications.
[0053] Next, by displaying the first graphics object in response to the first call instruction, we provide the user with optional graphics objects predefined by the program. These objects, as a starting point, can meet some basic drawing requirements and provide a way for users to become familiar with and understand the program's functions. However, relying solely on these predefined objects is not enough to solve the efficiency problem, because they may not fully meet the user's specific needs.
[0054] The key improvement is to display a second graphic object in response to the second call instruction, where the second graphic object is a custom graphic object created by the user. This step directly solves the problem that the user needs to make complex adjustments and transformations to predefined graphics. By allowing users to create custom graphic objects, we give users greater freedom and control. Users can directly draw the required graphics according to their needs without having to make cumbersome adjustments based on predefined graphics.
[0055] It can be seen that the advantages of this embodiment are:
[0056] Improved flexibility: Users are no longer restricted to predefined graphic objects and can draw freely according to their own creativity and needs.
[0057] Reduce adjustment steps: Since the required graphics can be created directly, users do not need to make additional adjustments and transformations, which significantly reduces the complexity and time consumption of the drawing process.
[0058] Improve efficiency: By reducing unnecessary adjustment steps and providing an intuitive drawing area, users can complete graphics drawing tasks more quickly, improving overall work efficiency.
[0059] In summary, by combining the functions of predefined optional graphic objects and user-defined graphic objects, this embodiment can effectively solve the problem of low efficiency in drawing graphic objects in a graphic drawing scene. This solution not only retains the convenience provided by the program, but also significantly improves the flexibility and efficiency of drawing by introducing user-defined elements.
[0060] To further illustrate, an optional hypothetical target program is a computer-aided design (CAD) software. When the user opens the software, he will see a blank "drawing area". If the user needs to draw a standard circle, he may select the "circle" tool on the toolbar (the first call instruction), and a standard circle (the first graphic object) will be displayed in the drawing area. If the user wants to draw a specific shape or pattern, such as a circle with a special mark, he can use a custom function to create this graphic (the second graphic object) and display it in the drawing area through the corresponding command or button (the second call instruction).
[0061] Through the embodiments provided by the present application, a drawing area of a target program is displayed, wherein the drawing area is used to present a graphic object drawn by the target program; in response to a first calling instruction triggered to the target program, a first graphic object is displayed in the drawing area, wherein the first graphic object is an optional graphic object provided by the target program; in response to a second calling instruction triggered to the target program, a second graphic object is displayed in the drawing area, wherein the second graphic object is a custom graphic object created by a user.
[0062] First, the target program displays a drawing area that is dedicated to presenting graphic objects drawn by the program. This setting provides users with a clear and focused working environment, which helps improve concentration and accuracy when drawing.
[0063] Secondly, when the user triggers the first call instruction to the target program, the program will display an optional predefined graphic object (i.e., the first graphic object) in the drawing area. These predefined graphic objects meet the user's needs for conventional graphic drawing, allowing the user to quickly and accurately combine and draw graphics.
[0064] However, when the graphics required by the user are not predefined fixed graphics, the traditional approach usually requires complex adjustments and transformations of these fixed graphics. This process is not only time-consuming and labor-intensive, but also easily affects the accuracy and efficiency of drawing. In order to solve this problem, the target program introduces the function of customizing graphic objects.
[0065] Specifically, when the user triggers the second call instruction to the target program, the program will display a user-created custom graphic object (i.e., the second graphic object) in the drawing area. This function allows users to directly create and edit graphic objects according to their specific needs without making complex adjustments to predefined graphics. In this way, users can not only obtain the desired graphic effects more quickly, but also maintain higher accuracy and efficiency during the drawing process, thereby achieving the purpose of reducing the adjustment steps in the drawing process, thereby achieving the technical effect of improving the drawing efficiency of graphic objects.
[0066] As an optional solution, in response to a second calling instruction triggered to the target program, displaying a second graphic object in the drawing area includes:
[0067] S1-1, in response to a first instruction, displaying a custom interface, wherein the custom interface displays at least one custom graphic object created by a user, the at least one custom graphic object includes a second graphic object, and the second calling instruction includes the first instruction;
[0068] S1-2, in response to a second instruction, determining a second graphic object from at least one custom graphic object, wherein the second calling instruction includes the second instruction;
[0069] S1-3, displaying the second graphic object in the drawing area.
[0070] Optionally, in this embodiment, the first instruction is a user-triggered instruction used to display a custom interface including at least one custom graphic object created by the user, including a second graphic object to be displayed.
[0071] Optionally, in this embodiment, the custom interface is a specially designed interface for displaying all custom graphic objects created by the user for selection and operation by the user.
[0072] Optionally, in this embodiment, the second instruction: another instruction triggered by the user, used to select a specific second graphic object from the custom graphic objects on the custom interface.
[0073] It should be noted that this embodiment describes the specific operation flow of "displaying a second graphic object in the drawing area in response to a second call instruction triggered to the target program". This includes three main steps: first, responding to the first instruction to display an interface containing a user-created custom graphic object; second, responding to the second instruction to select a second graphic object to be displayed from these custom graphic objects; and finally, displaying the second graphic object in the drawing area.
[0074] This design not only provides users with a high degree of customization, but also enables users to easily manage and reuse the graphic resources they have previously created. By separating the steps of displaying the customization interface and selecting specific graphic objects, users can view and operate their custom graphic libraries more clearly, thereby improving work efficiency and user experience.
[0075] To further illustrate, it is optional to assume that in a graphic design software, the user wants to insert a custom graphic that he or she has previously created. First, the user triggers the first instruction, and the software pops up a custom interface that displays all the custom graphics (including the second graphic object) that the user has previously created and saved. Then, the user selects a specific custom graphic (i.e., the second graphic object) from the interface by triggering the second instruction, such as clicking or selecting an operation. Finally, the software displays the selected graphic in the drawing area.
[0076] Through the embodiments provided by the present application, the software provides users with an intuitive and efficient custom graphic management and insertion process. Users can easily browse and select graphic objects they have previously created and quickly insert them into the current drawing project. This not only saves users time in recreating graphics, but also ensures the consistency and quality of graphics. In general, this design significantly improves the flexibility and efficiency of users in the graphic design process.
[0077] As an optional solution, before displaying the second graphic object in the drawing area, the method further includes: in response to a third instruction, adjusting the graphic attribute of the second graphic object to obtain the adjusted second graphic object, wherein the second calling instruction includes the third instruction;
[0078] Displaying the second graphic object in the drawing area includes: displaying the adjusted second graphic pair in the drawing area in response to a fourth instruction, wherein the second calling instruction includes the fourth instruction.
[0079] Optionally, in this embodiment, the third instruction: an instruction triggered by a user, is used to adjust graphic properties of the second graphic object, such as color, size, position, etc.
[0080] Optionally, in this embodiment, the adjusted second graphic object: the second graphic object after the properties are adjusted, meets the user's specific needs or designs.
[0081] Optionally, in this embodiment, the fourth instruction: another instruction triggered by the user, used to display the adjusted second graphic object in the drawing area.
[0082] It should be noted that this embodiment further refines the process of displaying the second graphic object in the drawing area. Before displaying the second graphic object, the user can respond to the third instruction to adjust the properties of the graphic object, such as color, size, shape, etc., to obtain the adjusted graphic object. Subsequently, the user can respond to the fourth instruction to display the adjusted graphic object in the drawing area.
[0083] This design allows users to make fine adjustments before placing custom graphics into the drawing area, ensuring that the graphics fully conform to their design intent. This not only improves the quality of the graphics, but also enhances the design flexibility of the users. In addition, through the clear separation of instructions (the third and fourth instructions), users can more clearly control the design and display process of the graphics.
[0084] To further illustrate, for example, in a graphic editing software, a user creates a custom rectangular graphic (a second graphic object). Before placing it in the drawing area, the user wants to adjust its color and size. Therefore, the user triggers the third instruction, and adjusts the rectangle accordingly through the color palette and size adjustment tool, and obtains a new rectangle that meets the user's needs (the adjusted second graphic object). Then, the user triggers the fourth instruction to display the adjusted rectangle in the drawing area.
[0085] Through the embodiments provided by the present application, the software provides users with a more detailed and controllable graphic design process. Users can easily adjust the various properties of custom graphics to ensure that they are completely consistent with the design intent. At the same time, this design also improves the design efficiency and satisfaction of users because they can preview and adjust the graphics before placing them in the drawing area. In general, this design significantly improves the ease of use and practicality of graphic design software.
[0086] As an optional solution, before displaying the second graphic object in the drawing area in response to the second calling instruction triggered to the target program, the method further includes:
[0087] S2-1, displaying a setting interface of the target program, wherein the setting interface is used to create a custom graphic object;
[0088] S2-2, in response to the creation execution executed on the setting interface, creating an initial graphic object;
[0089] S2-3, configuring the calling instruction of the initial graphic object, and establishing a calling relationship between the second calling instruction and the initial graphic object;
[0090] S2-4, configuring the graphic attributes of the initial graphic object to obtain a second graphic object.
[0091] Optionally, in this embodiment, the setting interface is a special interface in the target program for creating and configuring a custom graphic object.
[0092] Optionally, in this embodiment, creation execution: in the setting interface, an operation performed by a user to generate a new initial graphic object.
[0093] Optionally, in this embodiment, the initial graphic object is a basic graphic created by the user through a setting interface, which has not been set by property configuration and calling instructions.
[0094] Optionally, in this embodiment, the calling relationship: the established connection between the second calling instruction and the initial graphic object, so that the graphic object can be displayed or called by executing a specific second calling instruction.
[0095] It should be noted that before responding to the second call instruction to display the second graphic object in the drawing area, this embodiment also includes several key steps. First, it involves displaying the setting interface of the target program, which allows the user to create a custom graphic object. Then, when the user performs a creation operation in this setting interface, an initial graphic object is generated. Then, the user can configure the call instruction of this initial graphic object to ensure that this graphic object can be called through a specific second call instruction. Finally, the user can also configure the graphic properties of this initial graphic object, such as color, shape, etc., to obtain the final second graphic object.
[0096] This design not only allows users to create and configure graphic objects according to their needs, but also enables users to easily reuse and manage these custom graphics by establishing clear calling relationships. This high degree of customization and ease of use greatly improves users' design efficiency and creative experience.
[0097] To further illustrate, let's assume that there is a graphics editing software and the user wants to create a custom star shape and use it in subsequent designs. First, the user opens the software's settings interface, where he can choose to create a new custom graphic. The user selects a basic pentagon as the initial graphic object. Then, he configures a specific call instruction for this pentagon in the settings interface, such as "show stars". Then, the user configures the color, line thickness and other graphic properties of the pentagon in detail, and finally gets the star shape he wants (i.e., the second graphic object). After that, whenever the user enters the call instruction "show stars" in the software, the star shape he previously configured will appear in the drawing area.
[0098] By introducing the setup interface and configuration process, the software gives users greater creative freedom and flexibility. Users can easily create, configure and manage their own custom graphics libraries. At the same time, by establishing clear relationships between call instructions and graphic objects, users can quickly call and reuse these graphic objects, thereby improving work efficiency. In general, this design significantly improves the interactivity and user experience of graphic design software.
[0099] As an optional solution, configuring the graphic attributes of the initial graphic object to obtain the second graphic object includes at least one of the following:
[0100] S3-1, configuring the graphic type of the initial graphic object, wherein the graphic attributes include the graphic type;
[0101] S3-2, configuring the graphic color of the initial graphic object, wherein the graphic attribute includes the graphic color;
[0102] S3-3, configuring a graphic scale of the initial graphic object, wherein the graphic attribute includes the graphic scale;
[0103] S3-4, configuring the graphic angle of the initial graphic object, wherein the graphic attributes include the graphic angle;
[0104] S3-5, configuring a graphic layer of the initial graphic object, wherein the graphic attribute includes the graphic layer;
[0105] S3-6, configuring the graphic line type of the initial graphic object, wherein the graphic attribute includes the graphic line type;
[0106] S3-7, configuring the printing attributes of the initial graphic object, wherein the graphic attributes include printing attributes.
[0107] Optionally, in this embodiment, the graphic type configuration refers to changing or setting the type of the graphic, such as circle, rectangle, polygon, etc.
[0108] Optionally, in this embodiment, the graphic color configuration: select or adjust the color for the graphic, including the fill color and the border color.
[0109] Optionally, in this embodiment, the graphic proportion configuration: adjusting the size or dimension of the graphic to meet a specific proportion requirement.
[0110] Optionally, in this embodiment, the graphic angle configuration: rotate the graphic to a specific angle to meet layout or design requirements.
[0111] Optionally, in this embodiment, the graphic layer configuration: arranges the positions of graphics in multiple layers to facilitate the management and editing of complex graphic combinations.
[0112] Optionally, in this embodiment, the graphic line type configuration: setting the line type of the graphic, such as solid line, dashed line, dotted line, etc.
[0113] Optionally, in this embodiment, the printing attribute configuration: setting the relevant attributes of the graphics when printing, such as whether to print, the printing quality, etc.
[0114] It should be noted that this embodiment describes the process of obtaining a second graphic object by configuring the graphic properties of an initial graphic object. These configurations include multiple aspects such as graphic type, color, scale, angle, layer, line type, and printing properties. Users can adjust these properties according to their needs to obtain a second graphic object that meets specific design or functional requirements.
[0115] These configuration options not only provide rich customization capabilities, but also enable users to precisely adjust the appearance and behavior of graphics according to actual application scenarios and needs. Whether in advertising design, architectural design or engineering drawing, this detailed configuration is crucial.
[0116] To further illustrate, in the optional CAD design software, a designer creates an initial rectangular graphic object. To meet the design requirements, the designer performs the following configurations: first, he changes the color of the rectangle from the default black to blue; then, he adjusts the size of the rectangle so that its width and height meet a specific ratio; then, he rotates the rectangle 45 degrees; finally, he sets a dashed border for the rectangle and specifies that the graphic should be output at a high resolution when printed. After these configurations, the designer obtains a second graphic object that meets the design requirements.
[0117] By configuring various graphic properties of the initial graphic object, users can create a highly customized second graphic object. This not only improves the flexibility and accuracy of the design, but also enables the graphics to better adapt to various application scenarios and needs. At the same time, this configuration method also greatly enhances the interactivity between users and software, improving user experience and work efficiency.
[0118] As an optional solution, when the second calling instruction indicates to call the second graphic object of the target number, displaying the second graphic object in the drawing area includes:
[0119] Displays the target number of second graphical objects in the drawing area.
[0120] Optionally, in this embodiment, the second calling instruction: an instruction for triggering display of a second graphic object in the drawing area, specifically refers to an instruction containing calling target quantity information.
[0121] Optionally, in this embodiment, the target number is the number of second graphic objects that need to be displayed and is specified in the second calling instruction.
[0122] It should be noted that this embodiment describes how the system displays a specific number of second graphic objects in the drawing area when the second call instruction instructs to call a specific number of second graphic objects. In short, if the instruction requires displaying multiple second graphic objects, the system will display a corresponding number of graphic objects in the drawing area according to the instruction.
[0123] This feature is particularly useful when dealing with graphic designs that require repeated elements, such as making patterns, backgrounds, or array layouts. Multiple identical graphic objects can be quickly generated with one command, greatly improving design efficiency. At the same time, this also demonstrates the software's ability to accurately respond to user commands, improving user experience.
[0124] To further illustrate, it is optional to assume that in a graphic design software, the user requests to display 5 identical star shapes (second graphic objects) through the second call instruction. The software will interpret the target number (5) in this instruction and then display 5 star shapes in the drawing area.
[0125] By specifying the target quantity through the second call instruction, users can display multiple identical second graphic objects in the drawing area at one time. This not only speeds up the design process, but also ensures the consistency and accuracy of the graphics. In addition, this operation method is concise and easy to master, which further improves the usability of the software and user satisfaction.
[0126] As an optional solution, when the target program is configured with a second graphic object, the method further includes:
[0127] S4-1, in response to a parameter export instruction triggered to a target program, obtaining a graphic parameter corresponding to a second graphic object;
[0128] S4-2, in response to the parameter import instruction triggered to the other program, import the graphic parameters corresponding to the second graphic object into the other program;
[0129] S4-3, in response to the calling instruction triggered to the other program, display the second graphic quantity in the drawing area of the other program.
[0130] Optionally, in this embodiment, the parameter export instruction is an instruction triggered by a user, and is used to export the graphic parameters of the second graphic object from the target program.
[0131] Optionally, in this embodiment, graphic parameters: data describing the properties and characteristics of the second graphic object, including but not limited to shape, color, size, etc.
[0132] Optionally, in this embodiment, the parameter import instruction is an instruction triggered by the user in other programs, which is used to import the graphic parameters previously exported from the target program.
[0133] Optionally, in this embodiment, the calling instruction (in other programs): an instruction triggered in other programs, used to display the imported second graphic object in the drawing area.
[0134] It should be noted that when the second graphic object has been configured in the target program, this embodiment also provides the export and import functions of graphic parameters, as well as the ability to call and display these graphic objects in other programs. Specifically, the user can trigger the parameter export instruction to obtain the graphic parameters of the second graphic object from the target program. Subsequently, these parameters can be imported into other programs. Finally, when the call instruction is triggered in other programs, these second graphic objects can be displayed in their drawing area.
[0135] This cross-program export and import function of graphic parameters greatly improves the flexibility and efficiency of design work. Designers can easily share and migrate custom graphic objects between different design software without having to recreate the same graphics in each software. This not only saves time, but also ensures the consistency and quality of graphics.
[0136] To further illustrate, optionally assume that a designer creates a custom logo (second graphic object) in graphic design software A (target program) and wants to import it into another design software B for further editing. The designer first triggers the parameter export command in software A to save the graphic parameters of the logo as a file. Then, in software B, the designer triggers the parameter import command to import the previously saved graphic parameter file. Finally, the call command is triggered in software B, and the logo appears in the drawing area of software B for further editing and use by the designer.
[0137] Through the parameter export and import functions, users can easily migrate secondary graphic objects between different programs, realizing the sharing and reuse of design resources. This cross-platform design collaboration method not only improves the work efficiency of designers, but also promotes the maximum utilization of design resources. At the same time, this seamless integration and migration experience also greatly enhances user satisfaction and the practical value of the software.
[0138] As an optional solution, for ease of understanding, the above-mentioned method of drawing graphic objects is applied to the CAD scenario. The command line interaction mode of traditional CAD is fixed, and users are limited to choosing from the preset options in the program, lacking the flexibility of customizing options. For those parameters that are frequently used, have many optional values, and have diverse user needs, the command line often provides insufficient options, and the preset values may not meet the actual needs of users. When providing interaction in a fixed interface, frequent interface calls and parameter access operations make the entire process cumbersome, thereby reducing the efficiency of interaction.
[0139] Optionally, the embodiment provides an interactive channel, allowing users to set or modify the preset options of the command line at any time according to their own needs, thereby greatly improving the flexibility and personalization of the interaction. Through the import and export functions of parameters, users can achieve personalized or unified settings between different versions and different platforms, which not only improves the user experience, but also enhances the applicability and convenience of CAD software.
[0140] Specifically, this embodiment comprehensively integrates the core parameters of various functions. Subsequently, an intuitive and easy-to-use interactive interface is constructed, allowing users to preset personalized operation plans according to their own needs. When the relevant function is called, the system will dynamically generate and display the corresponding command line options based on the plan previously preset by the user through the interface. Furthermore, this embodiment provides a complete parameter access mechanism to ensure that the user's preset plan can be easily saved and loaded. At the same time, in order to achieve cross-platform compatibility, this embodiment also provides a way to pass parameters, so that users can call these plans on different platforms or versions after presetting them once.
[0141] Further examples are given, and the optional operation flow of the fill function is used as an example. First, the user needs to call the fill function in CAD, such as Figure 3 "Setting(s)" as shown.
[0142] Then, the user opens the setting interface of the fill function, such as Figure 4 The interface shown in the figure. In this interface, the core parameters include fill pattern, color, scale, angle, layer, etc. Users can modify these interface parameters according to their needs to set personalized preset schemes and corresponding response commands.
[0143] After the setting is completed, the command line will refresh immediately to display the personalized preset scheme set by the user, such as Figure 5 The command line shown, wherein the number and content of the preset filling schemes in the command line are completely controlled by the user.
[0144] Furthermore, the optional operation process of the conversion layer function is used as an example. The user first calls the conversion layer function in CAD, such as Figure 6 "Setting(s)" as shown.
[0145] Next, the user opens the conversion layer settings interface, such as Figure 7 The interface shown in the figure. In this interface, the core parameters include layer, color, line type and printing properties. Users can set these parameters according to their needs.
[0146] Once set, the command line will be updated immediately to reflect the user's personalized layer scheme settings, such as Figure 8 The command line shown, similarly, the number and content of layer schemes preset in the command line are also completely controlled by the user.
[0147] Through the embodiments provided in this application, the user's direct intervention and control capabilities over command parameters are enhanced, thereby greatly improving the flexibility of interaction and user experience. And because the solution is completely customized based on the user's personalized needs, the applicability and practicality of the command line preset solution are significantly improved, better meeting the user's operational needs in different scenarios.
[0148] It is understandable that in the specific implementation of this application, related data such as user information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0149] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0150] According to another aspect of the embodiment of the present application, a device for drawing a graphic object for implementing the above-mentioned method for drawing a graphic object is also provided. Fig. 9 As shown, the device comprises:
[0151] A first display unit 902, used to display a drawing area of the target program, wherein the drawing area is used to present a graphic object drawn by the target program;
[0152] A second display unit 904, configured to display a first graphic object in the drawing area in response to a first calling instruction triggered to the target program, wherein the first graphic object is an optional graphic object provided by the target program;
[0153] The third display unit 906 is configured to display a second graphic object in the drawing area in response to a second calling instruction triggered to the target program, wherein the second graphic object is a user-defined graphic object created by a user.
[0154] For a specific embodiment, reference may be made to the example shown in the above-mentioned method for drawing a graphic object, which will not be described in detail in this example.
[0155] As an optional solution, the third display unit 906 includes:
[0156] A first display module, configured to display a custom interface in response to a first instruction, wherein the custom interface displays at least one custom graphic object created by a user, the at least one custom graphic object includes a second graphic object, and the second calling instruction includes the first instruction;
[0157] a determining module, configured to determine a second graphic object from at least one custom graphic object in response to a second instruction, wherein the second calling instruction includes the second instruction;
[0158] The second display module is used to display the second graphic object in the drawing area.
[0159] For a specific embodiment, reference may be made to the example shown in the above-mentioned method for drawing a graphic object, which will not be described in detail in this example.
[0160] As an optional solution, the device further includes: an adjustment module, configured to adjust the graphic attributes of the second graphic object in response to a third instruction before displaying the second graphic object in the drawing area to obtain the adjusted second graphic object, wherein the second calling instruction includes the third instruction;
[0161] The second display module includes: a display submodule, which is used to display the adjusted second graphic pair in the drawing area in response to a fourth instruction, wherein the second calling instruction includes the fourth instruction.
[0162] For a specific embodiment, reference may be made to the example shown in the above-mentioned method for drawing a graphic object, which will not be described in detail in this example.
[0163] As an optional solution, the device also includes:
[0164] a fourth display unit, configured to display a setting interface of the target program before displaying the second graphic object in the drawing area in response to the second calling instruction triggered to the target program, wherein the setting interface is used to create a custom graphic object;
[0165] a creating unit, configured to create an initial graphic object in response to a creation execution performed on the setting interface before displaying the second graphic object in the drawing area in response to a second calling instruction triggered on the target program;
[0166] an establishing unit, configured to configure the calling instruction of the initial graphic object and establish a calling relationship between the second calling instruction and the initial graphic object before displaying the second graphic object in the drawing area in response to the second calling instruction triggered to the target program;
[0167] The configuration unit is used to configure the graphic properties of the initial graphic object before displaying the second graphic object in the drawing area in response to the second calling instruction triggered to the target program to obtain the second graphic object.
[0168] For a specific embodiment, reference may be made to the example shown in the above-mentioned method for drawing a graphic object, which will not be described in detail in this example.
[0169] As an optional solution, configuring the graphic attributes of the initial graphic object to obtain the second graphic object includes at least one of the following:
[0170] A first configuration module, configured to configure a graphic type of an initial graphic object, wherein the graphic attribute includes the graphic type;
[0171] A second configuration module is used to configure the graphic color of the initial graphic object, wherein the graphic attribute includes the graphic color;
[0172] A third configuration module is used to configure the graphic scale of the initial graphic object, wherein the graphic attribute includes the graphic scale;
[0173] A fourth configuration module, configured to configure the graphic angle of the initial graphic object, wherein the graphic attributes include the graphic angle;
[0174] A fifth configuration module, configured to configure a graphic layer of the initial graphic object, wherein the graphic attribute includes the graphic layer;
[0175] A sixth configuration module, configured to configure the graphic line type of the initial graphic object, wherein the graphic attribute includes the graphic line type;
[0176] The seventh configuration module is used to configure the printing attributes of the initial graphic object, wherein the graphic attributes include printing attributes.
[0177] For a specific embodiment, reference may be made to the example shown in the above-mentioned method for drawing a graphic object, which will not be described in detail in this example.
[0178] As an optional solution, the third display unit 906 includes:
[0179] The third display module is used to display the target number of second graphic objects in the drawing area when the second calling instruction indicates calling the target number of second graphic objects.
[0180] For a specific embodiment, reference may be made to the example shown in the above-mentioned method for drawing a graphic object, which will not be described in detail in this example.
[0181] As an optional solution, the device also includes:
[0182] an acquisition unit, configured to acquire, in response to a parameter export instruction triggered on the target program, a graphic parameter corresponding to the second graphic object when the target program is configured with the second graphic object;
[0183] an export unit, configured to import the graphic parameters corresponding to the second graphic object into the other program in response to a parameter import instruction triggered on the other program, when the target program is configured with the second graphic object;
[0184] The import unit is used to display the second graphic quantity in the drawing area of the other program in response to a call instruction triggered to the other program when the target program is configured with the second graphic object.
[0185] For a specific embodiment, reference may be made to the example shown in the above-mentioned method for drawing a graphic object, which will not be described in detail in this example.
[0186] According to another aspect of the embodiment of the present application, an electronic device for implementing the above-mentioned method for drawing a graphic object is also provided. The electronic device may be, but is not limited to, Figure 1 The user device 102 or the server 112 shown in FIG. 1 is used as an example to illustrate the electronic device as the user device 102. Fig.10 As shown, the electronic device includes a memory 1002 and a processor 1004. The memory 1002 stores a computer program, and the processor 1004 is configured to execute the steps in any of the above method embodiments through the computer program.
[0187] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.
[0188] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0189] S1, displaying a drawing area of a target program, wherein the drawing area is used to present a graphic object drawn by the target program;
[0190] S2, in response to a first calling instruction triggered to the target program, displaying a first graphic object in the drawing area, wherein the first graphic object is an optional graphic object provided by the target program;
[0191] S3, in response to a second calling instruction triggered to the target program, displaying a second graphic object in the drawing area, wherein the second graphic object is a custom graphic object created by a user.
[0192] Alternatively, a person skilled in the art may understand that: Fig.10 The structure shown is for illustration only. Fig.10 The structure of the electronic device is not limited. Fig.10 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.10 Different configurations are shown.
[0193] Among them, the memory 1002 can be used to store software programs and modules, such as the program instructions / modules corresponding to the method and device for drawing graphic objects in the embodiments of the present application. The processor 1004 executes various functional applications and data processing by running the software programs and modules stored in the memory 1002, that is, realizing the above-mentioned method for drawing graphic objects. The memory 1002 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1002 may further include a memory remotely located relative to the processor 1004, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 1002 may be specifically, but not limited to, used to store information such as graphic objects, first call instructions, and second call instructions. As an example, such as Fig.10 As shown, the memory 1002 may include, but is not limited to, the first display unit 902, the second display unit 904, and the third display unit 906 in the graphic object drawing device. In addition, it may also include, but is not limited to, other module units in the graphic object drawing device, which will not be repeated in this example.
[0194] Optionally, the transmission device 1006 is used to receive or send data via a network. Specific examples of the network may include a wired network and a wireless network. In one example, the transmission device 1006 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1006 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0195] In addition, the electronic device further includes: a display 1008 for displaying information such as the graphic object, the first calling instruction and the second calling instruction; and a connection bus 1010 for connecting various module components in the electronic device.
[0196] In other embodiments, the user device or server may be a node in a distributed system, wherein the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the multiple nodes through network communication. Among them, a peer-to-peer network may be formed between the nodes, and any form of computing device, such as a server, user device, or other electronic device, may become a node in the blockchain system by joining the peer-to-peer network.
[0197] According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program / instruction, the computer program / instruction comprising a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit, various functions provided by the embodiments of the present application are executed.
[0198] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0199] It should be noted that the computer system of the electronic device is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0200] The computer system includes a central processing unit (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) or the program loaded from the storage part to the random access memory (RAM). In the random access memory, various programs and data required for system operation are also stored. The central processing unit, the read-only memory and the random access memory are connected to each other through a bus. The input / output interface (I / O interface) is also connected to the bus.
[0201] The following components are connected to the input / output interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a local area network card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the input / output interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.
[0202] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part, and / or installed from a removable medium. When the computer program is executed by a central processing unit, various functions defined in the system of the present application are executed.
[0203] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the above-mentioned various optional implementations.
[0204] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0205] S1, displaying a drawing area of a target program, wherein the drawing area is used to present a graphic object drawn by the target program;
[0206] S2, in response to a first calling instruction triggered to the target program, displaying a first graphic object in the drawing area, wherein the first graphic object is an optional graphic object provided by the target program;
[0207] S3, in response to a second calling instruction triggered to the target program, displaying a second graphic object in the drawing area, wherein the second graphic object is a custom graphic object created by a user.
[0208] Optionally, in the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories), or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0209] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the electronic device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0210] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0211] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which can be personal computers, servers or network devices, etc.) to execute all or part of the steps of the methods of each embodiment of the present application.
[0212] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0213] In the several embodiments provided in the present application, it should be understood that the disclosed user equipment can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and 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 units or modules, which can be electrical or other forms.
[0214] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0215] In addition, each functional unit in each embodiment of the present application 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-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0216] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A method for drawing a graphic object, characterized in that: include: Displaying a drawing area of the target program, wherein the drawing area is used to present a graphic object drawn by the target program; In response to a first calling instruction triggered to the target program, displaying a first graphic object in the drawing area, wherein the first graphic object is an optional graphic object provided by the target program; In response to a second calling instruction triggered to the target program, a second graphic object is displayed in the drawing area, wherein the second graphic object is a custom graphic object created by a user.
2. The method according to claim 1, characterized in that: The displaying a second graphic object in the drawing area in response to the second calling instruction triggered to the target program includes: In response to the first instruction, a custom interface is displayed, wherein the custom interface displays at least one custom graphic object created by a user, the at least one custom graphic object includes the second graphic object, and the second calling instruction includes the first instruction; In response to a second instruction, determining the second graphic object from the at least one custom graphic object, wherein the second calling instruction includes the second instruction; The second graphic object is displayed in the drawing area.
3. The method according to claim 2, characterized in that Before displaying the second graphic object in the drawing area, the method further includes: adjusting the graphic properties of the second graphic object in response to a third instruction to obtain an adjusted second graphic object, wherein the second calling instruction includes the third instruction; The displaying the second graphic object in the drawing area includes: displaying the adjusted second graphic pair in the drawing area in response to a fourth instruction, wherein the second calling instruction includes the fourth instruction.
4. The method according to claim 1, characterized in that Before displaying the second graphic object in the drawing area in response to the second calling instruction triggered to the target program, the method further includes: Displaying a setting interface of the target program, wherein the setting interface is used to create the custom graphic object; In response to the creation execution performed on the setting interface, creating an initial graphic object; configuring a calling instruction of the initial graphic object, and establishing a calling relationship between the second calling instruction and the initial graphic object; The graphic attributes of the initial graphic object are configured to obtain the second graphic object.
5. The method according to claim 4, characterized in that The configuring the graphic attributes of the initial graphic object to obtain the second graphic object includes at least one of the following: configuring a graphic type of the initial graphic object, wherein the graphic attributes include the graphic type; configuring a graphic color of the initial graphic object, wherein the graphic attribute includes the graphic color; configuring a graphic scale of the initial graphic object, wherein the graphic attribute includes the graphic scale; configuring a graphic angle of the initial graphic object, wherein the graphic attribute includes the graphic angle; configuring a graphics layer of the initial graphics object, wherein the graphics attribute includes the graphics layer; configuring a graphic line type of the initial graphic object, wherein the graphic attribute includes the graphic line type; The printing attributes of the initial graphic object are configured, wherein the graphic attributes include the printing attributes.
6. The method according to any one of claims 1 to 5, characterized in that In a case where the second calling instruction indicates calling a target number of second graphic objects, displaying the second graphic objects in the drawing area includes: The target number of second graphical objects are displayed in the drawing area.
7. The method according to any one of claims 1 to 5, characterized in that In a case where the target program is configured with the second graphic object, the method further includes: In response to a parameter export instruction triggered on the target program, obtaining a graphic parameter corresponding to the second graphic object; In response to a parameter import instruction triggered to another program, import the graphic parameters corresponding to the second graphic object into the other program; In response to a calling instruction triggered to the other program, the second graphic quantity is displayed in a drawing area of the other program.
8. A device for drawing a graphic object, characterized in that: include: A first display unit, configured to display a drawing area of a target program, wherein the drawing area is used to present a graphic object drawn by the target program; a second display unit, configured to display a first graphic object in the drawing area in response to a first calling instruction triggered to the target program, wherein the first graphic object is an optional graphic object provided by the target program; A third display unit is configured to display a second graphic object in the drawing area in response to a second calling instruction triggered to the target program, wherein the second graphic object is a user-defined graphic object created by a user.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 7 when executed by an electronic device.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 7 through the computer program.
Citation Information
Patent Citations
Data processing method and device for graphics files based on CAD (computer-aided design)
CN102411605A
Flow chart drawing system and method based on Canvas
CN115439578A
Shared primitive community management method and system based on CAD primitives and medium
CN115809494A
WebGIS-based primitive plotting system design method and system
CN116628789A
Intelligent drawing device based on antv / G6 and control method thereof
CN116645445A
