A kind of method and device of transmission picture relevant information
Technical field
The present invention relates to Internet technical field, more particularly to a kind of method and device of transmission picture relevant information.
Background technology
With the development of Internet technology, various terminal equipment, such as Ipad, Surface and other Android systems
Tablet computer comes into the every field such as people's work, study, social and amusement and recreation.People can pass through these ends
End equipment browsing photo, takes notes, learns at viewing video.
But due to the display mode of each terminal device and the difference of screen size, identical content is different
When being shown on terminal device, the effect of display may also can be different.When user wants to show on different terminal devices
When the content shown is identical, certain puzzlement will be brought to user.
Invention content
In view of the above problems, it is proposed that the present invention overcoming the above problem in order to provide one kind or solves at least partly
State a kind of method and device of transmission picture relevant information of problem.
The present invention provides a kind of method of transmission picture relevant information, is used for first terminal, including:
Receive the operation zoomed in and out to the picture currently shown;
Obtain the scaling of the picture and location information of the picture on local terminal display screen after scaling;
Location information of the picture after the scaling and scaling of the picture on local terminal display screen is sent to
Two terminals, the picture scaling are preceding identical the location of on the first terminal and the display screen of the second terminal.
In one embodiment, before receiving the operation zoomed in and out to the picture currently shown, the method may be used also
Including:
Determine the picture currently shown the location of on local terminal display screen;
Obtain the screen size of local terminal;
Screen size by the picture with the local terminal the location of on local terminal display screen is sent to second terminal,
By the second terminal according to the picture the location of on local terminal display screen, the screen size of the local terminal and described
The screen size of second terminal determines the picture the location of on the display screen of the second terminal.
In one embodiment, the picture that the determination is currently shown is the location of on local terminal display screen, it may include:
Determine the coordinate in the upper left corner of the picture currently shown.
In one embodiment, location information of the picture after the scaling on local terminal display screen, it may include following letter
At least one of in breath:The coordinate in the upper left corner of the picture after scaling, compared to the picture before scaling, picture after the scaling
The distance of central point movement.
The present invention also provides a kind of methods of transmission picture relevant information, are used for second terminal, including:
The scaling for the picture that reception first terminal is sent and the picture after scaling are on first terminal display screen
Location information;
According to location information pair of the picture after the scaling and scaling of the picture on first terminal display screen
The picture that local terminal is shown zooms in and out so that after scaling, the picture the location of on first terminal display screen with
The picture is identical the location of on second terminal display screen.
In one embodiment, the picture after the scaling and scaling for receiving the picture that first terminal is sent is the
Before location information on one terminal display screen, the method may also include:
The picture that reception first terminal is sent location and first terminal on first terminal display screen
Screen size;
Obtain the screen size of second terminal;
According to the picture the location of on first terminal display screen, the screen size of the first terminal and institute
The screen size for stating second terminal determines the picture the location of on the local terminal display screen.
The present invention also provides a kind of devices of transmission picture relevant information, are used for first terminal, including:
Receiving module, for receiving the operation zoomed in and out to the picture currently shown;
First acquisition module, the picture after scaling and scaling for obtaining the picture is in local terminal display screen
Location information;
First sending module is used for the picture after the scaling and scaling of the picture on local terminal display screen
Location information is sent to second terminal, the preceding institute on the first terminal and the display screen of the second terminal of picture scaling
The position at place is identical.
In one embodiment, described device may also include:
Determining module, for determining the picture currently shown the location of on local terminal display screen;
Second acquisition module, the screen size for obtaining local terminal;
Second sending module, for the screen ruler by the picture the location of on local terminal display screen with the local terminal
It is very little to be sent to second terminal, by the second terminal according to the picture the location of on local terminal display screen, the local terminal
Screen size and the screen size of the second terminal determine picture institute on the display screen of the second terminal
The position at place.
In one embodiment, the determining module, it may include:
Determination sub-module, the coordinate in the upper left corner for determining the picture currently shown.
The present invention also provides a kind of devices of transmission picture relevant information, are used for second terminal, including:
Receiving module, the picture after scaling and scaling for receiving the picture that first terminal is sent are whole first
Hold the location information on display screen;
Zoom module is used for according to the picture after the scaling and scaling of the picture in first terminal display screen
Location information the picture that local terminal is shown is zoomed in and out so that after scaling, the picture is on first terminal display screen
The location on second terminal display screen is identical with the picture for location.
Some advantageous effects of the embodiment of the present invention may include:.
The above-mentioned technical proposal of the embodiment of the present invention is obtained by receiving the operation zoomed in and out to the picture currently shown
Take the scaling of picture and location information of the picture on local terminal display screen after scaling, by the scaling of picture and
Location information of the picture on local terminal display screen after scaling is sent to second terminal, and picture scaling is preceding in first terminal and second
It is identical the location of on the display screen of terminal, thus after picture zooms in and out, picture institute in first terminal and second terminal
The position at place is still identical, avoids two terminals and generates difference when synchronous.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.The purpose of the present invention and other advantages can be by the explanations write
Specifically noted structure is realized and is obtained in book, claims and attached drawing.
Below by drawings and examples, technical scheme of the present invention will be described in further detail.
Description of the drawings
Attached drawing is used to provide further understanding of the present invention, and a part for constitution instruction, the reality with the present invention
It applies example to be used to explain the present invention together, not be construed as limiting the invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the method for transmission picture relevant information in the embodiment of the present invention;
Fig. 2 is the flow chart of the method for another transmission picture relevant information in the embodiment of the present invention;
Fig. 3 is the flow chart of the method for another transmission picture relevant information in the embodiment of the present invention;
Fig. 4 is the flow chart of the method for another transmission picture relevant information in the embodiment of the present invention;
Fig. 5 is a kind of flow chart of the method for transmission picture relevant information in the embodiment of the present invention;
Fig. 6 is a kind of block diagram of the device of transmission picture relevant information in the embodiment of the present invention one;
Fig. 7 is the block diagram of the device of another transmission picture relevant information in the embodiment of the present invention;
Fig. 8 is the block diagram of the device of another transmission picture relevant information in the embodiment of the present invention.
Specific implementation mode
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings, it should be understood that preferred reality described herein
Apply example only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.
Fig. 1 show a kind of flow chart of the method for transmission picture relevant information in the embodiment of the present invention, eventually for first
End, first terminal can be mobile terminal or fixed terminal, and the embodiment of the present invention does not limit.As shown in Figure 1, including following step
Rapid S11-S13:
Step S11 receives the operation zoomed in and out to the picture currently shown.
First terminal has display screen, current display picture on display screen, and user can carry out the photo currently shown
Amplification and the operation reduced.
Step S12 obtains the scaling of picture and location information of the picture on local terminal display screen after scaling.
After being zoomed in and out to picture, the scaling of picture, such as can be 80%, 120%, that is, picture is scaled
For original image 80% or picture is scaled the 120% of original image.
In one embodiment, location information of the picture after scaling on local terminal display screen, it may include in following information
At least one of:The coordinate in the upper left corner of the picture after scaling, compared to the picture before scaling, the central point of the picture after scaling moves
Dynamic distance.
Step S13 sends location information of the picture after the scaling and scaling of picture on local terminal display screen
It is identical the location of on first terminal and the display screen of second terminal before picture scaling to second terminal.
For example, first terminal is the Surface of Microsoft, second terminal is the tablet computer of Android system.Surface
On picture show different with the tablet computer of Android system, the whole region on the upper display screens of Surface all can be regarded as a figure
Piece, including the black region of picture not can be regarded as a part for picture yet, and the tablet computer of Android system is not then in this way, not having
There is the black region that picture is filled not counting making picture, which results in will produce difference when both ends synchronize.In order in two terminals
When synchronous, the position of picture is in the same position of two screens always on screen, after the scaling and scaling of picture
Location information of the picture on local terminal display screen be sent to second terminal.For example, the size phase of first terminal and second terminal
Together, in first terminal, picture is exaggerated 1.1 times, and the coordinate in the picture upper left corner has 224*285 pixels to be moved to 185*204 pixels,
The coordinate in the picture upper left corner after magnification ratio and amplification is then sent to second terminal, that is to say, that shown in second terminal
Picture also amplifies 1.1 times, and the coordinate in the picture upper left corner shown in second terminal is moved to 185*204 pictures by 224*285 pixels
Element.
The above method of the embodiment of the present invention receives the operation zoomed in and out to the picture currently shown, obtains picture
Location information of the picture on local terminal display screen after scaling and scaling, after the scaling and scaling of picture
Location information of the picture on local terminal display screen is sent to second terminal, in the aobvious of first terminal and second terminal before picture scaling
It is identical the location of in display screen, thus after picture zooms in and out, the location of picture in first terminal and second terminal
It is still identical, it avoids two terminals and generates difference when synchronous.
In one embodiment, before step S11, as shown in Fig. 2, the above method can also include the steps of S14-
S16:
Step S14 determines the picture currently shown the location of on local terminal display screen.
In one embodiment, step S14 can be embodied as step A:
Determine the coordinate in the upper left corner of the picture currently shown.
Except determining that picture in addition to location, can also lead on local terminal display screen by the coordinate in the upper left corner of picture
The coordinate of center picture point is crossed to determine picture the location of on local terminal display screen.
Step S15 obtains the screen size of local terminal.
Step S16, the screen size by picture with local terminal the location of on local terminal display screen are sent to second terminal,
By second terminal according to picture the location of on local terminal display screen, the screen ruler of the screen size of local terminal and second terminal
It is very little to determine picture the location of on the display screen of second terminal.
Before step S11, the picture shown in first terminal is first synchronized to second terminal, makes picture in first terminal
It is identical with the location of on the display screen of second terminal.When picture is when first terminal is shown, it can pass through that obtain picture left
The coordinate at upper angle determines the position of picture, and the coordinate in the picture upper left corner is a left side for the picture display area for not including black region
Upper angular coordinate, when first terminal is identical with the screen size of second terminal, the picture upper left corner that is shown on first terminal
Coordinate is identical as the coordinate in the picture upper left corner shown in second terminal, for example, can all be 275*245 pixels.When first
When the screen size of terminal and second terminal differs, for example the screen length of second terminal is 1.2 times of first terminal, second
The screen width of terminal is 1.1 times of first terminal, and therefore, the coordinate for being synchronized to the upper left corner of the picture of second terminal is
(275*1.2)*(245*1.1)。
In the present embodiment, before being zoomed in and out to picture, by picture the location of on local terminal display screen and local terminal
Screen size is sent to second terminal, by second terminal according to picture the location of on local terminal display screen, the screen of local terminal
The screen size of size and second terminal determines picture the location of on the display screen of second terminal, to make picture
Difference is not will produce when two terminals synchronize.
Fig. 3 show the flow chart of the method for another transmission picture relevant information in the embodiment of the present invention, is used for second
Terminal, as shown in figure 3, including the following steps S31-S32:
Step S31, receives the scaling for the picture that first terminal is sent and the picture after scaling is shown in first terminal
Location information in display screen.
Step S32 believes according to position of the picture after the scaling and scaling of picture on first terminal display screen
Breath zooms in and out the picture that local terminal is shown so that after scaling, picture location and picture on first terminal display screen
It is identical the location of on second terminal display screen.
The above method of the embodiment of the present invention, by receive first terminal send picture scaling and scaling after
Location information of the picture on first terminal display screen, according to the picture after the scaling and scaling of picture first eventually
Location information on the display screen of end zooms in and out the picture that local terminal is shown so that after scaling, picture is in first terminal display screen
It is the location of upper that location is identical on second terminal display screen with picture, thus after picture zooms in and out, first
The location of picture is still identical in terminal and second terminal, avoids two terminals and generates difference when synchronous.
In one embodiment, before step S31, as shown in figure 4, the above method may also include step S33-S35:
Step S33, the picture that reception first terminal is sent location and first terminal on first terminal display screen
Screen size;
Step S34 obtains the screen size of second terminal;
Step S35, according to picture the location of on first terminal display screen, the screen size of first terminal and the
The screen size of two terminals determines picture the location of on local terminal display screen.
In the present embodiment, before being zoomed in and out to picture, by picture the location of on local terminal display screen and local terminal
Screen size is sent to second terminal, by second terminal according to picture the location of on local terminal display screen, the screen of local terminal
The screen size of size and second terminal determines picture the location of on the display screen of second terminal, to make picture
Difference is not will produce when two terminals synchronize.
The above-mentioned technical proposal of embodiment of the present disclosure offer is provided with specific embodiment below.
Embodiment one
The method for the transmission picture relevant information that embodiment one is provided using the embodiment of the present disclosure, as shown in figure 5, this method
Include the following steps S501-S511:
In step S501, first terminal determines the picture currently shown the location of on local terminal display screen.
In step S502, first terminal obtains the screen size of local terminal.
In step S503, first terminal sends out picture the location of on local terminal display screen with the screen size of local terminal
Give second terminal.
In step S504, second terminal receives picture that first terminal is sent position residing on first terminal display screen
Set the screen size with first terminal.
In step S505, second terminal obtains the screen size of second terminal.
In step S506, second terminal is according to picture the location of on first terminal display screen, first terminal
The screen size of screen size and second terminal determines picture the location of on local terminal display screen.
In step s 507, first terminal receives the operation zoomed in and out to the picture currently shown.
In step S508, the scaling of first terminal acquisition picture and the picture after scaling are on local terminal display screen
Location information.
In step S509, first terminal is by the picture after the scaling and scaling of picture on local terminal display screen
Location information is sent to second terminal.
In step S510, scaling and the picture after scaling that second terminal receives the picture that first terminal is sent
Location information on first terminal display screen.
In step S511, second terminal is shown according to the picture after the scaling and scaling of picture in first terminal
Location information on screen zooms in and out the picture that local terminal is shown so that after scaling, picture is residing on first terminal display screen
The location on second terminal display screen is identical with picture for position.
Embodiment one, first synchronizes first terminal and second terminal, and first terminal and second terminal is made to be shown at two
Present position is identical in display screen, and after being zoomed in and out to picture, the location information after the scaling and scaling of picture is loosened
To second terminal, make after picture zooms in and out, picture will not become in the location of first terminal and second terminal
Change, difference is generated when avoiding synchronous.
Based on same inventive concept, the embodiment of the present invention additionally provides a kind of device of transmission picture relevant information, due to
The principle of the solved problem of the device is similar to the method for aforementioned transmission picture relevant information, therefore the implementation of the device can be joined
See the implementation of preceding method, overlaps will not be repeated.
Fig. 6 show a kind of block diagram of the device of transmission picture relevant information in the embodiment of the present invention, is used for first terminal,
As shown in fig. 6, the device includes:
Receiving module 61, for receiving the operation zoomed in and out to the picture currently shown;
First acquisition module 62, the picture after scaling and scaling for obtaining picture is on local terminal display screen
Location information;
First sending module 63, for the position by the picture after the scaling and scaling of picture on local terminal display screen
Confidence breath is sent to second terminal, and picture scaling is preceding identical the location of on first terminal and the display screen of second terminal.
The above-mentioned apparatus of the embodiment of the present invention receives the operation zoomed in and out to the picture currently shown, obtains picture
Location information of the picture on local terminal display screen after scaling and scaling, after the scaling and scaling of picture
Location information of the picture on local terminal display screen is sent to second terminal, in the aobvious of first terminal and second terminal before picture scaling
It is identical the location of in display screen, thus after picture zooms in and out, the location of picture in first terminal and second terminal
It is still identical, it avoids two terminals and generates difference when synchronous.
In one embodiment, as shown in fig. 7, the device may also include:
Determining module 64, for determining the picture currently shown the location of on local terminal display screen;
Second acquisition module 65, the screen size for obtaining local terminal;
Second sending module 66, for sending picture with the screen size of local terminal the location of on local terminal display screen
To second terminal, by second terminal according to picture the location of on local terminal display screen, the screen size of local terminal and second
The screen size of terminal determines picture the location of on the display screen of second terminal.
In one embodiment, determining module 64, it may include:
Determination sub-module, the coordinate in the upper left corner for determining the picture currently shown.
Fig. 8 show a kind of block diagram of the device of transmission picture relevant information in the embodiment of the present invention, is used for second terminal,
As shown in figure 8, the device includes:
Receiving module 81, the picture after scaling and scaling for receiving the picture that first terminal is sent is first
Location information on terminal display screen;
Zoom module 82 is used for according to the picture after the scaling and scaling of picture on first terminal display screen
The location of location information zooms in and out the picture that local terminal is shown so that after scaling, picture is on first terminal display screen
Location is identical on second terminal display screen with picture.
The above-mentioned apparatus of the embodiment of the present invention, by receive first terminal send picture scaling and scaling after
Location information of the picture on first terminal display screen, according to the picture after the scaling and scaling of picture first eventually
Location information on the display screen of end zooms in and out the picture that local terminal is shown so that after scaling, picture is in first terminal display screen
It is the location of upper that location is identical on second terminal display screen with picture, thus after picture zooms in and out, first
The location of picture is still identical in terminal and second terminal, avoids two terminals and generates difference when synchronous.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer
The shape for the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.)
Formula.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram
The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided
Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real
The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to
Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or
The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.