CN112396553A - Image moving method, device and system and computer readable medium - Google Patents

Image moving method, device and system and computer readable medium Download PDF

Info

Publication number
CN112396553A
CN112396553A CN201910694448.0A CN201910694448A CN112396553A CN 112396553 A CN112396553 A CN 112396553A CN 201910694448 A CN201910694448 A CN 201910694448A CN 112396553 A CN112396553 A CN 112396553A
Authority
CN
China
Prior art keywords
position information
target image
image
target
display layer
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.)
Pending
Application number
CN201910694448.0A
Other languages
Chinese (zh)
Inventor
曹坤玉
宗靖国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Haidong Visual Technology Co ltd
Original Assignee
Beijing Haidong Visual Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Haidong Visual Technology Co ltd filed Critical Beijing Haidong Visual Technology Co ltd
Priority to CN201910694448.0A priority Critical patent/CN112396553A/en
Publication of CN112396553A publication Critical patent/CN112396553A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/30Determination of transform parameters for the alignment of images, i.e. image registration
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes

Abstract

The embodiment of the invention discloses an image moving method, an image moving device, an image moving system and a computer readable medium. The method for example comprises: selecting a target image in a display image layer to obtain initial position information of the target image; determining a target point in the target image to obtain initial position information of the target point; obtaining the relative position information of the target point relative to the target image according to the initial position information of the target image, the initial position information of the target point and the zoom coefficient; moving the target point in the display layer to obtain moving position information of the target point; obtaining real-time position information of the target image according to the moving position information, the zooming coefficient and the relative position information of the target point; and changing the position of the target image in the display layer according to the real-time position information of the target image. The invention can avoid the dislocation phenomenon when the target image moves on the zoom layer.

Description

Image moving method, device and system and computer readable medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to an image moving method, an image moving apparatus, an image moving system, and a computer readable medium.
Background
At present, when a display screen body is projected to a user PC, scaling processing is often required to be performed on a display layer of the PC. Based on the existing scaling processing method, a dislocation phenomenon occurs in the process of moving a target image obtained by projecting a display screen body on a scaling display layer. Therefore, how to solve the dislocation phenomenon in the image moving process becomes an urgent technical problem to be solved.
Disclosure of Invention
Therefore, embodiments of the present invention provide an image moving method, an image moving apparatus, an image moving system, and a computer readable medium to solve the deficiencies in the prior art.
Specifically, in a first aspect, an embodiment of the present invention provides an image moving method, including: responding to a first operation of a user, and selecting a target image in a display image layer to obtain initial position information of the target image; determining a target point in the target image to obtain initial position information of the target point; obtaining the relative position information of the target point relative to the target image according to the initial position information of the target image, the initial position information of the target point and the zoom coefficient; responding to a second operation of a user, and moving the target point in the display layer to obtain moving position information of the target point; obtaining real-time position information of the target image according to the moving position information, the zooming coefficient and the relative position information of the target point; and changing the position of the target image in the display layer according to the real-time position information of the target image.
In the prior art, in the process of moving a target image on a display layer by using a mouse, position information of the mouse is different between a zoomed display layer and a non-zoomed display layer, so that a dislocation phenomenon is easily caused in the process of moving the target image by dragging the mouse, that is, the moving speed of the mouse is not matched with the moving speed of the target image, so that the target image is moved too fast or too slow and cannot reach a specified position. According to the image moving method provided by the embodiment of the invention, the relative position information of the target point relative to the target image is obtained according to the initial position information of the target image, the initial position information of the target point and the zoom coefficient, and the real-time position information of the target image is obtained according to the moving position information of the target point, the zoom coefficient and the relative position information, so that the target image is moved, the dislocation phenomenon of the target image when the target image moves on the zoomed display image layer can be avoided, the mouse dragging effect is better realized, and the user experience is improved.
In one embodiment of the invention, the first operation comprises: mouse click operation or button trigger operation on the target image.
In an embodiment of the present invention, before the responding to the first operation of the user, the method further includes: and carrying out scaling processing on the display layer, and taking the scaling multiple of the display layer as the scaling coefficient.
In an embodiment of the present invention, before obtaining the relative position information of the target point with respect to the target image according to the initial position information of the target image, the initial position information of the target point, and the zoom factor, the method further includes: judging whether the display layer is subjected to scaling treatment or not; when the display layer is judged not to be subjected to scaling processing, setting the scaling coefficient to be 1; and when the display layer is judged to be subjected to scaling processing, taking the scaling multiple of the display layer as the scaling coefficient.
In one embodiment of the invention, the second operation comprises a mouse drag operation.
In an embodiment of the present invention, before the changing the position of the target image in the display layer according to the real-time position information of the target image, the method further includes: judging whether the abscissa in the real-time position information of the target image is smaller than zero; when the abscissa in the real-time position information of the target image is judged to be less than zero, setting the abscissa of the target image to be zero; judging whether the abscissa of the target image is larger than the length difference between the display layer and the target image; when the abscissa of the target image is judged to be larger than the length difference value between the display layer and the target image, setting the abscissa of the target image as the length difference value; judging whether the ordinate in the real-time position information of the target image is smaller than zero; when the ordinate in the real-time position information of the target image is judged to be less than zero, setting the ordinate of the target image to be zero; judging whether the vertical coordinate of the target image is larger than the width difference value between the display layer and the target image or not; and when the vertical coordinate of the target image is judged to be larger than the width difference value between the display layer and the target image, setting the vertical coordinate of the target image as the width difference value.
In a second aspect, an embodiment of the present invention provides an image moving apparatus, including: the image selection module is used for responding to a first operation of a user and selecting a target image in a display image layer to obtain initial position information of the target image; the target point determining module is used for determining a target point in the target image to obtain initial position information of the target point; a relative position obtaining module, configured to obtain, according to initial position information of the target image, initial position information of the target point, and a zoom coefficient, relative position information of the target point with respect to the target image; the target point moving module is used for responding to a second operation of a user and moving the target point in the display layer to obtain moving position information of the target point; a real-time position obtaining module, configured to obtain real-time position information of the target image according to the moving position information, the zoom factor, and the relative position information of the target point; and the position changing module is used for changing the position of the target image in the display layer according to the real-time position information of the target image.
In the prior art, in the process of moving the target image dragged by the mouse on the display layer, the position information of the mouse is different between the zoomed display layer and the non-zoomed display layer, so that a dislocation phenomenon is easily caused in the process of moving the target image dragged by the mouse. The image moving device provided by the embodiment of the invention obtains the relative position information of the target point relative to the target image according to the initial position information of the target image, the initial position information of the target point and the zoom coefficient, and obtains the real-time position information of the target image according to the moving position information of the target point, the zoom coefficient and the relative position information to move the target image, so that the dislocation phenomenon of the target image when the target image moves on the zoomed display image layer can be avoided, the mouse dragging effect can be better realized, and the user experience can be improved.
In an embodiment of the present invention, the image moving apparatus further includes: the scaling judgment module is used for judging whether the display layer is scaled or not; when the display layer is judged not to be subjected to scaling processing, setting the scaling coefficient to be 1; and when the display layer is judged to be subjected to scaling processing, taking the scaling multiple of the display layer as the scaling coefficient.
In a third aspect, an embodiment of the present invention provides an image moving system, including a processor and a memory connected to the processor; wherein the memory stores instructions for execution by the processor and which cause the processor to perform operations to perform the image moving method of any preceding claim.
In a fourth aspect, an embodiment of the present invention provides a computer-readable medium, which stores computer-readable instructions including instructions for executing the image moving method according to any one of the foregoing descriptions.
As can be seen from the above, the embodiments of the present invention can achieve one or more of the following advantages: the relative position information of the target point relative to the target image is obtained according to the initial position information of the target image, the initial position information of the target point and the zoom coefficient, and the real-time position information of the target image is obtained according to the moving position information of the target point, the zoom coefficient and the relative position information to move the target image, so that the dislocation phenomenon of the target image when the target image moves on a zoomed display image layer can be avoided, the mouse dragging effect is better realized, and the user experience is improved.
Other aspects and features of the present invention will become apparent from the following detailed description, which proceeds with reference to the accompanying drawings. It is to be understood, however, that the drawings are designed solely for purposes of illustration and not as a definition of the limits of the invention. It should be further understood that the drawings are not necessarily drawn to scale and that, unless otherwise indicated, they are merely intended to conceptually illustrate the structures and procedures described herein.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a flowchart illustrating an image shifting method according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating movement of a target image according to an embodiment of an image moving method according to a first embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an image moving apparatus according to a second embodiment of the present invention;
FIG. 4 is a schematic structural diagram of an image shifting system according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer-readable medium according to a fourth embodiment of the present invention.
[ description of reference ]
S11-S16: moving the image;
20: an image moving device; 21: an image selection module; 22: a target point determination module; 23: a relative position acquisition module; 24: a target point moving module; 25: a real-time location acquisition module; 26: a position change module;
30: an image moving system; 31: a processor; 32: memory device
40: a computer readable medium.
Detailed Description
It should be noted that the embodiments and features of the embodiments may be combined with each other in the present document without conflict. The invention will be described in connection with embodiments with reference to the drawings.
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the present embodiment will be clearly and completely described below with reference to the drawings in the present embodiment, and it is obvious that the described embodiment is only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the division of the embodiments of the present invention is only for convenience of description and should not be construed as a limitation, and features of various embodiments may be combined and referred to each other without contradiction.
[ first embodiment ] A method for manufacturing a semiconductor device
Referring to fig. 1, a first embodiment of the present invention proposes an image moving method. As shown in fig. 1, the image moving method includes, for example, steps S11 to S16.
Step S11: responding to a first operation of a user, and selecting a target image in a display image layer to obtain initial position information of the target image;
step S12: determining a target point in the target image to obtain initial position information of the target point;
step S13: obtaining the relative position information of the target point relative to the target image according to the initial position information of the target image, the initial position information of the target point and the zoom coefficient;
step S14: responding to a second operation of a user, and moving the target point in the display layer to obtain moving position information of the target point;
step S15: obtaining real-time position information of the target image according to the moving position information, the zooming coefficient and the relative position information of the target point;
step S16: and changing the position of the target image in the display layer according to the real-time position information of the target image.
Specifically, in step S11, the first operation mentioned is, for example, a mouse click operation or a button trigger operation on the target image. The initial position information of the target image is, for example, a position coordinate obtained by using the upper left corner point of the target image as a position point and according to the distance from the position point to the starting point of the display layer.
In step S12, the mentioned target point is located in the target image, and when the mouse is clicked within the target image, the corresponding click point is the target point. The mentioned initial position information of the target point is, for example, a position coordinate of the target point from a starting point of the display layer.
In step S13, the scaling factor is, for example, a scaling multiple of the display layer. The mentioned relative position information is, for example, the relative position coordinates of the target point with respect to the position point of the target image. Where the location point is for example the top left corner of the target image.
In step S14, the second operation mentioned includes, for example, a mouse drag operation. The mentioned moving position information of the target point is, for example, a position coordinate of the target point relative to a starting point of the display layer.
The real-time position information mentioned in step S15 is the position coordinates of the target image with respect to the starting point of the display layer.
Further, before step S11, the image shifting method according to the embodiment of the present invention further includes, for example: and carrying out scaling processing on the display layer, and taking the scaling multiple of the display layer as a scaling coefficient. The display layer that is not subjected to the scaling processing is, for example, 100% displayed, and the scaling processing is, for example, 25% displayed, 50% displayed, 75% displayed, 125% displayed, 150% displayed, or the like on the display layer. When the display layer is scaled, the corresponding length and width of the display layer are correspondingly changed, that is, the movable range of the target image is changed.
Further, before step S13, the image shifting method provided in this embodiment further includes, for example: and judging whether the display layer is subjected to scaling treatment or not, setting the scaling coefficient to be 1 when judging that the display layer is not subjected to scaling treatment, and taking the scaling multiple of the display layer as the scaling coefficient when judging that the display layer is subjected to scaling treatment. By judging whether the display layer is zoomed or not, the zoom coefficient is set, so that the effect that the target image moves on the display layer which is not zoomed is the same as the effect that the target image moves on the display layer which is zoomed, and the dislocation phenomenon caused when the target image moves on the display layer which is zoomed is avoided.
Further, before step S16, the image shifting method provided in this embodiment further includes, for example: judging whether the abscissa in the real-time position information of the target image is smaller than zero; when the abscissa in the real-time position information of the target image is judged to be less than zero, setting the abscissa of the target image to be zero; judging whether the abscissa of the target image is larger than the length difference between the display layer and the target image; when the abscissa of the target image is judged to be larger than the length difference value between the display layer and the target image, setting the abscissa of the target image as the length difference value; judging whether the ordinate in the real-time position information of the target image is smaller than zero; when the ordinate in the real-time position information of the target image is judged to be less than zero, setting the ordinate of the target image to be zero; judging whether the vertical coordinate of the target image is larger than the width difference value between the display layer and the target image or not; and when the vertical coordinate of the target image is judged to be larger than the width difference value between the display layer and the target image, setting the vertical coordinate of the target image as the width difference value. Whether the target image is in the limited range of the display layer or not is judged, so that the target image is guaranteed to move in the limited range of the display layer, and errors are avoided.
For better understanding of the embodiment, the image moving method provided by the embodiment of the present invention is described in detail below with reference to fig. 2. As shown in fig. 2, a large rectangular frame represents a display layer, and a small rectangular frame with diagonal lines inside represents a target image projected by a display screen body onto the display layer. Wherein the small rectangular frame on the left represents the position before the movement of the target image and the small rectangular frame on the right represents the position after the movement of the target image.
Specifically, the display layer is scaled, and the scaling multiple of the display layer is recorded as a scaling coefficient.
And selecting a target image on the display layer subjected to the zooming processing by the user by using a mouse, namely clicking a small rectangular box, wherein the target image is selected on the display layer at the moment, the point B represents a position point of the target image, and the coordinates (Xb, Yb) of the point B relative to the starting point A of the display layer are used as initial position information of the target image.
And clicking the target point in the target image by the user by using a mouse to determine the target point, namely clicking the small rectangular frame by the user to obtain a C point as the target point, and taking the coordinates (Xc, Yc) from the C point to the A point as the initial position information of the target point. It should be noted that the mouse click operations involved in the two steps may be combined into one mouse click operation, that is, after the mouse is clicked inside the small rectangular frame, the initial position information of the target image and the initial position information of the target point are obtained at the same time.
And judging whether the current display layer is zoomed or not, and if not, setting the zoom coefficient to be 1. At this time, the display layer is scaled, and the aforementioned scaling factor is used as the scaling factor multiple for the subsequent calculation.
Relative position information (X1, Y1) of the target point with respect to the target image is obtained from the initial position information (Xb, Yb) of the target image, the initial position information (Xc, Yc) of the target point, and the zoom factor multiple.
Specifically, X1 ═ Xc/multiple-Xb; y1 ═ Yc/multiple-Yb.
And dragging the target point in the display layer by using a mouse to realize the movement of the target point by the user, and obtaining the movement position information (Xc ', Yc') of the target point.
Obtaining real-time position information (Xb ', Yb') of the target image from the movement position information (Xc ', Yc'), the zoom factor multiple, and the relative position information (X1, Y1) of the target point.
Specifically, Xb '═ Xc'/multiple-X1; Yb'/multiple-Y1.
And then judging whether the real-time position information exceeds the display range of the display layer. In particular, the amount of the solvent to be used,
and judging whether the abscissa Xb ' in the real-time position information of the target image is smaller than zero, and setting Xb ' to be zero when the judgment result shows that Xb ' is smaller than zero.
And judging whether Xb ' is larger than the length difference (LeftMax-Width) between the display layer and the target image, and setting Xb ' to be (LeftMax-Width) when the Xb ' is judged to be larger than the (LeftMax-Width).
And judging whether the ordinate Yb ' in the real-time position information of the target image is smaller than zero, and setting Yb ' to be zero when the ordinate Yb ' is judged to be smaller than zero.
And judging whether Yb ' is larger than the width difference (TopMax-Height) between the display layer and the target image, and setting Yb ' as (TopMax-Height) when judging that Yb ' is larger than (TopMax-Height).
And finally, changing the position of the target image in the display layer according to the real-time position information of the target image.
In summary, in the image moving method provided in this embodiment, the relative position information of the target point with respect to the target image is obtained according to the initial position information of the target image, the initial position information of the target point, and the zoom coefficient, and the real-time position information of the target image is obtained according to the moving position information of the target point, the zoom coefficient, and the relative position information to move the target image, so that a dislocation phenomenon occurring when the target image moves on the zoomed display image layer can be avoided, a mouse dragging effect can be better achieved, and user experience can be improved.
[ second embodiment ]
Referring to fig. 3, a second embodiment of the present invention provides an image moving apparatus 20. As shown in fig. 3, the image moving device 20 includes, for example, an image selecting module 21, a target point determining module 22, a relative position acquiring module 23, a target point moving module 24, a real-time position acquiring module 25, and a position changing module 26.
The image selecting module 21 is configured to respond to a first operation of a user, and select a target image in a display image layer to obtain initial position information of the target image. The target point determining module 22 is configured to determine a target point in the target image, and obtain initial position information of the target point. The relative position obtaining module 23 is configured to obtain the relative position information of the target point with respect to the target image according to the initial position information of the target image, the initial position information of the target point, and the zoom factor. The target point moving module 24 is configured to respond to a second operation of the user, and move the target point in the display layer to obtain moving position information of the target point. The real-time position obtaining module 25 is configured to obtain real-time position information of the target image according to the moving position information, the zoom factor, and the relative position information of the target point. The position changing module 26 is configured to change a position of the target image in the display layer according to the real-time position information of the target image.
Further, the image moving apparatus 20 provided in this embodiment further includes, for example, a scaling determining module (not shown in the figure) for determining whether the display layer is scaled; when the display layer is judged not to be subjected to scaling processing, setting the layer scaling coefficient to be 1; and when the display layer is judged to be subjected to scaling processing, taking the scaling coefficient of the display layer as the layer scaling coefficient.
The image moving method implemented by the image moving apparatus 20 of the present embodiment is as described in the first embodiment, and therefore, will not be described in detail herein. Optionally, each module and the other operations or functions in the second embodiment are respectively for implementing the method in the first embodiment of the present invention, and are not described herein for brevity.
In summary, the image moving apparatus provided in this embodiment obtains the relative position information of the target point with respect to the target image according to the initial position information of the target image, the initial position information of the target point, and the zoom factor, and obtains the real-time position information of the target image according to the moving position information of the target point, the zoom factor, and the relative position information to move the target image, so that a misalignment phenomenon occurring when the target image moves on the zoomed display image layer can be avoided, a mouse dragging effect can be better achieved, and user experience can be improved.
[ third embodiment ]
As shown in fig. 4, a third embodiment of the present invention provides an image moving system 30. The image shifting system 30 includes a processor 31 and a memory 32 connected to the processor 31; wherein the memory 32 stores instructions for execution by the processor 31 and which cause the processor 31 to perform operations for performing the image moving method as described in the first embodiment. For example, the processor 31 performs the following operations:
(a) responding to a first operation of a user, and selecting a target image in a display image layer to obtain initial position information of the target image;
(b) determining a target point in the target image to obtain initial position information of the target point;
(c) obtaining the relative position information of the target point relative to the target image according to the initial position information of the target image, the initial position information of the target point and the zoom coefficient;
(d) responding to a second operation of a user, and moving the target point in the display layer to obtain moving position information of the target point;
(e) obtaining real-time position information of the target image according to the moving position information, the zooming coefficient and the relative position information of the target point;
(f) and changing the position of the target image in the display layer according to the real-time position information of the target image.
The steps of the image shifting method performed by the image shifting system 30 according to the present embodiment according to the instructions executed by the processor are as described in the first embodiment, and therefore, will not be described in detail herein. Optionally, the image moving system 30 in this embodiment is not described herein for brevity in order to implement the method in the first embodiment of the present invention. The technical effect of the image shifting system 30 provided in this embodiment is the same as that of the image shifting method in the first embodiment, and is not described herein again.
[ fourth example ] A
Referring to fig. 5, a fourth embodiment of the present invention proposes a computer-readable medium, and the computer-readable medium 50 stores computer-readable instructions including, for example, instructions for executing the image moving method according to the first embodiment. For example, the computer readable instructions execute the following instructions:
(a) responding to a first operation of a user, and selecting a target image in a display image layer to obtain initial position information of the target image;
(b) determining a target point in the target image to obtain initial position information of the target point;
(c) obtaining the relative position information of the target point relative to the target image according to the initial position information of the target image, the initial position information of the target point and the zoom coefficient;
(d) responding to a second operation of a user, and moving the target point in the display layer to obtain moving position information of the target point;
(e) obtaining real-time position information of the target image according to the moving position information, the zooming coefficient and the relative position information of the target point;
(f) and changing the position of the target image in the display layer according to the real-time position information of the target image.
The image moving method executed by the computer readable instructions of the computer readable medium 40 provided in this embodiment is as described in the first embodiment, and therefore, will not be described in detail herein. Optionally, the computer-readable medium 40 in this embodiment is not described herein for brevity in order to implement the method in the first embodiment of the present invention. The technical effect of the computer-readable medium 40 provided in this embodiment is the same as that of the image moving method in the first embodiment, and is not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and/or method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and the actual implementation may have another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Although the present invention has been described with reference to a preferred embodiment, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. An image moving method, comprising:
responding to a first operation of a user, and selecting a target image in a display image layer to obtain initial position information of the target image;
determining a target point in the target image to obtain initial position information of the target point;
obtaining the relative position information of the target point relative to the target image according to the initial position information of the target image, the initial position information of the target point and the zoom coefficient;
responding to a second operation of a user, and moving the target point in the display layer to obtain moving position information of the target point;
obtaining real-time position information of the target image according to the moving position information, the zooming coefficient and the relative position information of the target point;
and changing the position of the target image in the display layer according to the real-time position information of the target image.
2. The image shifting method of claim 1, wherein the first operation comprises: mouse click operation or button trigger operation on the target image.
3. The image shifting method according to claim 1, further comprising, before the responding to the first operation by the user:
and carrying out scaling processing on the display layer, and taking the scaling multiple of the display layer as the scaling coefficient.
4. The image moving method according to claim 1, wherein before the obtaining of the relative position information of the target point with respect to the target image based on the initial position information of the target image, the initial position information of the target point, and the zoom factor, further comprises:
judging whether the display layer is subjected to scaling treatment or not;
when the display layer is judged not to be subjected to scaling processing, setting the scaling coefficient to be 1;
and when the display layer is judged to be subjected to scaling processing, taking the scaling multiple of the display layer as the scaling coefficient.
5. The image moving method according to claim 1, wherein the second operation includes a mouse drag operation.
6. The image moving method according to claim 1, further comprising, before the changing the position of the target image in the display layer according to the real-time position information of the target image:
judging whether the abscissa in the real-time position information of the target image is smaller than zero;
when the abscissa in the real-time position information of the target image is judged to be less than zero, setting the abscissa of the target image to be zero;
judging whether the abscissa of the target image is larger than the length difference between the display layer and the target image;
when the abscissa of the target image is judged to be larger than the length difference value between the display layer and the target image, setting the abscissa of the target image as the length difference value;
judging whether the ordinate in the real-time position information of the target image is smaller than zero;
when the ordinate in the real-time position information of the target image is judged to be less than zero, setting the ordinate of the target image to be zero;
judging whether the vertical coordinate of the target image is larger than the width difference value between the display layer and the target image or not;
and when the vertical coordinate of the target image is judged to be larger than the width difference value between the display layer and the target image, setting the vertical coordinate of the target image as the width difference value.
7. An image moving apparatus, comprising:
the image selection module is used for responding to a first operation of a user and selecting a target image in a display image layer to obtain initial position information of the target image;
the target point determining module is used for determining a target point in the target image to obtain initial position information of the target point;
a relative position obtaining module, configured to obtain, according to initial position information of the target image, initial position information of the target point, and a zoom coefficient, relative position information of the target point with respect to the target image;
the target point moving module is used for responding to a second operation of a user and moving the target point in the display layer to obtain moving position information of the target point;
a real-time position obtaining module, configured to obtain real-time position information of the target image according to the moving position information, the zoom factor, and the relative position information of the target point;
and the position changing module is used for changing the position of the target image in the display layer according to the real-time position information of the target image.
8. The image moving apparatus according to claim 7, further comprising:
the scaling judgment module is used for judging whether the display layer is scaled or not; when the display layer is judged not to be subjected to scaling processing, setting the scaling coefficient to be 1; and when the display layer is judged to be subjected to scaling processing, taking the scaling multiple of the display layer as the scaling coefficient.
9. An image moving system, comprising: a processor and a memory coupled to the processor; wherein the memory stores instructions for execution by the processor and the instructions cause the processor to perform operations to perform the image moving method of any of claims 1-6.
10. A computer-readable medium storing computer-readable instructions, the computer-readable instructions comprising instructions for performing the image moving method of any one of claims 1 to 6.
CN201910694448.0A 2019-07-30 2019-07-30 Image moving method, device and system and computer readable medium Pending CN112396553A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910694448.0A CN112396553A (en) 2019-07-30 2019-07-30 Image moving method, device and system and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910694448.0A CN112396553A (en) 2019-07-30 2019-07-30 Image moving method, device and system and computer readable medium

