Disclosure of Invention
The embodiment of the application provides a method and a device for positioning a picture and electronic equipment, and can solve the problems that the picture position is moved in the picture processing process, and the operation steps are complicated.
A first aspect of embodiments of the present application provides a method for picture positioning,
acquiring at least one picture to be combined, and combining the at least one picture into a combined picture according to a preset combined picture frame on a picture editing interface;
receiving an instruction for modifying the display state of the at least one picture;
responding to the instruction for modifying the display state of the at least one picture, and modifying the display state of the at least one picture in a preset combined picture frame of the picture editing interface according to the instruction;
receiving a first touch operation for moving the at least one picture, wherein the first touch operation is used for combining adsorption positioning areas in a single picture frame in the picture frames;
and responding to the first touch operation, and adsorbing and positioning the at least one picture to an adsorption positioning area for performing the first touch operation.
Preferably, the adsorption positioning region includes: nine areas are arranged in the single picture frame in the left upper part, the upper right part, the right upper part, the right lower part, the lower left part, the left part and the middle part.
Preferably, the first touch operation includes any one of the following operations: double-click operation of the adsorption positioning area, long-press operation of the adsorption positioning area, and heavy-press operation of the adsorption positioning area.
Preferably, the suction positioning region further includes a middle line between two or more adjacent picture frames in the combined picture frame or a middle point of intersection between two or more picture frames in the combined picture frame or a border line in the combined picture frame.
Preferably, a second touch operation performed on a middle line between two or more adjacent picture frames in the combined picture frame is received;
and responding to a middle line between two or more adjacent picture frames in the combined picture frame to perform a second touch operation, and positioning pictures in the two or more picture frames in the combined picture frame in an adsorption manner at the position of the middle line.
Preferably, a third touch operation performed on an intermediate point where two or more picture frames intersect in the combined picture frame is received;
and responding to a third touch operation carried out on an intersection middle point between two or more picture frames in the combined picture frame, and adsorbing and positioning the pictures in the two or more picture frames in the combined picture frame at the middle point position.
Preferably, a fourth touch operation performed on any position of a frame line of any single picture frame in the combined picture frame is received;
responding to a fourth touch operation carried out on any position of a frame line of any single picture frame in the combined picture frame, and enabling pictures in any single picture frame to be adsorbed and positioned at the position of the frame line carrying out the touch operation.
A second aspect of the embodiments of the present application provides an apparatus for positioning a picture, including:
the combination module is used for acquiring at least one picture to be combined and combining the at least one picture into a combined picture according to a preset combined picture frame on a picture editing interface;
the first receiving module is used for receiving an instruction for modifying the display state of the at least one picture;
the first response module is used for responding to the instruction for modifying the display state of the at least one picture and modifying the display state of the at least one picture according to the instruction in a preset combined picture frame of the picture editing interface;
a second receiving module, configured to receive a first touch operation for moving the at least one picture, where the first touch operation is used to combine adsorption positioning areas in a single picture frame in the picture frames;
and the second response module is used for responding to the first touch operation and positioning the at least one picture to an adsorption positioning area for performing the first touch operation.
The adsorption positioning area includes: nine areas are arranged on the left upper part, the upper right part, the right upper part, the right lower right part, the lower left part, the left part and the middle of the single picture frame.
The first touch operation includes any one of the following operations: double-click operation of the adsorption positioning area, long-press operation of the adsorption positioning area, and heavy-press operation of the adsorption positioning area.
The adsorption positioning area also comprises a middle line between two or more adjacent picture frames in the combined picture frame or a middle point of intersection between two or more picture frames in the combined picture frame or a frame line in the combined picture frame.
The second receiving module is further used for receiving second touch operation performed on a middle line between two or more adjacent picture frames in the combined picture frame;
and the second response module is further used for responding to a second touch operation performed on a middle line between two or more adjacent picture frames in the combined picture frame, and positioning the pictures in the two or more picture frames in the combined picture frame in an adsorption manner at the position of the middle line.
The second receiving module is further used for receiving a third touch operation performed on an intersection intermediate point between two or more picture frames in the combined picture frame;
and the second response module is also used for responding to a third touch operation performed at an intersection middle point between two or more picture frames in the combined picture frame, and adsorbing and positioning the pictures in the two or more picture frames in the combined picture frame at the middle point position.
The second receiving module is further used for receiving a fourth touch operation performed on any position of a frame line in any single picture frame in the combined picture frame;
and the second response module is further used for responding to a fourth touch operation performed at any position of a frame line in any single picture frame in the combined picture frame, and pictures in any single picture frame are positioned at the position of the frame line for performing the touch operation in an adsorption manner.
A third aspect of the embodiments of the present application provides an electronic device, including: the device comprises a shell, a processor, a memory, a circuit board and a power circuit, wherein the circuit board is arranged in a space enclosed by the shell, and the processor and the memory are arranged on the circuit board; a power supply circuit for supplying power to each circuit or device of the electronic apparatus; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing the following operations: acquiring at least one picture to be combined, and combining the at least one picture into a combined picture according to a preset combined picture frame on a picture editing interface; receiving an instruction for modifying the display state of the at least one picture;
responding to the instruction for modifying the display state of the at least one picture, and modifying the display state of the at least one picture in a preset combined picture frame of the picture editing interface according to the instruction;
receiving a first touch operation for moving the at least one picture, wherein the first touch operation is used for combining adsorption positioning areas in a single picture frame in the picture frames;
and responding to the first touch operation, and adsorbing and positioning the at least one picture to an adsorption positioning area for performing the first touch operation.
A fourth aspect of embodiments of the present application provides a storage medium: the method is used for storing an application program, and the application program is used for executing the picture positioning method provided by the embodiment of the application program.
A fifth aspect of the present application provides an application program, configured to execute the method for positioning a picture provided in the embodiment of the present invention.
The beneficial effect of this application is as follows:
the embodiment of the application provides a method, a device and electronic equipment for positioning pictures, which are used for acquiring at least one picture to be combined and combining the at least one picture into a combined picture according to a preset picture frame on a picture editing interface; receiving an instruction for modifying the display state of the at least one picture; responding to the instruction for modifying the display state of the at least one picture, and modifying the display state of the at least one picture in a preset picture frame of the picture editing interface according to the instruction; receiving a first touch operation for moving the at least one picture, wherein the first touch operation is used for adsorbing a positioning area in the picture frame; responding to the first touch operation, sucking and positioning the at least one picture to a sucking and positioning area for performing the touch operation, and quickly modifying the position positioning of a single picture or a plurality of pictures through the form of the touch operation.
Detailed Description
In order to make the technical solutions and advantages of the present application more apparent, the following further detailed description of the exemplary embodiments of the present application with reference to the accompanying drawings makes it clear that the described embodiments are only a part of the embodiments of the present application, and not an exhaustive list of all embodiments. And the embodiments and features of the embodiments in the present specification may be combined with each other without conflict.
Fig. 1 is a schematic flowchart of a picture positioning method according to an embodiment of the present application, and as shown in fig. 1, the picture positioning method may include the following steps:
step 101: acquiring at least one picture to be combined, and combining the at least one picture into a combined picture according to a preset combined picture frame on a picture editing interface;
FIG. 1a is a diagram of four pictures, which are combined in a predetermined combined picture frame.
Step 102: receiving an instruction for modifying the display state of the at least one picture;
step 103: responding to the instruction for modifying the display state of the at least one picture, and modifying the display state of the at least one picture in a preset combined picture frame of the picture editing interface according to the instruction;
FIG. 1b receives an instruction to zoom one of the pictures and responds to the instruction.
Step 104: receiving a first touch operation for moving the at least one picture, wherein the first touch operation is used for adsorbing and positioning areas in a single picture frame in the combined picture frame;
step 105: and responding to the first touch operation, and adsorbing and positioning the at least one picture to an adsorption positioning area for performing the first touch operation.
Taking the double-click operation as an example,
FIG. 1c is a diagram for receiving an instruction of double-clicking the middle position in the picture frame of the selected picture, and automatically positioning the picture adsorption at the middle position of the picture frame;
FIG. 1d is a diagram for receiving an instruction of double-clicking the upper left position in the picture frame of the selected picture by the user, and automatically positioning the picture at the upper left position of the picture frame in an adsorption manner;
FIG. 1f is a diagram for receiving a right position instruction in a picture frame of a double-click selected picture, and automatically positioning the picture at the right position of the picture frame in an adsorption manner;
and (3) double-clicking any position of the nine adsorption positioning areas shown in the figure 1e, and automatically adsorbing and positioning the picture at the position of the double-clicked adsorption positioning area.
Wherein, fig. 1e shows that the adsorption positioning region comprises nine regions in total, including upper left, upper right, lower left, and middle.
The first touch operation includes a "double-click" operation, a "long-press" operation, a "screen pressure sensing" operation, and the like, and the present invention is not limited to the above three touch operations.
The second picture positioning method in the embodiment of the application may include the following steps:
step 201: FIG. 2a is a diagram of four pictures to form a picture combination in a preset combined picture frame;
step 202: FIG. 2b receives an instruction to zoom one of the pictures and responds to the instruction;
step 203: receiving double-click operation for moving the picture, and responding to the touch operation;
the touch control operation includes a "double-click" operation, a "long-press" operation, a "screen pressure sensing" operation, and the like, and the present invention is not limited to the above three touch control operations.
Taking the double-click operation as an example,
the finger double-clicks any position of the frame line shown in fig. 2c and 2d, the picture positioning standard is not limited to the nine areas of the first embodiment, and is specifically positioned at the position where the cross line of the picture intersects with the point, and the picture is adsorbed on the line along with the movement of the finger while not leaving the finger, and can be adsorbed on the whole frame line in a circulating manner.
The method for positioning the three pictures in the embodiment of the application can comprise the following steps:
step 301: FIG. 3a is a diagram of four pictures to form a picture combination in a preset combined picture frame;
step 302: FIG. 3b receives an instruction to zoom one of the pictures and responds to the instruction;
step 303: receiving touch operation for moving the picture, and responding to the touch operation;
the touch control operation includes a "double-click" operation, a "long-press" operation, a "screen pressure sensing" operation, and the like, and the present invention is not limited to the above three touch control operations.
Taking the double-click operation as an example,
the finger double-clicks the positions a or B of the adjacent middle lines in the two picture frames as shown in fig. 3c and 3d, the picture positioning standard is not limited to the nine areas in the first embodiment, and specifically, the two pictures in the adjacent picture frames are adsorbed at the positions of the adjacent middle lines, when the finger double-clicks the positions a or B of the adjacent middle lines, and when the finger double-clicks the positions a or B of the.
The method for positioning the four pictures in the embodiment of the application can comprise the following steps:
step 401: FIG. 4a is a diagram of four pictures to form a picture combination in a preset combined picture frame;
step 402: FIG. 4b receives an instruction to zoom one of the pictures and responds to the instruction;
step 403: receiving touch operation for moving the picture, and responding to the touch operation;
the touch control operation includes a "double-click" operation, a "long-press" operation, a "screen pressure sensing" operation, and the like, and the present invention is not limited to the above three touch control operations.
Taking the double-click operation as an example,
double-clicking the position C of the adjacent middle point in the picture frame as shown in fig. 4C, the picture positioning criteria are not limited to the nine areas in the first embodiment, and simultaneously affect the pictures in 1, 2 and 3, so as to simultaneously position the pictures in the three picture frames at the position C by suction.
Fig. 5 is a schematic view of a picture positioning apparatus according to a fifth embodiment of the present application, and as shown in fig. 5, the picture positioning apparatus may include:
the combination module 501 is configured to obtain at least one picture that needs to be combined, and combine the at least one picture into a combined picture according to a preset combined picture frame on a picture editing interface;
a first receiving module 502, configured to receive an instruction to modify a display state of the at least one picture;
a first response module 503, configured to respond to the instruction for modifying the display state of the at least one picture, and modify the display state of the at least one picture according to the instruction in a preset combined picture frame of the picture editing interface;
a second receiving module 504, configured to receive a first touch operation for moving the at least one picture, where the first touch operation is used to combine absorption positioning areas in a single picture frame in the picture frames;
a second response module 505, configured to respond to the first touch operation, and perform suction positioning on the at least one picture to a suction positioning area where the first touch operation is performed.
The adsorption positioning area includes: nine areas are arranged on the left upper part, the upper right part, the right upper part, the right lower right part, the lower left part, the left part and the middle of the single picture frame.
The first touch operation includes any one of the following operations: double-click operation of the adsorption positioning area, long-press operation of the adsorption positioning area, and heavy-press operation of the adsorption positioning area.
The adsorption positioning area also comprises a middle line between two or more adjacent picture frames in the combined picture frame or a middle point of intersection between the two or more picture frames in the combined picture frame or a frame line in the combined picture frame.
A second receiving module 504, configured to receive a second touch operation performed on a middle line between two or more adjacent picture frames in the combined picture frame;
the second responding module 505 is further configured to respond to a second touch operation performed on a middle line between two or more adjacent picture frames in the combined picture frame, and position the picture in the two or more picture frames in the combined picture frame to be sucked at the middle line position.
A second receiving module 504, configured to receive a third touch operation performed on an intermediate point where two or more picture frames in the combined picture frame intersect;
the second response module 505 is further configured to respond to a third touch operation performed at an intermediate point where two or more picture frames in the combined picture frame intersect, and position, in an adsorption manner, pictures in the two or more picture frames in the combined picture frame at the intermediate point.
A second receiving module 504, configured to receive a fourth touch operation performed on any position of a frame line of any single picture frame in the combined picture frame;
the second responding module 505 is further configured to respond to a fourth touch operation performed at any position of a border line of any single picture frame in the combined picture frame, where a picture in the any single picture frame is to be positioned in a position of the border line where the fourth touch operation is performed by suction.
Fig. 6 is a schematic view of an electronic device according to a sixth embodiment of the present application, and as shown in fig. 6, an electronic device includes: the electronic device comprises a shell 601, a processor 602, a memory 603, a circuit board 604 and a power supply circuit 605, wherein the circuit board 604 is arranged inside a space surrounded by the shell 601, and the processor 602 and the memory 603 are arranged on the circuit board 604; a power supply circuit 605 for supplying power to each circuit or device of the electronic apparatus; the memory 603 is used for storing executable program code; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing the following operations:
acquiring at least one picture to be combined, and combining the at least one picture into a combined picture according to a preset combined picture frame on a picture editing interface; receiving an instruction for modifying the display state of the at least one picture; responding to the instruction for modifying the display state of the at least one picture, and modifying the display state of the at least one picture in a preset combined picture frame of the picture editing interface according to the instruction; receiving a first touch operation for moving the at least one picture, wherein the first touch operation is used for combining adsorption positioning areas in a single picture frame in the picture frames; and responding to the first touch operation, and adsorbing and positioning the at least one picture to an adsorption positioning area for performing the first touch operation.
The embodiment of the application also provides an application program used for executing the method for positioning the picture provided by the embodiment of the invention.
The application program can be run in the electronic device provided by the embodiment of the application program.
The embodiment of the application also provides a storage medium: the method is used for storing an application program, and the application program is used for executing the picture positioning method provided by the embodiment of the application program.
The rapid picture positioning method can be applied to the picture processing process of mobile phones, tablet computers and other intelligent mobile devices of android, WP, Saiban and IOS systems, and can also be applied to the picture processing process of a PC
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.