Mirror image generation method and electronic equipment

By responding to user input in the drawing software, obtaining the graphics to be mirrored and the symmetry axis paths, and automatically generating symmetrical graphics, the problem of inefficient drawing in the existing technology is solved, and a more efficient graphic drawing process is achieved.

CN119941913APending Publication Date: 2025-05-06GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311451856.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-02
Publication Date
2025-05-06

AI Technical Summary

Technical Problem

In the prior art, when drawing symmetrical graphics, users need to copy and rotate the graphics by themselves and move to the mirrored position, resulting in inefficient drawing.

Method used

By responding to the user's trigger input operation in the view window, the image to be mirrored and the current axis of symmetry path are obtained, and a mirrored image is generated in the view window, so that the image to be mirrored is symmetrical with the image to be mirrored about the current axis of symmetry path.

Benefits of technology

The user does not need to copy and move the mirrored graphics by themselves, which improves the drawing efficiency and reduces the drawing time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119941913A_ABST
    Figure CN119941913A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a mirror image generation method and electronic equipment, and the method comprises the steps: obtaining a to-be-mirrored image in response to a triggering input operation of a user in a view window; acquiring a current symmetric axis path; according to the to-be-mirrored graph and the current symmetric axis path, a mirrored graph is generated in the view window, and the mirrored graph and the to-be-mirrored graph are symmetric about the current symmetric axis path. In the method, after the to-be-mirrored graph is obtained, the mirrored graph can be automatically generated based on the current symmetric axis path, a user does not need to copy and move by himself, and the drawing efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of graphics processing technology, and in particular to a mirror graphics generation method and electronic device. Background Art

[0002] In current mapping software, if you want to draw a mirrored figure, the operation is cumbersome. You need to draw half of the figure, then select the figure, copy and paste the figure, and flip it to get the mirrored figure, and then move it to the mirrored position. In the prior art, when users draw symmetrical figures in drawing software (such as whiteboard software of smart conference tablets), they usually use a pen, finger, or mouse to draw half of the symmetrical figure in the drawing software, then select the half of the figure to copy, paste, and rotate it, and finally move it to the mirrored position to complete the drawing. Because in this solution, users need to copy and rotate the figure by themselves after drawing and move it to the mirrored position, resulting in low drawing efficiency. Summary of the invention

[0003] The embodiments of the present application provide a mirror image generation method and an electronic device, which can improve the efficiency of drawing mirror images.

[0004] In a first aspect, an embodiment of the present application provides a mirror graphic generation method, which includes: obtaining a graphic to be mirrored in response to a trigger input operation of a user in a view window; obtaining a current axis of symmetry path; and generating a mirror graphic in the view window according to the graphic to be mirrored and the current axis of symmetry path, wherein the mirror graphic is symmetrical with the graphic to be mirrored about the current axis of symmetry path.

[0005] In some embodiments, the method further includes: acquiring a preset display state; and displaying the current symmetry axis path based on the preset display state.

[0006] In some embodiments, generating a mirror image in the viewing window according to the image to be mirrored and the current axis of symmetry path includes: obtaining a current mirror image path according to the image to be mirrored and the current axis of symmetry path; and generating the mirror image in the viewing window according to the current mirror image path.

[0007] In some embodiments, the method further includes: displaying the current mirroring graphic path based on the preset display state.

[0008] In some embodiments, before generating a mirrored graphic in the viewing window based on the graphic to be mirrored and the current axis of symmetry path, the method further includes: updating the current axis of symmetry path and the current mirrored graphic path in the viewing window in response to a user's operation of changing the axis of symmetry position in the viewing window.

[0009] In some embodiments, generating a mirrored graphic in the viewing window according to the graphic to be mirrored and the current axis of symmetry path includes: if a user confirms the operation of generating a graphic in the viewing window, then generating a mirrored graphic in the viewing window according to the graphic to be mirrored and the current axis of symmetry path.

[0010] In some embodiments, the method further includes: in response to a configuration request operation by a user in the view window, displaying a configuration interface in the view window; in response to a configuration input operation by a user in the configuration interface, obtaining configuration parameters, wherein the configuration parameters include one of a mirror function working state, a preset symmetry axis parameter, and a preset display state.

[0011] In some embodiments, the preset symmetry axis parameters include the preset symmetry axis direction, the starting point coordinates, and the distance between the preset symmetry axis and the starting point.

[0012] In some embodiments, obtaining the graphic to be mirrored in response to a trigger input operation of a user in a view window includes: obtaining the graphic to be mirrored in response to a graphic selection operation or a mirror graphic path drawing operation of a user in the view window.

[0013] In a second aspect, an embodiment of the present application provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in any one of the embodiments of the first aspect above.

[0014] In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the method described in any one of the embodiments of the first aspect above.

[0015] In a fourth aspect, an embodiment of the present application further provides a computer program product, wherein the computer program product comprises a computer program stored on a computer-readable storage medium, wherein the computer program comprises program instructions, and when the program instructions are executed by a computer, the computer executes the method described in any one of the embodiments of the first aspect above.

[0016] Compared with the prior art, the beneficial effects of the present application are as follows: Different from the prior art, the embodiment of the present application provides a mirror image generation method and electronic device, the method comprising: obtaining a to-be-mirrored image in response to a trigger input operation of a user in a view window; obtaining a current axis of symmetry path; generating a mirror image in the view window according to the to-be-mirrored image and the current axis of symmetry path, wherein the mirror image is symmetrical with the to-be-mirrored image about the current axis of symmetry path. In the method, after obtaining the to-be-mirrored image, a mirror image can be automatically generated based on the current axis of symmetry path, without the need for the user to copy and move the mirror image by himself, thereby improving drawing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements / modules and steps with the same reference numerals in the drawings are represented as similar elements / modules and steps. Unless otherwise specified, the figures in the drawings do not constitute proportional limitations.

[0018] Figure 1 It is a flowchart of a mirror image generation method provided in an embodiment of the present application;

[0019] Figure 2 It is a schematic diagram of a mirror image generation process provided by an embodiment of the present application;

[0020] Figure 3 It is a schematic diagram of a mirror image generation process provided by an embodiment of the present application;

[0021] Figure 4 It is a schematic diagram of a mirror image generation process provided by an embodiment of the present application;

[0022] Figure 5 It is a schematic diagram of a mirror image generation process provided by an embodiment of the present application;

[0023] Figure 6 It is a schematic diagram of a mirror image generation process provided by an embodiment of the present application;

[0024] Figure 7 It is a structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] The present application is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present application, but do not limit the present application in any form. It should be noted that, for those of ordinary skill in the art, several variations and improvements can also be made without departing from the concept of the present application. These all belong to the protection scope of the present application.

[0026] For ease of understanding of the present application, the present application is described in more detail below in conjunction with the accompanying drawings and specific embodiments. Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those generally understood by those skilled in the art of the present application. The terms used in the specification of the present application are only for the purpose of describing specific embodiments and are not used to limit the present application. The term "and / or" used in this specification includes any and all combinations of one or more related listed items.

[0027] It should be noted that, if there is no conflict, the various features in the embodiments of the present application can be combined with each other, all within the scope of protection of the present application. In addition, although the functional module division is performed in the device schematic, in some cases, the module division can be different from that in the device. In addition, the words "first", "second", etc. used herein do not limit the data and execution order, but only distinguish the same items or similar items with basically the same functions and effects.

[0028] Currently, in drawing software, users need to use a pen, finger or mouse to draw half of a symmetrical figure in the drawing software, then select the half of the figure to copy, paste and rotate it, and finally move it to the mirrored position to complete the drawing. In this drawing method, drawing is time-consuming, and when the position of the mirrored figure needs to be changed, it needs to be moved again, resulting in low drawing efficiency.

[0029] In order to solve the above problems, an embodiment of the present application provides a mirror image generation method and an electronic device. After the user draws half of the graphic, the user does not need to copy, rotate and move the mirror image to the mirror position by himself. The present application can automatically generate a mirror image at the mirror position, thereby reducing drawing time and improving drawing efficiency.

[0030] In a first aspect, an embodiment of the present application provides a method for generating a mirror image, wherein the execution subject of the method for generating a mirror image is an electronic device, see Figure 1 , the method comprising:

[0031] Step S100: In response to a trigger input operation of a user in a view window, a graphic to be mirrored is obtained.

[0032] The electronic device has a built-in display screen or an external display screen. First, the electronic device can receive a user's operation to display a view window on the display screen. The view window can be a drawing interface in a drawing software or other graphic processing interface.

[0033] In one specific embodiment, the step includes:

[0034] Step S110: In response to the user's operation of selecting a graphic or drawing a mirrored graphic path in the view window, a graphic to be mirrored is obtained.

[0035] In the view window, if the user input triggers the mirroring function operation, the user can select a graphic in the view window using the selection box. Then, the electronic device will process the selected image and determine whether the selected graphic supports mirroring, such as determining whether the selected graphic is a separate graphic. If so, the graphic to be mirrored is obtained, such as obtaining the coordinate information of the mirrored image in the view window. If not, the user can be prompted through the view window that the graphic cannot be mirrored. Alternatively, the user can use the mouse to drag or the writing pen to control the drawing pen in the view window to draw the graphic to be mirrored, which can also enable the electronic device to obtain the graphic to be mirrored.

[0036] In this way, the user can draw the image to be mirrored by himself or directly select the image to be mirrored, so that the electronic device can obtain the image to be mirrored.

[0037] Step S200: Obtain the current symmetry axis path.

[0038] Usually, the current symmetry axis is a straight line, such as Figure 2 As shown by the vertical dotted line. The current symmetry axis path includes the coordinate information of the current symmetry axis in the view window. The coordinate information includes the direction of the current symmetry axis, the coordinates of the current starting point, and the distance between the current symmetry axis and the current starting point. Among them, the direction of the current symmetry axis can be the angle between the current symmetry axis and the horizontal direction. If the angle is 0°, the current symmetry axis is the horizontal axis. If the angle is 90°, the current symmetry axis is the vertical axis. The current starting point can be any point in the figure to be mirrored, such as the leftmost point in the figure to be mirrored or the rightmost point in the figure to be mirrored. It can be set according to actual needs and is not limited here. The distance between the current symmetry axis and the current starting point is the shortest distance from the current starting point to the straight line where the current symmetry axis is located. This distance can be set according to actual needs.

[0039] Specifically, this step may include:

[0040] Step S210: Obtain a preset symmetry axis path.

[0041] Step S220: If the user's operation of changing the position of the symmetry axis is not received, the preset symmetry axis path is used as the current symmetry axis path.

[0042] Step S230: If an operation of changing the position of the symmetry axis is received, a current symmetry axis path is determined according to the preset symmetry axis path and the operation of changing the position of the symmetry axis.

[0043] The preset symmetry axis path includes the coordinate information of the preset symmetry axis in the view window, which can be pre-configured by the user. The coordinate information includes the direction of the preset symmetry axis, the coordinates of the preset starting point, and the distance between the preset symmetry axis and the preset starting point. Among them, the direction of the preset symmetry axis can be the angle between the preset symmetry axis and the horizontal direction. If the angle is 0°, the preset symmetry axis is the horizontal axis. If the angle is 90°, the preset symmetry axis is the vertical axis. The preset starting point can be any point in the figure to be mirrored, such as the leftmost point in the figure to be mirrored or the rightmost point in the figure to be mirrored. It can be set according to actual needs and is not limited here. The distance between the preset symmetry axis and the preset starting point is the distance from the preset starting point to the straight line where the preset symmetry axis is located. The distance can be set according to actual needs.