Publications (1)

Publication Number Publication Date
CN112396553A true CN112396553A (en) 2021-02-23

Family

ID=74601164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910694448.0A Pending CN112396553A (en) 2019-07-30 2019-07-30 Image moving method, device and system and computer readable medium

Country Status (1)

Country Link
CN (1) CN112396553A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130100162A1 (en) * 2011-10-21 2013-04-25 Furuno Electric Co., Ltd. Method, program and device for displaying screen image
CN103645871A (en) * 2013-12-06 2014-03-19 四川九洲电器集团有限责任公司 Method and system for dynamically displaying local area image
CN105635832A (en) * 2014-11-10 2016-06-01 阿里巴巴集团控股有限公司 Video processing method and device
CN105955624A (en) * 2016-06-12 2016-09-21 福建天泉教育科技有限公司 Key area amplification display method and system
CN107526479A (en) * 2017-09-20 2017-12-29 浙江大华技术股份有限公司 A kind of display methods of the environment parameter of sensor collection, apparatus and system
CN107580204A (en) * 2017-09-12 2018-01-12 中广热点云科技有限公司 Realize the projecting method of automatic adjusument
CN108389155A (en) * 2018-03-20 2018-08-10 北京奇虎科技有限公司 Image processing method, device and electronic equipment
CN109254760A (en) * 2018-09-06 2019-01-22 北京酷我科技有限公司 A kind of method of picture scaling
CN109358797A (en) * 2018-12-22 2019-02-19 武汉兴图新科电子股份有限公司 A kind of method of D mouse scaling translation bitmap

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130100162A1 (en) * 2011-10-21 2013-04-25 Furuno Electric Co., Ltd. Method, program and device for displaying screen image
CN103645871A (en) * 2013-12-06 2014-03-19 四川九洲电器集团有限责任公司 Method and system for dynamically displaying local area image
CN105635832A (en) * 2014-11-10 2016-06-01 阿里巴巴集团控股有限公司 Video processing method and device
CN105955624A (en) * 2016-06-12 2016-09-21 福建天泉教育科技有限公司 Key area amplification display method and system
CN107580204A (en) * 2017-09-12 2018-01-12 中广热点云科技有限公司 Realize the projecting method of automatic adjusument
CN107526479A (en) * 2017-09-20 2017-12-29 浙江大华技术股份有限公司 A kind of display methods of the environment parameter of sensor collection, apparatus and system
CN108389155A (en) * 2018-03-20 2018-08-10 北京奇虎科技有限公司 Image processing method, device and electronic equipment
CN109254760A (en) * 2018-09-06 2019-01-22 北京酷我科技有限公司 A kind of method of picture scaling
CN109358797A (en) * 2018-12-22 2019-02-19 武汉兴图新科电子股份有限公司 A kind of method of D mouse scaling translation bitmap

