CN106020651B - Picture display control method and system based on touch - Google Patents
Picture display control method and system based on touch Download PDFInfo
- Publication number
- CN106020651B CN106020651B CN201610586059.2A CN201610586059A CN106020651B CN 106020651 B CN106020651 B CN 106020651B CN 201610586059 A CN201610586059 A CN 201610586059A CN 106020651 B CN106020651 B CN 106020651B
- Authority
- CN
- China
- Prior art keywords
- touch points
- picture
- touch
- distance
- size
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2203/00—Indexing scheme relating to G06F3/00 - G06F3/048
- G06F2203/048—Indexing scheme relating to G06F3/048
- G06F2203/04808—Several contacts: gestures triggering a specific function, e.g. scrolling, zooming, right-click, when the user establishes several contacts with the surface simultaneously; e.g. using several fingers or a combination of fingers and pen
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Position Input By Displaying (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a picture display control method and a picture display control system based on touch, wherein the method comprises the following steps: step A, when a picture is opened, the mobile terminal judges whether the size of the opened picture exceeds a preset value or not, and enters step B when the size of the opened picture exceeds the preset value; step B, acquiring the number of touch points of a user on the touch screen, entering step C if the number of the touch points is three, and otherwise, continuously detecting the number of the touch points until the number of the touch points is three; c, acquiring coordinates of the three touch points, and calculating the distance between the three touch points; and forming a triangle by the three touch points, wherein the height of the picture on the vertex corresponding to the longest edge is taken as the moving direction of the picture, and the high line length is the moving distance of the picture per second. The invention enables the user to achieve the effects of accurate directivity and moving distance for the large-size photos through simpler touch screen operation, saves labor in operation, improves the operation efficiency for the large-size photos and is convenient for the user to use.
Description
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a picture display control method and system based on touch.
Background
At present, a mobile terminal generally adopts a camera function with high definition and large pixel size, so that the size of a shot photo is often large, such as 1600 ten thousand pixels and even 2000 ten thousand pixels, and the large-size photo generally needs a large display of tens of inches to be completely displayed in one screen; the mobile terminal screen obviously has difficulty in integrally displaying the photos with the large size, and the photos can only be loaded in the memory and then the photo content is displayed by the display screen part; the user needs to drag the picture to various directions continuously to display the images at different positions in the picture on the display screen. For a user, the operation is less directional, and the dragging distance is qualitative, so that the operation accuracy is poor, the touch screen needs to be dragged ceaselessly in the operation action, and once the operation times are more and the process is long, the operation efficiency is influenced.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The present invention provides a method and a system for controlling image display based on touch, aiming at the above-mentioned defects in the prior art. The invention enables a user to achieve the effects of accurate directivity and moving distance for large-size photos through simpler touch screen operation, and meanwhile, the operation is labor-saving, thereby improving the operation efficiency for the large-size photos and facilitating the use of the user.
The technical scheme adopted by the invention for solving the technical problem is as follows:
a picture display control method based on touch comprises the following steps:
step A, when a picture is opened, the mobile terminal judges whether the size of the opened picture exceeds a preset value or not, and enters step B when the size of the opened picture exceeds the preset value;
step B, acquiring the number of touch points of a user on the touch screen, entering step C if the number of the touch points is three, and otherwise, continuously detecting the number of the touch points until the number of the touch points is three;
c, acquiring coordinates of the three touch points, and calculating the distance between the three touch points; and forming a triangle by the three touch points, wherein the height of the picture on the vertex corresponding to the longest edge is taken as the moving direction of the picture, and the high line length is the moving distance of the picture per second.
The touch-based picture display control method, wherein the step B specifically includes:
b1, judging the size of the picture opened by the user, and entering B2 if the size of the opened picture is judged to exceed a preset value; otherwise, quitting;
b2, acquiring the number of touch points of the user on the touch screen, entering S30 if the number of touch points is three, otherwise, continuously detecting the number of touch points until the number of touch points is three.
The picture display control method based on touch is characterized in that the preset value is 800 ten thousand pixels.
The touch-based picture display control method, wherein the step C specifically includes:
c1, acquiring the number of touch points of the user on the touch screen in real time, and entering C2 if the number is three; otherwise go to C1;
c2, acquiring coordinates of the three touch points, and calculating the distance between the three touch points;
c3, forming a triangle by the three touch points, wherein the picture takes the height of the vertex corresponding to the longest edge as the picture moving direction, and the high line length is the moving distance of the picture per second.
The touch-based picture display control method, wherein in the step C2, the method of calculating the distance between the touch points is as follows:
assuming that the coordinates of two touch points are (x0, y0), (x1, y1), the distance between the two touch points is
The touch-based picture display control method, wherein the step C3 includes:
c31, comparing the three sides of the triangle formed by the three touch points to obtain the coordinates of the two touch points on the longest side;
c32, setting the two touch points with the longest side as H1 and H2, and setting the equation for determining a straight line by the two touch points as f (x) ═ kx + b;
c33, and then obtaining the altitude equation f1 (x): the slope of f1(x) is-1/k, and the touch point (set as H3) except the two touch points on the longest side is additionally eliminated on f1(x), so that the coordinates of H3 are substituted into f1(x) to be solved into a linear equation of f1 (x);
c34, obtaining a linear equation f (x) where the longest side of the triangle formed by the three touch points is located and a high line equation f1(x) on the longest side; the intersection point of the two straight lines obtained from f (x) and f1(x) is H4, so that the picture moving direction is H4 pointing to H3, and the moving distance per second is the distance between H4 and H1.
The touch-based picture display control method, wherein the step C3 further includes:
and C35, detecting the change of the number of the touch points in the picture moving process, and stopping moving the picture if detecting that the number of the touch points is not three.
A touch-based picture display control system, comprising:
the picture size judging module is used for judging whether the size of the opened picture exceeds a preset value or not by the mobile terminal when the picture is opened;
the touch point acquisition module is used for acquiring the number of touch points of a user on the touch screen when the mobile terminal judges that the size of the opened picture exceeds a preset value, acquiring the coordinates of three touch points if the number of the touch points is three, and otherwise, continuously detecting the number of the touch points until the number of the touch points is three;
the mobile control module is used for controlling and acquiring coordinates of the three touch points and calculating the distance between the three touch points; and forming a triangle by the three touch points, wherein the height of the picture on the vertex corresponding to the longest edge is taken as the moving direction of the picture, and the high line length is the moving distance of the picture per second.
The touch-based picture display control system, wherein the touch point acquisition module comprises:
the judging unit is used for judging the size of the photo opened by the user;
the first acquisition unit is used for acquiring the number of touch points of a user on the touch screen when the size of the opened picture is judged to exceed a preset value;
the predetermined value is 800 ten thousand pixels.
The touch-based picture display control system, wherein the movement control module comprises:
the first acquisition unit is used for acquiring the number of touch points of a user on the touch screen in real time;
the acquisition and calculation unit is used for acquiring the coordinates of the three touch points and calculating the distance between the three touch points;
the movement control unit is used for controlling the three touch points to form a triangle, the height of the picture on the vertex corresponding to the longest edge is taken as the moving direction of the picture, and the high line length is the moving distance of the picture per second;
distance calculation unitFor assuming that the coordinates of two touch points are (x0, y0), (x1, y1), the distance between the two touch points is
The comparison and acquisition unit is used for comparing three sides of a triangle formed by three touch points to acquire coordinates of two touch points on the longest side;
the straight line processing unit is used for setting two touch points with the longest edge as H1 and H2, and setting an equation of determining a straight line by the two touch points as f (x) -kx + b;
a calculation processing unit for obtaining an altitude equation f1 (x): the slope of f1(x) is-1/k, and the touch point (set as H3) except the two touch points on the longest side is additionally eliminated on f1(x), so that the coordinates of H3 are substituted into f1(x) to be solved into a linear equation of f1 (x);
the calculation unit is used for obtaining a linear equation f (x) where the longest side of the triangle formed by the three touch points is located and a high line equation f1(x) on the longest side; setting the intersection point of two straight lines obtained from f (x) and f1(x) as H4, so as to obtain that the picture moving direction is H4 points to H3, and the moving distance per second is the distance between H4 and H1;
and the detection control unit is used for still detecting the change of the number of the touch points in the picture moving process, and stopping moving the picture if the number of the touch points is not three.
According to the method and the system for controlling the picture display based on touch, provided by the invention, when a user opens a large-size picture, the number of touch points of the user on a touch screen is acquired; when the number is three, coordinates of the three touch points are obtained, and the distance between the three touch points is calculated; and forming a triangle by the three touch points, wherein the height of the picture on the vertex corresponding to the longest edge is taken as the moving direction of the picture, and the high line length is the moving distance of the picture per second. The effect that the user has accurate directionality, migration distance to the jumbo size photo is reached through comparatively simple touch-sensitive screen operation to make the user, the operation is also comparatively laborsaving simultaneously to promote the operating efficiency to the jumbo size photo, convenience of customers uses.
Drawings
FIG. 1 is a flowchart illustrating a touch-based picture display control method according to a first preferred embodiment of the present invention.
Fig. 2 is a schematic diagram of a triangle structure formed by three touch points according to a first preferred embodiment of the touch-based picture display control method of the present invention.
FIG. 3 is a flowchart illustrating a touch-based picture display control method according to a second preferred embodiment of the present invention.
FIG. 4 is a functional block diagram of a preferred embodiment of the touch-based picture display control system of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a touch-based picture display control method according to a first preferred embodiment of the present invention. As shown in fig. 1, the method for controlling display of a picture based on touch according to a first preferred embodiment of the present invention includes the following steps:
s10, when the picture is opened, the mobile terminal judges whether the size of the opened picture exceeds a preset value, and when the size of the opened picture exceeds the preset value, the step S20 is executed.
In the embodiment of the invention, when a picture is opened, whether the opened picture is a large picture needs to be judged, namely, the mobile terminal judges whether the size of the opened picture exceeds a preset value, and when the size of the opened picture exceeds a preset value (for example, 800 ten thousand pixels), the size of the opened picture is considered to be a large-size picture; for example, a large-sized photograph is considered when the photograph size is greater than 800 ten thousand pixels. I.e. the predetermined value is preferably 800 ten thousand pixels in the present invention.
S20, when the mobile terminal judges that the size of the opened picture exceeds a preset value, acquiring the number of touch points of a user on the touch screen; the change in the number of touch points is detected, and the process proceeds to S30 when the number of touch points is three.
Wherein, the step S20 specifically includes:
s1, judging the size of the photo opened by the user, and entering S2 if the size of the opened photo is judged to be over a preset value (800 ten thousand pixels, namely the currently opened photo is judged to be a large-size photo); otherwise, exiting.
S2, acquiring the number of touch points of the user on the touch screen, entering S30 if the number of the touch points is three, and otherwise, continuously detecting the number of the touch points until the number of the touch points is three;
wherein, the step S1 is executed according to the prior art method when the user opens the photo not in the large size; the judgment criterion for the large-size photo can be set by the manufacturer of the mobile terminal or by the user, for example, the photo is considered to be the large-size photo when the size of the photo is larger than 800 ten thousand pixels.
S30, acquiring coordinates of the three touch points, and calculating the distance between the three touch points; and forming a triangle by the three touch points, wherein the height of the picture on the vertex corresponding to the longest edge is taken as the moving direction of the picture, and the high line length is the moving distance of the picture per second.
Wherein, the step S30 specifically includes:
c1, acquiring the number of touch points of the user on the touch screen in real time, and entering C2 if the number is three; otherwise go to C1;
c2, acquiring coordinates of the three touch points, and calculating the distance between the three touch points;
c3, forming a triangle by the three touch points, wherein the height of the picture at the vertex corresponding to the longest edge is taken as the moving direction of the picture, and the high linear length is the moving distance of the picture per second;
in step C2, the method for calculating the distance between the touch points is as follows: assuming that the coordinates of two touch points are (x0, y0), (x1, y1), the distance between the two touch points is
First, comparing three sides of a triangle formed by three touch points to obtain coordinates of two touch points on the longest side, and setting an equation that two touch points where the longest side is located are H1 and H2 and a straight line is determined by the two touch points as f (x) ═ kx + b as shown in fig. 2; then, an altitude equation f1(x) is obtained: the slope of f1(x) is-1/k, and the touch point (set as H3) excluding the two touch points on the longest side is also on f1(x), so the linear equation of f1(x) is solved by substituting the coordinates of H3 into f1 (x); to this end, the equation f (x) of the straight line of the longest side of the triangle formed by the three touch points and the equation f1(x) of the high line of the longest side are obtained; the intersection point of the two straight lines obtained from f (x) and f1(x) is H4, so that the picture moving direction is H4 pointing to H3, and the moving distance per second is the distance between H4 and H1.
In the step C3, the change of the number of the touch points is still detected during the moving of the picture, and if the number of the touch points is not three, the moving of the picture is stopped, and then the process returns to the step C1.
The invention is explained in more detail below by means of a specific application example:
referring to fig. 3, fig. 3 is a flowchart illustrating a touch-based picture display control method according to a second preferred embodiment of the present invention, and as shown in fig. 3, the touch-based picture display control method according to the second preferred embodiment of the present invention includes the following steps:
s100, judging the size of the photo opened by the user, and entering S200 if the size is large;
in the embodiment of the invention, when a picture is opened, whether the opened picture is a large picture needs to be judged, that is, the mobile terminal judges whether the size of the opened picture exceeds a preset value, and when the size of the opened picture exceeds a preset value (for example, 800 ten thousand pixels), the size of the opened picture is considered to be a large-size picture.
S200, detecting touch screen operation, acquiring the number of touch points, entering S300 if the number of the touch points is three, and continuing to execute S200 if the number of the touch points is not three;
s300, calculating the moving direction and speed of the picture according to the coordinates of the three touch points;
wherein, the step S300 specifically includes: firstly, comparing three sides of a triangle formed by three touch points, as shown in fig. 3, obtaining coordinates of two touch points on the longest side, setting the two touch points where the longest side is located as H1, and setting an equation of determining a straight line as f (x) -kx + b by using the two touch points as H2; then, an altitude equation f1(x) is obtained: the slope of f1(x) is-1/k, and the touch point (set as H3) except the two touch points on the longest side is also on f1(x), so the linear equation of f1(x) is solved by substituting the coordinates of H3 into f1 (x); to this end, the equation f (x) of the straight line of the longest side of the triangle formed by the three touch points and the equation f1(x) of the high line of the longest side are obtained; setting the intersection point of two straight lines obtained from f (x) and f1(x) as H4, so as to obtain that the picture moving direction is H4 points to H3, and the moving distance per second is the distance between H4 and H1;
among them, the mentioned method of calculating the distance between touch points is as follows: assuming that the coordinates of two touch points are (x0, y0), (x1, y1), the distance between the two touch points is
Therefore, the touch-based picture display control method provided by the embodiment of the invention enables a user to achieve the effects of accurate directivity and moving distance of a large-size picture through simple touch screen operation, and meanwhile, the operation is labor-saving, so that the operation efficiency of the large-size picture is improved, and the use by the user is facilitated.
Based on the above method embodiment, the present invention further provides a touch-based picture display control system, as shown in fig. 4, the system includes:
the picture size judging module 210 is configured to, when a picture is opened, judge whether the size of the opened picture exceeds a predetermined value by the mobile terminal; as described above.
The touch point obtaining module 220 is configured to obtain the number of touch points of the user on the touch screen when the mobile terminal determines that the size of the opened picture exceeds a predetermined value, obtain coordinates of three touch points if the number of the touch points is three, and otherwise, continue to detect the number of the touch points until the number of the touch points is three; as described above.
The movement control module 230 is configured to control to obtain coordinates of the three touch points and calculate distances between the three touch points; the three touch points form a triangle, the height of the picture on the vertex corresponding to the longest edge is taken as the moving direction of the picture, and the high line length is the moving distance of the picture per second; as described above.
Further, the touch-based picture display control system, wherein the touch point acquisition module comprises:
the judging unit is used for judging the size of the photo opened by the user; as described above.
The first acquisition unit is used for acquiring the number of touch points of a user on the touch screen when the size of the opened picture is judged to exceed a preset value; as described above.
The predetermined value is 800 ten thousand pixels.
The touch-based picture display control system, wherein the movement control module comprises:
the first acquisition unit is used for acquiring the number of touch points of a user on the touch screen in real time; as described above.
The acquisition and calculation unit is used for acquiring the coordinates of the three touch points and calculating the distance between the three touch points; as described above.
The movement control unit is used for controlling the three touch points to form a triangle, the height of the picture on the vertex corresponding to the longest edge is taken as the moving direction of the picture, and the high line length is the moving distance of the picture per second; as described above.
A distance calculating unit for assuming that the coordinates of the two touch points are (x0, y0), (x1, y1), and the distance between the two touch points isAs described above.
The comparison and acquisition unit is used for comparing three sides of a triangle formed by three touch points to acquire coordinates of two touch points on the longest side; as described above.
The straight line processing unit is used for setting two touch points with the longest edge as H1 and H2, and setting an equation of determining a straight line by the two touch points as f (x) -kx + b; as described above.
A calculation processing unit for obtaining an altitude equation f1 (x): the slope of f1(x) is-1/k, and the touch point (set as H3) except the two touch points on the longest side is additionally eliminated on f1(x), so that the coordinates of H3 are substituted into f1(x) to be solved into a linear equation of f1 (x); as described above.
The calculation unit is used for obtaining a linear equation f (x) where the longest side of the triangle formed by the three touch points is located and a high line equation f1(x) on the longest side; setting the intersection point of two straight lines obtained from f (x) and f1(x) as H4, so as to obtain that the picture moving direction is H4 points to H3, and the moving distance per second is the distance between H4 and H1; as described above.
The detection control unit is used for still detecting the change of the number of the touch points in the picture moving process, and stopping moving the picture if the number of the touch points is not three; as described above.
In summary, according to the method and the system for controlling display of the picture based on touch provided by the invention, when a user opens a large-size picture, the number of touch points of the user on the touch screen is acquired; when the number is three, coordinates of the three touch points are obtained, and the distance between the three touch points is calculated; and forming a triangle by the three touch points, wherein the height of the picture on the vertex corresponding to the longest edge is taken as the moving direction of the picture, and the high line length is the moving distance of the picture per second. The effect that the user has accurate directionality, migration distance to the jumbo size photo is reached through comparatively simple touch-sensitive screen operation to make the user, the operation is also comparatively laborsaving simultaneously to promote the operating efficiency to the jumbo size photo, convenience of customers uses.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program instructing relevant hardware (such as a processor, a controller, etc.), and the program may be stored in a computer readable storage medium, and when executed, the program may include the processes of the above method embodiments. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.
Claims (6)
1. A picture display control method based on touch is characterized by comprising the following steps:
step A, when a picture is opened, the mobile terminal judges whether the size of the opened picture exceeds a preset value or not, and enters step B when the size of the opened picture exceeds the preset value;
step B, acquiring the number of touch points of a user on the touch screen, entering step C if the number of the touch points is three, and otherwise, continuously detecting the number of the touch points until the number of the touch points is three;
the step C specifically comprises the following steps:
c1, acquiring the number of touch points of the user on the touch screen in real time, and entering C2 if the number is three; otherwise go to C1;
c2, acquiring coordinates of the three touch points, and calculating the distance between the three touch points;
c31, comparing the three sides of the triangle formed by the three touch points to obtain the coordinates of the two touch points on the longest side;
c32, setting the two touch points with the longest side as H1 and H2, and setting the equation for determining a straight line by the two touch points as f (x) ═ kx + b;
c33, and then obtaining the altitude equation f1 (x): the slope of f1(x) is-1/k, and in addition, the touch point H3 excluding the two touch points on the longest side is eliminated on f1(x), so that the coordinates of H3 are substituted into f1(x) to obtain a linear equation of f1 (x);
c34, obtaining a linear equation f (x) where the longest side of the triangle formed by the three touch points is located and a high line equation f1(x) on the longest side; the intersection point of the two straight lines obtained from f (x) and f1(x) is H4, so that the picture moving direction is H4 pointing to H3, and the moving distance per second is the distance between H4 and H1.
2. The touch-based picture display control method according to claim 1, wherein the predetermined value is 800 ten thousand pixels.
4. The touch-based picture display control method according to claim 1, wherein the step C further comprises:
and C35, detecting the change of the number of the touch points in the picture moving process, and stopping moving the picture if detecting that the number of the touch points is not three.
5. A touch-based picture display control system, comprising:
the picture size judging module is used for judging whether the size of the opened picture exceeds a preset value or not by the mobile terminal when the picture is opened;
the touch point acquisition module is used for acquiring the number of touch points of a user on the touch screen when the mobile terminal judges that the size of the opened picture exceeds a preset value, acquiring the coordinates of three touch points if the number of the touch points is three, and otherwise, continuously detecting the number of the touch points until the number of the touch points is three;
a mobile control module;
the movement control module includes:
the first acquisition unit is used for acquiring the number of touch points of a user on the touch screen in real time;
the acquisition and calculation unit is used for acquiring the coordinates of the three touch points and calculating the distance between the three touch points;
the movement control unit is used for controlling the three touch points to form a triangle, the height of the picture on the vertex corresponding to the longest edge is taken as the moving direction of the picture, and the high line length is the moving distance of the picture per second;
a distance calculating unit for assuming that the coordinates of the two touch points are (x0, y0), (x1, y1) and the distance between the two touch points is
The comparison and acquisition unit is used for comparing three sides of a triangle formed by three touch points to acquire coordinates of two touch points on the longest side;
the straight line processing unit is used for setting two touch points with the longest edge as H1 and H2, and setting an equation of determining a straight line by the two touch points as f (x) -kx + b;
a calculation processing unit for obtaining an altitude equation f1 (x): the slope of f1(x) is-1/k, and in addition, the touch point H3 excluding the two touch points on the longest side is eliminated on f1(x), so that the coordinates of H3 are substituted into f1(x) to obtain a linear equation of f1 (x);
the calculation unit is used for obtaining a linear equation f (x) where the longest side of the triangle formed by the three touch points is located and a high line equation f1(x) on the longest side; setting the intersection point of two straight lines obtained from f (x) and f1(x) as H4, so as to obtain that the picture moving direction is H4 points to H3, and the moving distance per second is the distance between H4 and H1;
and the detection control unit is used for still detecting the change of the number of the touch points in the picture moving process, and stopping moving the picture if the number of the touch points is not three.
6. The touch-based picture display control system according to claim 5, wherein the touch point acquisition module comprises:
the judging unit is used for judging the size of the photo opened by the user;
the second acquisition unit is used for acquiring the number of touch points of a user on the touch screen when the size of the opened picture is judged to exceed a preset value;
the predetermined value is 800 ten thousand pixels.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610586059.2A CN106020651B (en) | 2016-07-22 | 2016-07-22 | Picture display control method and system based on touch |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610586059.2A CN106020651B (en) | 2016-07-22 | 2016-07-22 | Picture display control method and system based on touch |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106020651A CN106020651A (en) | 2016-10-12 |
CN106020651B true CN106020651B (en) | 2020-06-09 |
Family
ID=57116438
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610586059.2A Active CN106020651B (en) | 2016-07-22 | 2016-07-22 | Picture display control method and system based on touch |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106020651B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109669613B (en) * | 2018-12-21 | 2023-07-18 | Tcl移动通信科技(宁波)有限公司 | Mobile terminal fingerprint movement control processing method, mobile terminal and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101739199A (en) * | 2008-11-05 | 2010-06-16 | 联想(北京)有限公司 | Mobile terminal and method for displaying images |
CN105511788A (en) * | 2015-12-08 | 2016-04-20 | 惠州Tcl移动通信有限公司 | Image enlarging and displaying method and system for mobile terminal |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030222977A1 (en) * | 2002-06-03 | 2003-12-04 | Kazutora Yoshino | Intelligent system and 3D virtual object generator |
KR101058612B1 (en) * | 2009-12-28 | 2011-08-22 | 박원주 | Color correction method of image using multi-touch touch screen |
-
2016
- 2016-07-22 CN CN201610586059.2A patent/CN106020651B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101739199A (en) * | 2008-11-05 | 2010-06-16 | 联想(北京)有限公司 | Mobile terminal and method for displaying images |
CN105511788A (en) * | 2015-12-08 | 2016-04-20 | 惠州Tcl移动通信有限公司 | Image enlarging and displaying method and system for mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN106020651A (en) | 2016-10-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11170210B2 (en) | Gesture identification, control, and neural network training methods and apparatuses, and electronic devices | |
US20180232135A1 (en) | Method for window displaying on a mobile terminal and mobile terminal | |
WO2014166127A1 (en) | Image capturing method, apparatus, and electronic device | |
US20130271667A1 (en) | Video processing apparatus and video processing method | |
US9880721B2 (en) | Information processing device, non-transitory computer-readable recording medium storing an information processing program, and information processing method | |
CN105929954B (en) | It is a kind of control cursor method and device, display equipment | |
US8896692B2 (en) | Apparatus, system, and method of image processing, and recording medium storing image processing control program | |
WO2019128495A1 (en) | Method and apparatus for detecting image resolution, storage medium, and electronic device | |
US20160188282A1 (en) | Image Receiving Apparatus and Method Thereof for Determining an Orientation of a Screen of an Electronic Apparatus | |
CN112416206A (en) | Display window adjusting method, device, electronic device and storage medium | |
CN110866497A (en) | Robot positioning and image building method and device based on dotted line feature fusion | |
CN112367592A (en) | Directional display method and device for audio equipment and audio equipment | |
CN105654531B (en) | Method and device for drawing image contour | |
CN111914693A (en) | Face posture adjusting method, system, device, equipment and medium | |
CN108197596A (en) | A kind of gesture identification method and device | |
CN109785444A (en) | Recognition methods, device and the mobile terminal of real plane in image | |
CN106020651B (en) | Picture display control method and system based on touch | |
JP6229554B2 (en) | Detection apparatus and detection method | |
CN113763458B (en) | Method and device for determining placement surface of target object | |
JP6872660B1 (en) | Information processing equipment and programs | |
WO2017211108A1 (en) | Display method and device | |
JP2016167128A (en) | Information processing apparatus, information processing method, and program | |
CN115984268B (en) | Target detection method and device based on machine vision, electronic equipment and medium | |
CN118488329A (en) | Pixel dead pixel correction method and device, electronic equipment and storage medium | |
CN112286430B (en) | Image processing method, apparatus, device and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |