摘要 |
The present invention is applicable to the field of multi-screen display technologies. The method includes: detecting a sliding track of a user on the primary screen display device, where the sliding track includes a sliding direction, and an initial position and a real-time position of sliding; determining, according to the initial position and the real-time position of the sliding, a display area of a screen of the secondary screen display device after the sliding by using the sliding direction as a reference direction; tailoring currently displayed content of the primary screen display device according to the display area, to obtain tailored content; and sending the tailored content and the display area to the secondary screen display device, so that the secondary screen display device displays the tailored content on the display area. |
主权项 |
1. A method for displayed content transfer between screens, applied to a primary screen display device, wherein the primary screen display device is connected to a secondary screen display device, the method comprising:
detecting a sliding track of a user on the primary screen display device, wherein the sliding track comprises a sliding direction, an initial position and a real-time position of sliding; determining, according to the initial position and the real-time position of the sliding, a display area of a screen of the secondary screen display device after the sliding by using the sliding direction as a reference direction; tailoring currently displayed content of the primary screen display device according to the display area, to obtain tailored content; and sending the tailored content and the display area to the secondary screen display device, so that the secondary screen display device displays the tailored content on the display area; wherein determining, according to the initial position and the real-time position of the sliding, the display area of the screen of the secondary screen display device after the sliding by using the sliding direction as the reference direction comprises: calculating the following formulas:B1(x,y)=B1(0,InitHeight_2-Δy×k×InitHeight_2InitHeight_1)B2(x,y)=B2(Δx×k×InitWidth_2InitWidth_1,InitHeight_2-Δy×k×InitHeight_2InitHeight_1)B3(x,y)=B3(0,InitHeight_2)B4(x,y)=B4(Δx×k×InitWidth_2InitWidth_1,InitHeight_2) wherein the sliding direction is the 2 o'clock direction, Δx=x2−x1, Δy=y2−y1, (x1, y1) represents an initial position of the sliding, (x2, y2) represents a real-time position of the sliding, InitWidth_1 represents a width of an initial display frame of a primary screen, InitHeight_1 represents a height of the initial display frame of the primary screen, InitWidth_2 represents a width of an initial display frame of a secondary screen, InitHeight_2 represents a height of the initial display frame of the secondary screen, and k represents a ratio between sliding displacement on the primary screen and a moving distance of displayed content on the primary screen. |