Similar Documents

Publication Publication Date Title
US11199942B2 (en) Method and system for sorting desktop objects
JP6304787B2 (en) Method and terminal for opening a file in a folder
JP5581292B2 (en) SEARCH DEVICE, SEARCH METHOD, RECORDING MEDIUM, AND PROGRAM
CN107798715B (en) Alignment adsorption method and device for three-dimensional graph, computer equipment and storage medium
EP2887191A1 (en) Picture display processing method and device
EP2521025B1 (en) Component display processing method and user device
US10466877B2 (en) Method and device for selecting entity in drawing
CN104349045A (en) Image collecting method and electronic equipment
WO2021243788A1 (en) Screenshot method and apparatus
CN104808959B (en) Information processing method and electronic equipment
CN105094534A (en) Method and device for window display switching of intelligent hand-held equipment
CN105159500A (en) Pressure display method and apparatus for touch screen
CN112540713B (en) Video preview progress bar scaling method, system, device and storage medium
CN103218035B (en) A kind of gesture input method and electronic equipment
JP6366267B2 (en) Information processing apparatus, information processing method, program, and storage medium
CN112396553A (en) Image moving method, device and system and computer readable medium
JP5834253B2 (en) Image processing apparatus, image processing method, and image processing program
US20150281585A1 (en) Apparatus Responsive To At Least Zoom-In User Input, A Method And A Computer Program
CN114356264B (en) Signal generation method, device, equipment and readable storage medium
US10474409B2 (en) Response control method and electronic device
CN112446904B (en) Image alignment method, device and system
CN111273802A (en) Method for moving object on screen and touch display device
CN106951162B (en) Information processing method and electronic equipment
CN104516646A (en) Method and device for relating image to button
AU2019205000B2 (en) Component display processing method and user equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination