Control method, device and processor for graphic erasing
By obtaining and logically computing the graphic attribute information, determining the erase area and deleting the target graphic, the problem of inaccurate erasing of specified graphic in the prior art is solved, and high-accurate graphic erasing is achieved, improving user experience.
Patent Information
- Application Number
- CN202111562926.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-20
- Publication Date
- 2025-02-11
- Estimated Expiration
- 2041-12-20
AI Technical Summary
The prior art cannot accurately erase specified graphics, and it is easy to erase other graphics accidentally or to erase specified graphics completely.
By obtaining the graphic attribute information of some areas on the interface, performing logical operations to obtain the target attribute combination, determining that some areas of the interface are erased areas, and deleting the target graphics according to the target attribute combination.
Accurate erasure of specified graphics is achieved, avoiding the case of accidentally erasing other graphics and improving the user experience effect.
Smart Images

Figure CN114237469B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer graphics, and in particular to a control method, device, computer-readable storage medium and processor for erasing graphics. Background Art
[0002] When there are multiple graphics drawn by multiple users on the display interface, if the user wants to erase a specific graphic, the user needs to use the eraser carefully so as not to erase other graphics by mistake when erasing the specific graphic. This method cannot accurately erase the specific graphic and may erase other graphics by mistake, or the specific graphic cannot be completely erased. The eraser cannot selectively erase any of the overlapping graphics.
[0003] For example, when multiple users doodle on a collaborative electronic whiteboard, electronic doodles drawn by different users or different electronic doodles drawn by the same user usually overlap each other. At this time, if the user wants to erase the electronic doodle, the user needs to use the electronic eraser carefully to avoid accidentally erasing other electronic doodles when erasing the specified electronic doodle. This method cannot accurately erase the specified electronic doodle and is likely to accidentally erase other electronic doodles, or the specified electronic doodle is not completely erased, which gives the user a poor experience. In addition, there are also solutions for erasing electronic doodles in a specified area in the prior art, but this solution only selects a specific area and then erases all electronic doodles in the area. This method also requires the user to carefully select an area first and erase all electronic doodles in the area. This method may also accidentally erase other electronic doodles and cannot accurately erase the specified electronic doodle.
[0004] Therefore, there is an urgent need for a solution that can accurately erase a specified pattern.
[0005] The above information disclosed in the background technology section is only used to enhance the understanding of the background technology of the technology described in this article. Therefore, the background technology may contain certain information that does not form the prior art known in this country for those skilled in the art. Summary of the invention
[0006] The main purpose of the present application is to provide a control method, device, computer-readable storage medium and processor for erasing a graphic, so as to solve the problem in the prior art that a specified graphic cannot be accurately erased.
[0007] According to one aspect of an embodiment of the present invention, a control method for graphic erasing is provided, comprising: acquiring attribute information of a graphic in a first area, the first area being at least a portion of an area on an interface; performing a logical operation on at least a portion of the attribute information to obtain a target attribute combination; determining at least a portion of the area on the interface as a second area; and deleting a target graphic in the second area according to the target attribute combination, the target graphic being a graphic that meets the target attribute combination.
[0008] Optionally, obtaining the attribute information of the graphics in the first area includes: receiving a selection operation acting on the first area; in response to the selection operation, obtaining the attribute information of all the graphics in the first area; and generating an attribute list, wherein the attribute list includes the attribute information of all the graphics in the first area.
[0009] Optionally, performing a logical operation on at least part of the attribute information to obtain a target attribute combination includes: receiving a first predetermined operation, the first predetermined operation being an operation of selecting the attribute information in the attribute list; in response to the first predetermined operation, determining the attribute information acted upon by the first predetermined operation as first candidate attribute information; performing a logical operation on the first candidate attribute information to obtain a first candidate attribute combination; receiving a second predetermined operation, the second predetermined operation being an operation of characterization determination; and in response to the second predetermined operation, determining the first candidate attribute combination as the target attribute combination.
[0010] Optionally, after determining the attribute information affected by the first predetermined operation as the first candidate attribute information in response to the first predetermined operation, the method further includes: matching a candidate graphic in the interface based on the first candidate attribute combination, the candidate graphic being a graphic in the interface that meets the first candidate attribute combination; receiving a third predetermined operation, the third predetermined operation being an operation of selecting the attribute information of the candidate graphic in the attribute list; determining the attribute information affected by the third predetermined operation as the second candidate attribute information in response to the third predetermined operation; and performing logical operations on the first candidate attribute information and the second candidate attribute information to update the first candidate attribute combination.
[0011] Optionally, after matching a candidate graphic in the interface according to the first candidate attribute combination, the method further includes: highlighting the candidate graphic.
[0012] Optionally, the attribute list also includes graphic identifiers of all graphics in the first area, and logical operations are performed on at least part of the attribute information to obtain a target attribute combination, and also includes: receiving a fourth predetermined operation, the fourth predetermined operation is an operation to select the graphic identifier in the attribute list; in response to the fourth predetermined operation, determining the attribute information of the graphic corresponding to the graphic identifier acted upon by the fourth predetermined operation as target attribute information; performing logical operations on the target attribute information to obtain a second candidate attribute combination; receiving a fifth predetermined operation and in response to the fifth predetermined operation, determining the second candidate attribute combination as the target attribute combination;.
[0013] Optionally, determining at least a partial area in the interface as the second area includes: receiving a deletion operation; in response to the deletion operation, obtaining an effective area of the deletion operation in the interface; and determining the effective area as the second area.
[0014] According to another aspect of an embodiment of the present invention, a control device for erasing a graphic is also provided, including: an acquisition unit, used to acquire attribute information of a graphic in a first area, the first area being at least a partial area on an interface; a first operation unit, used to perform a logical operation on at least part of the attribute information to obtain a target attribute combination; a first determination unit, used to determine at least a partial area on the interface as a second area; and a processing unit, used to delete a target graphic in the second area according to the target attribute combination, the target graphic being a graphic that meets the target attribute combination.
[0015] According to yet another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein the program executes any one of the methods described.
[0016] According to yet another aspect of an embodiment of the present invention, a processor is provided, wherein the processor is used to run a program, wherein any one of the methods is executed when the program is run.
[0017] In an embodiment of the present invention, the attribute information of the graphics in the first area is first obtained, and then a logical operation is performed on at least part of the above attribute information to obtain a target attribute combination, and then at least a part of the area on the above interface is determined as the second area, and finally, according to the above target attribute combination, the target graphics in the above second area are deleted, and the above target graphics are graphics that meet the above target attribute combination. In the above scheme, since the attribute information is first logically operated to obtain the target attribute combination, when erasing the graphics, only the graphics whose attribute information meets the target attribute combination can be erased, that is, only the target graphics can be erased, and other graphics on the interface will not be erased by mistake. In this way, the specified graphics can be accurately erased, thereby solving the problem that the specified graphics cannot be accurately erased in the prior art. In this way, when erasing the specified graphics, the user does not need to erase the graphics carefully, which ensures a good user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0019] Figure 1 A schematic flow chart of a method for controlling graphic erasure according to an embodiment of the present application is shown;
[0020] Figure 2 A schematic diagram showing a user identity list and an absorption information identifier displayed on an interface is shown;
[0021] Figure 3 A schematic diagram showing a list of types of graphics displayed on the interface and an absorption information identifier;
[0022] Figure 4 A schematic diagram showing a color list of graphics displayed on the interface and an absorption information identifier;
[0023] Figure 5 A schematic structural diagram of a control device for graphic erasing according to an embodiment of the present application is shown.
[0024] The above drawings include the following reference numerals:
[0025] 11. User identity information identification; 12. Graphic type information identification; 13. Graphic color information identification; 14. Absorption information identification; 15. Absorption identification; 1011. User identity list; 1022. User identity information; 2011. Graphic type list; 2022. Graphic type information; 3011. Graphic color list; 3022. Graphic color information. DETAILED DESCRIPTION
[0026] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0027] 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.
[0028] 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 sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. 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.
[0029] For the convenience of description, some nouns or terms involved in the embodiments of the present application are explained below:
[0030] Collaborative electronic whiteboard: a software that allows multiple users to log in on different devices at the same time and each user can doodle on their own device screen using a mouse or finger touch screen, so that each user's doodles can be synchronized on everyone's device screen;
[0031] Electronic graffiti: a colored trace left on the screen of an electronic device by drawing with a mouse or touching the screen with a finger, also called a graphic in this embodiment;
[0032] Electronic Eraser: A tool that removes graffiti on the screen by touching the screen with a mouse or finger.
[0033] As mentioned in the background technology, the prior art cannot accurately erase a specified graphic. In order to solve the above problem, in a typical embodiment of the present application, a control method, device, computer-readable storage medium and processor for graphic erasure are provided.
[0034] According to an embodiment of the present application, a method for controlling graphic erasure is provided. Figure 1 FIG. 1 is a flow chart of a method for controlling graphic erasure according to an embodiment of the present application. Figure 1 As shown, the method comprises the following steps:
[0035] Step S101, obtaining attribute information of a graphic in a first area, where the first area is at least a part of an area on an interface;
[0036] Step S102, performing a logical operation on at least part of the attribute information to obtain a target attribute combination;
[0037] Step S103, determining at least a portion of the area on the interface as a second area;
[0038] Step S104, deleting the target graphics in the second area according to the target attribute combination, the target graphics being graphics that meet the target attribute combination.
[0039] In the above method, the attribute information of the graphics in the first area is first obtained, and then a logical operation is performed on at least part of the above attribute information to obtain a target attribute combination, and then at least a part of the area on the above interface is determined as the second area, and finally, according to the above target attribute combination, the target graphics in the above second area are deleted, and the above target graphics are graphics that meet the above target attribute combination. In the above scheme, since the attribute information is first logically operated to obtain the target attribute combination, when erasing the graphics, only the graphics whose attribute information meets the target attribute combination can be erased, that is, only the target graphics can be erased, and other graphics on the interface will not be erased by mistake. In this way, the specified graphics can be accurately erased, thereby solving the problem that the specified graphics cannot be accurately erased in the prior art. In this way, when erasing the specified graphics, the user does not need to erase the graphics carefully, which ensures a good user experience.
[0040] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0041] Among them, the attribute information of the graphic includes the characteristic information of the graphic, and the characteristic information of the graphic includes type information, color information and time information. The attribute information can also include user identity information. Of course, the attribute information of the graphic is not limited to the above, and can also include other attribute information of the graphic.
[0042] The interface is a user interaction interface that can receive a user's graffiti instruction and, in response to the graffiti instruction, display a graphic corresponding to the graffiti instruction. The first area is all or part of the area in the interface, and displays a graphic, which is used to extract attribute information from the graphic to combine into a target attribute combination. The second area is all or part of the area in the interface, and displays a graphic to be erased, and the graphic of the graphic to be erased meets the target attribute combination.
[0043] In one embodiment of the present application, obtaining the attribute information of the graphics in the first area includes: receiving a selection operation acting on the first area; in response to the selection operation, obtaining the attribute information of all the graphics in the first area; generating an attribute list, wherein the attribute list includes the attribute information of all the graphics in the first area. In this embodiment, the attribute list can display accurate attribute information, and then the attribute information can be selected according to the attribute list, so that the attribute information can be obtained more accurately, and the interaction with the user is carried out in the form of the attribute list, which further ensures a good user experience.
[0044] It should be noted that, in this embodiment, the selection method of the first area is not limited, and it can be through click selection, box selection, shortcut key selection, etc. In a specific embodiment, an erase mark can be displayed on the interface, and when the user clicks the erase mark, the selection operation of the first area is triggered. For example, if the selection operation is a click operation, the point (coordinates in the interface) or figure acted upon by the click operation is obtained, and the area where the point or figure is located is used as the first area, wherein the click operation can be a single click or multiple clicks; for another example, if the selection operation is a box selection operation, the range determined by the box selection operation is obtained as the first area; for another example, if the selection operation is an input operation of inputting a shortcut key, if the shortcut key is select all, all graphics in the interface are selected, and the area where all graphics are located is determined as the first area.
[0045] It should be noted that the graphics in the interface can be displayed in different layers. For example, if the first graphic overlaps with the second graphic, the first graphic and the second graphic can be displayed in different layers respectively, and the relative positions of the first graphic and the second graphic can be set, such as pinning them to the top. When a selection operation is received, the area in which the selection operation is applied can be used as the first area; the graphics distributed in different layers in the first area can all be set to a selected state; and the attribute information of the graphics set to a selected state can be obtained.
[0046] In one embodiment, when the coordinates of the graphic in the interface are within the range of the first area, the graphic can be determined to be a graphic in the first area, and the graphic can be set to be in a selected state.
[0047] In this embodiment, the logical operation is an operation in logical algebra, including three basic logical operations of AND, OR, and NOT. In this embodiment, the attribute information can be combined into an attribute information set through the three basic logical operations of AND, OR, and NOT. Exemplarily, the target attribute set = all attribute information of the first graphic or all attribute information of the second graphic, wherein the multiple attribute information of the first graphic is in a logical relationship of AND; the multiple attribute information of the second graphic is in a logical relationship of AND, then the target attribute set is used to filter out all the first graphics and the second graphics.
[0048] In another embodiment of the present application, performing a logical operation on at least part of the above attribute information to obtain a target attribute combination includes: receiving a first predetermined operation, wherein the first predetermined operation is an operation of selecting the above attribute information in the above attribute list; in response to the first predetermined operation, determining the above attribute information acted on by the first predetermined operation as the first candidate attribute information; performing a logical operation on the first candidate attribute information to obtain a first candidate attribute combination; receiving a second predetermined operation, wherein the second predetermined operation is an operation of characterizing determination; in response to the second predetermined operation, determining the first candidate attribute combination as the above target attribute combination. In this embodiment, the attribute information can be displayed on the interface in the form of an attribute list, and then the first candidate attribute information can be more accurately determined by the first predetermined operation acting on the attribute list, and then the first candidate attribute information can be logically operated to obtain the first candidate attribute combination, so that the target graphic can be more accurately determined according to the first candidate attribute combination.
[0049] The first predetermined operation is a selection operation acting on the attribute list, and the attribute information in the attribute list may be selected, or the logical relationship between the attribute information may be selected, such as at least one of the three logical relationships of AND, OR, and NOT.
[0050] The second predetermined operation is used to indicate the end of receiving the first predetermined operation, indicating the completion of the selection of the attribute information in the selected attribute list and the determination of the logical relationship.
[0051] It should be noted that the second predetermined operation may be an operation in which the user presses a shortcut key, or moves the mouse away from the attribute list, or an operation in which a button mark is displayed on the interface and the user clicks a button mark.
[0052] In this embodiment, at least part of the attribute information can be selected from the attribute list through a first predetermined operation, and different target attribute combinations can be obtained through arbitrary logical operations on the at least part of the attribute information, thereby deleting target graphics that meet the specified target attribute combination and avoiding deleting graphics other than the target graphics.
[0053] In another embodiment of the present application, after the attribute information affected by the first predetermined operation is determined as the first candidate attribute information in response to the first predetermined operation, the method further includes: matching a candidate graphic in the interface according to the first candidate attribute combination, the candidate graphic being a graphic in the interface that meets the first candidate attribute combination; receiving a third predetermined operation, the third predetermined operation being an operation for selecting the attribute information of the candidate graphic in the attribute list; in response to the third predetermined operation, determining the attribute information affected by the third predetermined operation as the second candidate attribute information; performing a logical operation on the first candidate attribute information and the second candidate attribute information to update the first candidate attribute combination. In this embodiment, the attribute list can be updated according to the candidate graphic. When the candidate graphic is matched, the attribute list can only display the attribute information of the candidate graphic. Then, the third predetermined operation is received to update the first candidate attribute combination. In this way, the target attribute combination can be determined more accurately to ensure that the determined target attribute combination can match the graphic in the interface.
[0054] In another embodiment of the present application, after matching the candidate graphics in the interface according to the first candidate attribute combination, the method further includes: highlighting the candidate graphics. In this embodiment, since the candidate graphics are highlighted, it is more convenient for users to view the candidate graphics.
[0055] Specifically, the candidate graphic can be enlarged, flashed, bolded, or displayed in another interface. Of course, the above are not limited to the above, and those skilled in the art can set a suitable highlighting scheme according to actual needs.
[0056] In a specific embodiment of the present application, the attribute list also includes the graphic identifiers of all the graphics in the first area, and logical operations are performed on at least part of the attribute information to obtain a target attribute combination, and further includes: receiving a fourth predetermined operation, the fourth predetermined operation is an operation to select the graphic identifier in the attribute list; in response to the fourth predetermined operation, the attribute information of the graphic corresponding to the graphic identifier acted on by the fourth predetermined operation is determined as the target attribute information; logical operations are performed on the target attribute information to obtain a second candidate attribute combination; receiving a fifth predetermined operation; in response to the fifth predetermined operation, the second candidate attribute combination is determined as the target attribute combination. Among them, the fifth predetermined operation is used to indicate the end of receiving the fourth predetermined operation, indicating the completion of the selection of the attribute information in the selected attribute list, and the determination of the logical relationship. In this embodiment, the attribute list can display the graphic identifier, and by receiving and responding to the fourth predetermined operation, the attribute information of the graphic corresponding to the graphic identifier acted on by the fourth predetermined operation can be determined as the target attribute information. This embodiment does not need to display the attribute information, and can directly display the graphic identifier, so that the display effect of the graphic is better, so that the user can make a selection conveniently and quickly, and the scheme can determine the target attribute combination more directly and accurately.
[0057] In order to more accurately determine the second area, in another embodiment of the present application, at least part of the area in the above interface is determined as the second area, including: receiving a deletion operation; in response to the above deletion operation, obtaining the effective area of the above deletion operation in the above interface; and determining the above effective area as the above second area. In addition, in this solution, in the process of erasing the graphics, only the target graphics in the second area can be erased, and when the area on the interface is not the second area, the graphics will not be erased, so that it can be further ensured that only the graphics in the specified area can be erased, and other graphics will not be erased by mistake.
[0058] In one embodiment, obtaining the effective area of the above-mentioned deletion operation in the above-mentioned interface includes: determining the trajectory of the above-mentioned deletion operation, and determining the area through which the trajectory passes as the effective area of the above-mentioned deletion operation. For example, an electronic eraser is displayed in the interface, and the deletion operation is a moving operation acting on the electronic eraser; receiving the moving operation acting on the electronic eraser, responding to the moving operation to control the electronic eraser to move on the interface; recording the trajectory of the electronic eraser moving on the interface; and determining the area determined by the size of the electronic eraser difference and the trajectory as the effective area of the moving operation.
[0059] In one embodiment, obtaining the effective area of the deletion operation in the interface includes: determining a closed area formed by the track of the deletion operation in the user interface; and determining the closed area as the second area. For example, the deletion operation is a box selection operation, and the box selection operation is used to determine a closed area in the interface, and the closed area is used as the effective area of the box operation.
[0060] In this embodiment, the specific method for deleting the target graphic in the second area is not limited.
[0061] In one embodiment, when the entire target graphic is within the scope of the second area, the entire target graphic is deleted. When a partial graphic of a target graphic is within the scope of the second area, the partial graphic of the target graphic within the scope of the second area is deleted.
[0062] In another embodiment, when the entire target graphic is within the scope of the second area, the entire target graphic is deleted. When a target graphic has a partial graphic within the scope of the second area, the target graphic is deleted.
[0063] In a specific embodiment, an absorption mark is displayed on the interface, and the absorption mark can be a mark of a dropper tool. When the user clicks the dropper tool and moves it, the dropper tool can be used to absorb the attribute information of the graphic. Of course, it is not limited to the dropper tool, and it can also be any other feasible tool that can be used to absorb attribute information. Those skilled in the art can select any feasible tool for absorbing attribute information.
[0064] In a specific embodiment, Figure 2 , Figure 3 and Figure 4 As shown, the attribute list displays a user identity information mark 11, a graphic type information mark 12, a graphic color information mark 13 and a graphic time information (not shown in the figure), and the attribute list also displays an absorption information mark 14. The attribute information can also be absorbed by the absorption mark 15. Figure 2 The user identity list 1011 corresponding to the user identity information is shown in the figure, a first predetermined operation for selecting the user identity information 1022 in the user identity list 1011 is received, in response to the first predetermined operation, the user identity information 1022 to which the first predetermined operation is applied is determined as the first candidate attribute information, the current first candidate attribute information is AAA, CCC and DDD, a logical operation of OR is performed on the first candidate attribute information to obtain a first candidate attribute combination, the first candidate attribute combination is "the user identity is AAA or the user identity is CCC or the user identity is DDD, and the type information of the graphic, the color information of the graphic and the time information of the graphic are not restricted", and a candidate graphic is matched in the interface according to the first candidate attribute combination, Figure 3 The figure shows a type list 2011 of the graphics corresponding to the candidate graphics, a third predetermined operation for selecting the type information 2022 of the graphics in the type list 2011 of the graphics is received, and in response to the third predetermined operation, the type information 2022 of the graphics acted on by the third predetermined operation is determined as the second candidate attribute information, and the current second candidate attribute information is crayon graffiti, and the first candidate attribute information and the second candidate attribute information are ANDed. The logical operation is performed on the first candidate attribute information and the second candidate attribute information, and the first candidate attribute combination is updated. The updated first candidate attribute combination is "the user identity is AAA or the user identity is CCC or the user identity is DDD, and the type information of the graphics is crayon graffiti, and the color information of the graphics and the time information of the graphics are not restricted", and the candidate graphics are continued to be matched in the interface according to the updated first candidate attribute combination. Figure 4 Shown in the figure is a color list 3011 corresponding to the candidate figure, a third predetermined operation for selecting color information 3022 of the figure in the color list 3011 of the figure is received, and in response to the third predetermined operation, the color information 3022 of the figure acted upon by the third predetermined operation is determined as the second candidate attribute information, and the current second candidate attribute information is #F12545 and #FA2543. The first candidate attribute information and the second candidate attribute information are subjected to an AND logical operation, and the first candidate attribute combination is continuously updated. The updated first candidate attribute combination is "the user identity is AAA or the user identity is CCC or the user identity is DDD, and the type information of the figure is crayon graffiti, and the color information of the figure is #F12545 or the color information of the figure is #FA2543, and the time information of the figure is not restricted".
[0065] In another specific embodiment, the time list of the graphics can also be displayed. After multiple logical operations have been performed and the first candidate attribute combination has been updated, the first candidate attribute combination can be updated again by receiving an operation to select the time information of the candidate graphics in the time list, and then performing a logical operation on the time information of the graphics and the previous candidate attribute information.
[0066] It should be noted that the above-mentioned first predetermined operation, second predetermined operation, third predetermined operation, fourth predetermined operation and fifth predetermined operation can be single-click, double-click, triple-click and long press operations, and can also be other predetermined operations. Technical personnel in this field can select appropriate predetermined operations according to actual conditions.
[0067] In one embodiment, deleting the target graphics in the second area according to the target attribute combination includes: directly clearing all the target graphics in the second area on the interface according to the target attribute information of the target graphics. In this embodiment, there is no need to use an eraser for erasing to erase the target graphics. After determining the target graphics, all the target graphics in the second area on the interface are directly cleared, so that the specified graphics can be erased more simply.
[0068] In a specific embodiment, before obtaining the attribute information of the graphic in the first area, the method further includes: determining whether the user is logged in; and displaying the above interface if it is determined that the user is logged in. In this embodiment, the interface is displayed only if the user is logged in, which further ensures that the user identity information of the graphic can be obtained.
[0069] Of course, if the user is not logged in, and only logs in as a visitor, the interface can also be displayed. In this way, the attribute information obtained is only the characteristic information of the graphic, and the user identity information is not obtained.
[0070] The present application also provides a control device for erasing a graphic. It should be noted that the control device for erasing a graphic in the present application can be used to execute the control method for erasing a graphic provided in the present application. The following is an introduction to the control device for erasing a graphic provided in the present application.
[0071] Figure 5 Schematic diagram of a control device for erasing graphics according to an embodiment of the present application. Figure 5 As shown, the device comprises:
[0072] An acquisition unit 10 is used to acquire attribute information of a graphic in a first area, where the first area is at least a part of an area on an interface;
[0073] A first operation unit 20 is used to perform a logical operation on at least part of the attribute information to obtain a target attribute combination;
[0074] A first determining unit 30, configured to determine at least a portion of the area on the interface as a second area;
[0075] The processing unit 40 is used to delete the target graphics in the second area according to the target attribute combination, where the target graphics are graphics that meet the target attribute combination.
[0076] In the above-mentioned device, the acquisition unit acquires the attribute information of the graphics in the first area, the first operation unit performs a logical operation on at least part of the above-mentioned attribute information to obtain a target attribute combination, the first determination unit determines at least part of the area on the above-mentioned interface as the second area, and the processing unit deletes the target graphics in the above-mentioned second area according to the above-mentioned target attribute combination, and the above-mentioned target graphics are graphics that meet the above-mentioned target attribute combination. In the above-mentioned scheme, since the attribute information is firstly logically operated to obtain the target attribute combination, when erasing the graphics, only the graphics whose attribute information meets the target attribute combination can be erased, that is, only the target graphics can be erased, and other graphics on the interface will not be mistakenly erased. In this way, the specified graphics can be accurately erased, thereby solving the problem that the specified graphics cannot be accurately erased in the prior art. In this way, when the user erases the specified graphics, there is no need to erase the graphics carefully, which ensures a better user experience.
[0077] In one embodiment of the present application, the acquisition unit includes a first receiving module, a first acquisition module and a generation module, the receiving module is used to receive the selection operation acting on the first area; the first acquisition module is used to respond to the selection operation and acquire the attribute information of all graphics in the first area; the generation module is used to generate an attribute list, and the attribute list includes the attribute information of all graphics in the first area. In this embodiment, the attribute list can display accurate attribute information, and then the attribute information can be selected according to the attribute list, so that the attribute information can be acquired more accurately, and the interaction with the user is carried out in the form of the attribute list, which further ensures a good user experience.
[0078] In another embodiment of the present application, the first operation unit includes a second receiving module, a first determining module, a first operation module, a third receiving module and a second determining module, the second receiving module is used to receive a first predetermined operation, the first predetermined operation is an operation of selecting the attribute information in the attribute list; the first determining module is used to determine the attribute information acted on by the first predetermined operation as the first candidate attribute information in response to the first predetermined operation; the first operation module is used to perform a logical operation on the first candidate attribute information to obtain a first candidate attribute combination; the third receiving module is used to receive a second predetermined operation, the second predetermined operation is an operation of characterizing determination; the second determining module is used to determine the first candidate attribute combination as the target attribute combination in response to the second predetermined operation. In this embodiment, the attribute information can be displayed on the interface in the form of an attribute list, and then the first candidate attribute information can be more accurately determined by the first predetermined operation acting on the attribute list, and then the first candidate attribute information can be logically operated to obtain the first candidate attribute combination, so that the target graphic can be more accurately determined according to the first candidate attribute combination.
[0079] In another embodiment of the present application, the device further includes a matching unit, a receiving unit, a second determining unit, and a second operating unit. The matching unit is used to match a candidate graphic in the interface according to the first candidate attribute combination after determining the attribute information of the first predetermined operation as the first candidate attribute information in response to the first predetermined operation. The candidate graphic is a graphic in the interface that meets the first candidate attribute combination. The receiving unit is used to receive a third predetermined operation. The third predetermined operation is an operation to select the attribute information of the candidate graphic in the attribute list. The second determining unit is used to determine the attribute information of the third predetermined operation as the second candidate attribute information in response to the third predetermined operation. The second operating unit is used to perform a logical operation on the first candidate attribute information and the second candidate attribute information to update the first candidate attribute combination. In this embodiment, the attribute list can be updated according to the candidate graphic. When the candidate graphic is matched, the attribute list can only display the attribute information of the candidate graphic. Then, the first candidate attribute combination can be updated by receiving the third predetermined operation, so that the target attribute combination can be determined more accurately.
[0080] In another embodiment of the present application, the device further comprises a display unit for highlighting the candidate graphics after matching the candidate graphics in the interface according to the first candidate attribute combination. In this embodiment, since the candidate graphics are highlighted, it is more convenient for the user to view the candidate graphics.
[0081] In a specific embodiment of the present application, the operation unit further includes a third receiving module, a third determining module, a second operation module, a fourth receiving module and a fourth determining module, the third receiving module is used to receive a fourth predetermined operation, the fourth predetermined operation is an operation of selecting the graphic identifier in the attribute list; the third determining module is used to respond to the fourth predetermined operation, and determine the attribute information of the graphic corresponding to the graphic identifier acted on by the fourth predetermined operation as the target attribute information; the second operation module is used to perform a logical operation on the target attribute information to obtain a second candidate attribute combination; the fourth receiving module is used to receive a fifth predetermined operation; the fourth determining module is used to respond to the fifth predetermined operation and determine the second candidate attribute combination as the target attribute combination. In this embodiment, the attribute list can display the graphic identifier, and by receiving and responding to the fourth predetermined operation, the attribute information of the graphic corresponding to the graphic identifier acted on by the fourth predetermined operation can be determined as the target attribute information. This embodiment does not need to display the attribute information, and can directly display the graphic identifier, so that the display effect of the graphic is better, so that the user can make a selection conveniently and quickly, and this solution can determine the target attribute combination more directly and accurately.
[0082] In order to more accurately determine the second area, in another embodiment of the present application, the first determination module includes a fifth receiving module, a second acquisition module and a fifth determination module, the fifth receiving module is used to receive a deletion operation; the second acquisition module is used to respond to the deletion operation and obtain the effective area of the deletion operation in the interface; the fifth determination module is used to determine the effective area as the second area. In addition, in this solution, in the process of erasing the graphics, only the target graphics in the second area can be erased, and when the area on the interface is not the second area, the graphics will not be erased, so that it can be further ensured that only the graphics in the specified area can be erased, and other graphics will not be erased by mistake.
[0083] The above-mentioned graphic erasing control device includes a processor and a memory. The above-mentioned acquisition unit, first operation unit, first determination unit and processing unit are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.
[0084] The processor includes a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the specified graphics can be erased accurately by adjusting the kernel parameters.
[0085] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0086] An embodiment of the present invention provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the above-mentioned control method for erasing graphics is implemented.
[0087] An embodiment of the present invention provides a processor, and the processor is used to run a program, wherein the control method for graphic erasing is executed when the program is run.
[0088] An embodiment of the present invention provides a device, the device including a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:
[0089] Step S101, obtaining attribute information of a graphic in a first area, where the first area is at least a part of an area on an interface;
[0090] Step S102, performing a logical operation on at least part of the attribute information to obtain a target attribute combination;
[0091] Step S103, determining at least a portion of the area on the interface as a second area;
[0092] Step S104, deleting the target graphics in the second area according to the target attribute combination, the target graphics being graphics that meet the target attribute combination.
[0093] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0094] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:
[0095] Step S101, obtaining attribute information of a graphic in a first area, where the first area is at least a part of an area on an interface;
[0096] Step S102, performing a logical operation on at least part of the attribute information to obtain a target attribute combination;
[0097] Step S103, determining at least a portion of the area on the interface as a second area;
[0098] Step S104, deleting the target graphics in the second area according to the target attribute combination, the target graphics being graphics that meet the target attribute combination.
[0099] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0100] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the above-mentioned units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0101] The units described above 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 units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0102] In addition, each functional unit in each embodiment of the present invention 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.
[0103] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, 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, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0104] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0105] 1) The control method for erasing graphics of the present application first obtains the attribute information of the graphics in the first area, then performs a logical operation on at least part of the above attribute information to obtain a target attribute combination, then determines at least part of the area on the above interface as the second area, and finally deletes the target graphics in the above second area according to the above target attribute combination. The above target graphics are graphics that meet the above target attribute combination. In the above scheme, since the attribute information is firstly logically operated to obtain the target attribute combination, when erasing the graphics, only the graphics whose attribute information meets the target attribute combination can be erased, that is, only the target graphics can be erased, and other graphics on the interface will not be erased by mistake. In this way, the specified graphics can be accurately erased, thereby solving the problem that the specified graphics cannot be accurately erased in the prior art. In this way, when erasing the specified graphics, the user does not need to erase the graphics carefully, which ensures a good user experience.
[0106] 2) In the control device for erasing graphics of the present application, the acquisition unit acquires the attribute information of the graphics in the first area, the first operation unit performs a logical operation on at least part of the attribute information to obtain a target attribute combination, the first determination unit determines at least part of the area on the interface as the second area, and the processing unit deletes the target graphics in the second area according to the target attribute combination, and the target graphics are graphics that meet the target attribute combination. In the above scheme, since the attribute information is first logically operated to obtain the target attribute combination, when erasing the graphics, only the graphics whose attribute information meets the target attribute combination can be erased, that is, only the target graphics can be erased, and other graphics on the interface will not be erased by mistake. In this way, the specified graphics can be accurately erased, thereby solving the problem of the inability to accurately erase the specified graphics in the prior art. In this way, when erasing the specified graphics, the user does not need to erase the graphics carefully, which ensures a good user experience.
[0107] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for controlling graphic erasure, characterized in that: include: receiving a selection operation acting on a first region; In response to the selection operation, acquiring attribute information of all graphics distributed in different layers in the first area, wherein the graphics are traces left by drawing on the screen of the electronic device, and the attribute information includes at least one of the following: user identity information, feature information of the graphics, and the feature information of the graphics includes type information, color information, and time information; Generate an attribute list, the attribute list including the attribute information of all graphics in the first area, the first area being at least a partial area on the interface; Performing a logical operation on at least part of the attribute information to obtain a target attribute combination; determining at least a portion of the area on the interface as a second area; According to the target attribute combination, when part of the target graphic is within the range of the second area, deleting the part of the target graphic within the range of the second area, the target graphic being a graphic that meets the target attribute combination; Wherein, determining at least a partial area of the interface as the second area includes: Receive a delete operation; In response to the deletion operation, obtaining an effective area of the deletion operation in the interface; wherein the deletion operation is a moving operation of a tool for erasing the graphic, and the effective area is an area determined by the size of the tool and the trajectory of the tool moving on the screen of the electronic device; The action area is determined as the second area.
2. The method according to claim 1, characterized in that Performing a logical operation on at least part of the attribute information to obtain a target attribute combination includes: receiving a first predetermined operation, where the first predetermined operation is an operation of selecting the attribute information in the attribute list; In response to the first predetermined operation, determining the attribute information affected by the first predetermined operation as first candidate attribute information; Performing a logical operation on the first candidate attribute information to obtain a first candidate attribute combination; receiving a second predetermined operation, where the second predetermined operation is an operation representing a determination; In response to the second predetermined operation, the first candidate attribute combination is determined as the target attribute combination.
3. The method according to claim 2, characterized in that After, in response to the first predetermined operation, determining the attribute information affected by the first predetermined operation as first candidate attribute information, the method further includes: According to the first candidate attribute combination, a candidate graphic is matched in the interface, where the candidate graphic is a graphic in the interface that meets the first candidate attribute combination; receiving a third predetermined operation, wherein the third predetermined operation is an operation of selecting the attribute information of the candidate graphic in the attribute list; In response to the third predetermined operation, determining the attribute information affected by the third predetermined operation as second candidate attribute information; Perform a logical operation on the first candidate attribute information and the second candidate attribute information to update the first candidate attribute combination.
4. The method according to claim 3, characterized in that After matching candidate graphics in the interface according to the first candidate attribute combination, the method further includes: The candidate graph is highlighted.
5. The method according to claim 1, characterized in that The attribute list also includes graphic identifiers of all graphics in the first area, and performing a logical operation on at least part of the attribute information to obtain a target attribute combination also includes: receiving a fourth predetermined operation, wherein the fourth predetermined operation is an operation of selecting the graphic identifier in the attribute list; In response to the fourth predetermined operation, determining the attribute information of the graphic corresponding to the graphic identifier affected by the fourth predetermined operation as target attribute information; Performing a logical operation on the target attribute information to obtain a second candidate attribute combination; receiving a fifth predetermined operation; In response to the fifth predetermined operation, the second candidate attribute combination is determined as the target attribute combination.
6. A control device for erasing a graphic, characterized in that: include: An acquisition unit, configured to receive a selection operation applied to the first region; In response to the selection operation, acquiring attribute information of all graphics distributed in different layers in the first area, wherein the graphics are traces left by drawing on the screen of the electronic device, and the attribute information includes at least one of the following: user identity information, feature information of the graphics, and the feature information of the graphics includes type information, color information, and time information; generating an attribute list, the attribute list including the attribute information of all graphics in the first area, and the first area is at least a part of the area on the interface; a first operation unit, configured to perform a logic operation on at least part of the attribute information to obtain a target attribute combination; a first determination unit, configured to determine at least part of the area on the interface as the second area; a processing unit, configured to delete the portion of the target graphic within the range of the second area when the portion of the target graphic is within the range of the second area according to the target attribute combination, the target graphic being a graphic that meets the target attribute combination; Wherein, determining at least a partial area of the interface as the second area includes: Receive a delete operation; In response to the deletion operation, obtaining an effective area of the deletion operation in the interface; wherein the deletion operation is a moving operation of a tool for erasing the graphic, and the effective area is an area determined by the size of the tool and the trajectory of the tool moving on the screen of the electronic device; The action area is determined as the second area.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method of any one of claims 1 to 4.
8. A processor, characterized in that: The processor is used to run a program, wherein the program executes the method according to any one of claims 1 to 4 when running.