[0044] First, after obtaining the figure to be mirrored, the electronic device will use the preset symmetry axis path as the current symmetry axis path. Then, if the user does not need to adjust the current symmetry axis path, there is no need to input the operation of changing the symmetry axis position, then the preset symmetry axis path will still be used as the current symmetry axis path. If the user needs to adjust the preset symmetry axis path to adjust the position of the mirrored figure, input the operation of changing the symmetry axis position to change the position of the symmetry axis. There are two ways to input the operation of changing the symmetry axis position. One is to display the symmetry axis parameter adjustment box in the view window. The user can input the direction of the current symmetry axis, the coordinates of the current starting point, and the distance between the current symmetry axis and the current starting point in the symmetry axis parameter adjustment box so that the electronic device can obtain the current symmetry axis parameters. The second is if the current symmetry axis path is displayed in the view window, then as shown in the following example. Figure 2 As shown, the user can move or rotate the current symmetry axis path in the view window to change the position of the symmetry axis, and the electronic device will obtain the parameters of the moved or rotated symmetry axis.

[0045] In this way, the user can adjust the current symmetry axis parameters, thereby adjusting the position of the mirror image, which not only increases the convenience and fun of writing, but also reduces the user's drawing efficiency.

[0046] Step S300: generating a mirror image in the view window according to the image to be mirrored and the current symmetry axis path, wherein the mirror image is symmetrical to the image to be mirrored about the current symmetry axis path.

[0047] Finally, after obtaining the coordinate information of each point of the mirrored figure and the current symmetry axis path, the coordinate information of each point of the mirrored figure in the view window can be calculated, so that the mirrored figure can be generated in the view window based on the coordinate information of each point of the mirrored figure in the view window.

[0048] In one specific embodiment, the step includes: obtaining a current mirror image path according to the image to be mirrored and the current symmetry axis path; and generating a mirror image according to the current mirror image path in the view window.

[0049] The current mirrored graphic path includes the coordinate information of each point of the current mirrored graphic in the view window. Specifically, after obtaining the coordinate information of each point of the to-be-mirrored graphic, the current mirrored graphic path can be calculated based on the to-be-mirrored graphic and the current symmetry axis path (i.e., the coordinate information of the current symmetry axis in the view window), and finally, the mirrored graphic can be generated in the view window based on the current mirrored graphic path.

[0050] It can be seen that in the embodiment of the present application, after obtaining the figure to be mirrored, a mirror figure can be automatically generated based on the figure to be mirrored and the current axis of symmetry path. The user only needs to adjust the current axis of symmetry path to adjust the position of the mirror figure, and there is no need to copy, paste and flip the mirror figure to the mirror position by themselves, which reduces drawing time and improves drawing efficiency.

[0051] In some of the embodiments, the mirror image generation method further includes: acquiring a preset display state; and displaying a current symmetry axis path based on the preset display state.

[0052] The preset display state includes the display state of the current symmetry axis path in the view window, which can be pre-configured by the user. The display state of the current symmetry axis path includes display and non-display. If the display state of the current symmetry axis path is display, the path where the current symmetry axis is located will be displayed in the view window when the user uses the mirror function, such as Figures 2 to 6 As shown in the figure, if the display status of the current symmetry axis path is not displayed, then Figures 2 to 6 The current symmetry axis path in will not be displayed. In this way, by presetting the display state, you can determine whether to display the current symmetry axis path. Figures 2 to 6 In the illustrated embodiment, the current symmetry axis path is a dotted line. In actual applications, the current symmetry axis path may be displayed as a solid line of a different color from the path of the graphic to be mirrored, or in other dotted line formats. The limitation in the embodiment does not need to be adhered to here.

[0053] In this embodiment, by displaying the current symmetry axis path, the user can easily determine the location of the mirror image, thereby improving the user's intuitiveness during the drawing process.

[0054] In some of the embodiments, the mirror image generation method further includes displaying a current mirror image path based on a preset display state.

[0055] The preset display state also includes the display state of the current mirrored graphic path in the current view window, which can be pre-configured by the user. The display state of the current mirrored graphic path includes display and non-display. If the display state of the current mirrored graphic path is display, the path of the current mirrored graphic will be displayed in the view window when the user uses the mirroring function, where the current mirrored graphic path is symmetrical with the graphic to be mirrored about the current symmetry axis path, such as Figures 2 to 6 If the current mirror image path is not displayed, Figures 2 to 6 The current mirrored graphics path in will not be displayed. Figures 2 to 6 In the illustrated embodiment, the current mirrored graphic path is a dotted line. In actual applications, the current mirrored graphic path may be displayed as a solid line of a color different from that of the to-be-mirrored graphic path and the current mirrored graphic path, or in other dotted line formats. The limitation in this embodiment need not be adhered to.

[0056] In this embodiment, whether to display the current mirror image path can be determined by presetting the display state. It is understandable that when the current mirror image path is displayed, it is more convenient for the user to determine the location of the mirror image, thereby improving the intuitiveness of the user in the drawing process.

[0057] In some embodiments, before step S300, the mirror image generation method further includes:

[0058] Step S310: In response to the user's operation of changing the position of the symmetry axis in the view window, the current symmetry axis path and the current mirror image path are updated and displayed in the view window.

[0059] If the current symmetry axis path and the current mirror image path are both in display state, then after the user inputs an operation to change the symmetry axis position, such as changing parameters in the symmetry axis parameter adjustment box, or moving the symmetry axis, or rotating the symmetry axis, the electronic device will calculate the changed symmetry axis path based on the operation to change the symmetry axis position, and use the changed symmetry axis path as the current symmetry axis path, and obtain the changed mirror image path based on the image to be mirrored and the changed symmetry axis path, and use the changed mirror image path as the current mirror image path.

[0060] Finally, the current symmetry axis path and the current mirror image path are updated in the view window. Figure 2 In the view window, after the user moves the current symmetry axis path to the right, the current symmetry axis path and the current mirror image path in the view window will also move to the right. Figure 3 shown.

[0061] In this embodiment, after the user inputs the operation of changing the position of the symmetry axis, the electronic device will update and display the symmetry axis path and the mirror graphic path. In this way, after changing the position of the symmetry axis, the user can intuitively determine the current position of the mirror graphic, thereby improving the user's intuitiveness in the drawing process.

[0062] In some embodiments, step S300 includes:

[0063] Step S301: If a confirmation operation of generating a graphic is received from the user in the view window, a mirrored graphic is generated in the view window according to the graphic to be mirrored and the current symmetry axis path.

[0064] Specifically, a button for confirming the generated graphics can be displayed in the view window, such as Figure 2 If the user clicks the "ok" button displayed in the figure, the user receives the confirmation of the graphic generation operation, and then the mirror image can be generated according to the current mirror image path. Figure 2 The dotted line of the current mirrored graphics path in the image will become a solid line. In addition, a cancel button can be displayed in the view window, such as Figure 2 If the user clicks the "cance l" button displayed in the figure after adjusting the symmetry axis, the position of the symmetry axis will return to the position before adjustment. Alternatively, if the user clicks the button after generating a figure, the path of the mirrored figure can be changed from a solid line to a dotted line.

[0065] In this embodiment, the mirror image graphic is generated only after a confirmation of the graphic generation operation is received, which can improve the accuracy of the generated graphic.

[0066] In some embodiments, the mirror image generation method further includes:

[0067] Step S400: In response to a configuration request operation by a user in a view window, a configuration interface is displayed in the view window;

[0068] Step S500: In response to the configuration input operation of the user in the configuration interface, a configuration parameter is obtained, where the configuration parameter includes one of a mirror function working state, a preset symmetry axis parameter and a preset display state.

[0069] The mirror function working state includes on and off. If the mirror opening state is on, the electronic device can trigger the mirror function after obtaining the image to be mirrored, and execute steps S100-S300 to generate a mirror image. If the mirror opening state is off, the electronic device will not trigger the mirror function after obtaining the image to be mirrored, that is, the mirror image will not be generated. Generally, the mirror function opening state can be preset to on. The preset symmetry axis parameters include the coordinate information of the preset symmetry axis in the view window. The preset display state includes the display state of the current symmetry axis path and / or the current mirror image path.

[0070] Specifically, the electronic device may display a configuration button in the view window. If the user clicks the configuration button, the configuration request operation of the user is received, and then the configuration interface is displayed in the view window.

[0071] The configuration interface may include an area for configuring the working state of the mirror function, an area for configuring preset symmetry axis parameters, and an area for configuring a preset display state.

[0072] For example, the electronic device may display an on or off button in the area used to configure the working state of the mirroring function. After the user clicks the on or off button, the electronic device will obtain the current working state of the mirroring function based on the user's click operation, thereby turning the mirroring function on or off.

[0073] Similarly, a button for changing the display status of the current axis of symmetry path and a button for changing the display status of the current mirror graphic path are displayed in the area used to configure the preset display status. After the user clicks the above buttons, the electronic device can obtain the display status of the current axis of symmetry path and the display status of the current mirror graphic path based on the user's click operation, thereby changing the display status of the current axis of symmetry path and / or the current mirror graphic path.

[0074] And a preset symmetry axis parameter adjustment box is displayed in the area where the user configures the preset symmetry axis parameters, and the user can enter the direction of the preset symmetry axis (such as the angle between the preset symmetry axis and the horizontal direction), the coordinates of the preset starting point, and the distance between the preset symmetry axis and the starting point and other parameters in the symmetry axis parameter adjustment box. The electronic device can obtain the preset symmetry axis parameters based on the user's input operation. Alternatively, the symmetry axis parameters that can be selected by the user are displayed in the area where the user configures the preset symmetry axis parameters, such as displaying a "preset symmetry axis as horizontal axis" button and a "preset symmetry axis as vertical axis" button. When the user clicks the "preset symmetry axis as horizontal axis" button, the horizontal axis is used as the direction of the preset symmetry axis. In actual applications, the interface of the configuration interface can be set according to actual needs, and there is no need to stick to the limitations in this embodiment.

[0075] In this embodiment, the user can pre-set the working state of the mirror function, preset the axis of symmetry parameters and the preset display state in the configuration interface, which can reduce the complexity of subsequent operations, and provide users with more drawing methods and choices, thereby improving the fun of the operation. In addition, by pre-setting the axis of symmetry parameters, after drawing the figure to be mirrored, the user does not need to adjust the axis of symmetry, and the required mirror image can be automatically generated, which reduces the difficulty of subsequent operations and improves the drawing efficiency. Moreover, in the process of drawing the figure to be mirrored, the user can automatically generate the mirror image, which is convenient for the user to observe the changes in the mirror image during the drawing process, thereby improving the intuitiveness of the drawing.

[0076] In a second aspect, the present application also provides an electronic device, see Figure 7 , which shows the hardware structure of an electronic device capable of executing the mirror image generation method as described in any one of the embodiments of the first aspect.

[0077] The electronic device may be a touch display device or a non-touch display device such as an intelligent interactive tablet, a large-size display, a computer, a PC, a pad, etc., and includes: at least one processor 11; and a memory 12 in communication with the at least one processor 11, Figure 7 In the example, a processor 11 is taken as an example. The memory 12 stores instructions that can be executed by the at least one processor 11, and the instructions are executed by the at least one processor 11 so that the at least one processor 11 can execute the mirror image generation method described in any embodiment of the first aspect. The processor 11 and the memory 12 can be connected by a bus or other means. Figure 7 The example of connecting through bus is taken in the following.

[0078] The memory 12 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions / modules corresponding to the video playback method in the embodiment of the present application. The processor 11 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 12, that is, the mirror image generation method described in any one of the embodiments of the first aspect is implemented.

[0079] The memory 12 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and applications required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 12 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 12 may optionally include a memory remotely arranged relative to the processor 11, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0080] The one or more modules are stored in the memory 12, and when executed by the one or more processors 11, the mirror graphics generation method described in any one of the embodiments of the first aspect is executed.

[0081] The above product can execute the method provided in the embodiment of the present application, and has the functional modules and beneficial effects corresponding to the execution method. For technical details not described in detail in this embodiment, please refer to the mirror image generation method described in any embodiment of the first aspect of the present application.

[0082] An embodiment of the present application also provides a non-volatile computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are executed by one or more processors, for example, to execute the steps of the mirror graphics generation method described in any one of the embodiments of the first aspect above.

[0083] An embodiment of the present application also provides a computer program product, including a computer program stored on a non-volatile computer-readable storage medium, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes the video playback method in any of the above method embodiments, for example, executes the steps of the mirror graphics generation method described in any of the embodiments of the first aspect above.

[0084] It should be noted that the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0085] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions to use at least one computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiment.

[0086] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Under the concept of the present application, the technical features in the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other changes in different aspects of the present application as described above, which are not provided in detail for the sake of simplicity. Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features can be replaced by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for generating a mirror image, characterized in that: include: In response to a trigger input operation of a user in the view window, a graphic to be mirrored is obtained; Get the current symmetry axis path; A mirror image is generated in the viewing window according to the image to be mirrored and the current axis of symmetry path, wherein the mirror image is symmetrical to the image to be mirrored about the current axis of symmetry path.

2. The method according to claim 1, characterized in that: The method further comprises: Get the preset display status; Based on the preset display state, the current symmetry axis path is displayed.

3. The method according to claim 2, characterized in that The step of generating a mirror image in the viewing window according to the image to be mirrored and the current symmetry axis path includes: Obtaining a current mirror image path according to the image to be mirrored and the current symmetry axis path; The mirror image is generated in the view window according to the current mirror image path.

4. The method according to claim 3, characterized in that The method further comprises: Based on the preset display state, the current mirror image graphic path is displayed.

5. The method according to claim 4, characterized in that Before generating a mirror image in the viewing window according to the image to be mirrored and the current symmetry axis path, the method further includes: In response to a user's operation of changing the position of the symmetry axis in the viewing window, the current symmetry axis path and the current mirror image path are updated and displayed in the viewing window.

6. The method according to any one of claims 1 to 5, characterized in that: The step of generating a mirror image in the viewing window according to the image to be mirrored and the current symmetry axis path includes: If a confirmation operation of generating a graphic is received from the user in the viewing window, a mirrored graphic is generated in the viewing window according to the graphic to be mirrored and the current symmetry axis path.

7. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: In response to a configuration request operation by a user in the view window, displaying a configuration interface in the view window; In response to the configuration input operation of the user in the configuration interface, configuration parameters are obtained, and the configuration parameters include one of the working state of the mirror function, the preset symmetry axis parameters and the preset display state.

8. The method according to claim 7, characterized in that The preset symmetry axis parameters include the preset symmetry axis direction, the starting point coordinates, and the distance between the preset symmetry axis and the starting point.

9. The method according to any one of claims 1 to 5, characterized in that: The step of obtaining the image to be mirrored in response to a trigger input operation by the user in the view window comprises: In response to a user's operation of selecting a graphic or drawing a mirrored graphic path in the view window, the graphic to be mirrored is obtained.

10. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 9.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the method according to any one of claims 1 to 9.