A kind of picture share systemTechnical field
The present invention relates to Internet technical field more particularly to a kind of picture share systems.
Background technology
To improve the communication efficiency of user, existing instant communication software usually all has picture sharing function, profitIt is following two with IM (Instant Message) modes for carrying out sharing picture:One is built between two subscription clientsThe one-to-one mode of intelligence transmission is found, one of subscription client directly transmits pictures to another subscription client;It is anotherKind be that multiple subscription clients establish network sharing and connect for example more people chatrooms, any user client by chatroom to itsHe transmits picture by subscription client.The present inventor has found in the practice of the invention:Although above two picture is sharedMode can realize the picture presentation between at least two clients of user, but one user visitor during picture is sharedWhen family end needs to carry out picture label to picture, which just needs first download pictures, then carries out picture mark to pictureThen the picture marked is sent to other users client by note, the mode that this picture is shared operates relatively complicated, can consumeTake more time for communication, increases and link up cost.
Invention content
In view of the above-mentioned problems, a kind of picture share system of the present invention, can carry at least two subscription clients simultaneouslyShare picture and label track of drawing for identical, simplifies picture sharing operation, can effectively save time for communication, reduce communicationTime cost.
In order to solve the above technical problems, a kind of picture share system of the present invention, including picture sharing service device and at leastTwo subscription clients;Wherein, picture sharing service device includes:
Communication connection module forms communication connection channel for establishing long connection at least two subscription client;
User interface module, the display for obtaining all subscription clients by the communication connection channelInformation shares control to provide picture to the corresponding subscription client according to the display information of each subscription clientAnd display window;Wherein, the display information includes screen size and display resolution, and the picture shares control and includesPaintbrush control for generating picture trajectory coordinates in display window;
Picture sharing module, be stored with it is preset share picture, for by the communication connection channel to described in wholeSubscription client sends picture access path and picture address, so that all the subscription client is according to the picture access roadDiameter and the picture address are shown in its display window identical shares picture;Wherein, it includes unique that picture is shared described in everyPicture address;
Picture mark module, when receiving the picture trajectory coordinates that any subscription client is sent, for generate withThe corresponding trajectory coordinates of display window of other subscription clients, and send corresponding institute to subscription client described in otherTrajectory coordinates are stated, are shown so that other users client carries out rendering on its display window to the trajectory coordinates.
As the improvement of said program, it further includes for generating switching action signal and switching figure that the picture, which shares control,The toggle control of piece address;
The picture sharing service device further includes:Picture handover module passes through receiving any subscription clientWhen switching action signal and switching picture address that the toggle control is sent, for sending institute to subscription client described in otherSwitching action signal and the switching picture address are stated, so that other described subscription clients real-time display on its display windowThe switching address is corresponding to share picture.
As the improvement of said program, it further includes the uploading control for upper transmitting file that the picture, which shares control,;
The picture sharing service device further includes:File uploading module passes through receiving any subscription clientWhen the file that the uploading control uploads, for distributing file address and access path for the file, and to use described in otherFamily client sends the file address and the access path, so that other described subscription clients are according to the file addressCorresponding file is shown with the access path;The file includes newly sharing picture and word or file.
As the improvement of said program, it further includes the zoom control for generating scale signal that the picture, which shares control,;
The picture sharing service device further includes:Picture Zoom module passes through receiving any subscription clientWhen the scale signal that the zoom control is sent, for forwarding the scale signal to subscription client described in other, so that itsHe zooms in and out the identical picture of sharing the client.
As the improvement of said program, it further includes the screen locking control for generating screen locking signal that the picture, which shares control,;
The picture sharing service device further includes:Picture screen lock module passes through receiving any subscription clientWhen the screen locking signal that the screen locking control is sent, for forwarding the screen locking signal to subscription client described in other, at itLayer of transparent form is covered on the display window of his subscription client realizes screen locking.
As the improvement of said program, the communication connection module includes:
IP address acquiring unit, the IP address information for obtaining at least two subscription clients successively;
Long connection establishment unit, for the acquisition sequence according to IP address information, successively with all subscription clientsIt establishes long connection and distributes long connection ID;
Path Setup unit is communicated to connect, for will all the long connection ID be set in same communication connection channel, shapeAt the communication connection channel between the picture sharing service device and whole subscription clients.
As the improvement of said program, the picture mark module includes:
Picture track receiving unit, the picture trajectory coordinates sent for receiving any subscription client;
Ratio value computing unit, for calculating the corresponding display window in the picture track and other described subscription clientsDisplay window between ratio value;
Trajectory coordinates computing unit is used for the reciprocal multiplication of the picture trajectory coordinates and each ratio value, lifeAt picture trajectory coordinates corresponding with the display window of subscription client described in other;
Picture track transmission unit, for sending the corresponding trajectory coordinates to subscription client described in other, so thatOther users client carries out rendering to the trajectory coordinates on its display window and shows.
As the improvement of said program, the picture sharing service device further includes:
Preview picture module, for providing preview picture form to all subscription clients, so that all useFamily client is shown in the preview form identical shares picture.
As the improvement of said program, the picture sharing service device further includes:
Instant messaging module, for providing instant messaging form to all subscription clients, so that all useFamily client shows instant communication message in the instant messaging form.
Compared with prior art, picture share system of the invention includes picture sharing service device and at least two users visitorFamily end;Picture sharing service device establishes communication connection channel by communication connection module and at least two subscription clients, in turnBy user interface module channels to whole subscription clients provide the picture adaptable with its display screen share control andDisplay window, picture sharing service device recycle picture sharing module to whole subscription clients send identical picture address andIt is preset to share picture so that whole subscription clients show identical share according to identical picture address in its display windowPicture, that realizes whole subscription clients shares picture simultaneous display, in addition, when the picture mark module of picture sharing service deviceWhen receiving the picture trajectory coordinates of any user client transmission, then sent and its display window phase to other users clientThe picture trajectory coordinates of adaptation realize whole users so that other users client carries out rendering on its display window and showsClient to the identical label of drawing that synchronizes for sharing picture, download, mark, forwarding step, can by the picture during release picture is sharedEffectively simplify picture sharing operation, saves time for communication, reduces the time cost linked up.
Description of the drawings
Fig. 1 is the structural schematic diagram of the picture share system of the embodiment of the present invention 1.
Fig. 2 is the structural schematic diagram of communication connection module in the embodiment of the present invention 1.
Fig. 3 is the structural schematic diagram of picture mark module in the embodiment of the present invention 1.
Fig. 4 is the structural schematic diagram of the picture share system of the embodiment of the present invention 2.
Fig. 5 is the structural schematic diagram of another picture share system of the embodiment of the present invention 2.
Fig. 6 is the structural schematic diagram of the picture share system of the embodiment of the present invention 3.
Specific implementation mode
Many details are elaborated in the following description in order to fully understand the present invention.But the present invention can be withMuch implement different from the other modes of this description, those skilled in the art can be without violating the connotation of the present inventionSimilar popularization is done, therefore the present invention is not limited by following public specific embodiment.
Clear, complete description is carried out to technical scheme of the present invention with reference to specific embodiments and the drawings.
Embodiment 1
As shown in Figure 1, be the structural schematic diagram of the picture share system of the embodiment of the present invention 1, the picture share system packetPicture sharing service device 1 and at least two subscription clients 2 are included, picture sharing service device 1 is equipped with logs in letter for verifying userThe subscriber information module of breath, when user inputs user information by subscription client 2 to picture sharing service device 1, Yong HuxinBreath module verifies user information, and distributes role-security after being proved to be successful for subscription client 2.Picture sharing serviceDevice 1 further includes:Communication connection module 16 forms communication link and connects for establishing long connection at least two subscription clients 2Road;User interface module 17, the display information for obtaining whole subscription clients 2 by communicating to connect channel, with rootPicture is provided to corresponding subscription client 2 share control 21 and display window 22 according to the display information of each subscription client 2;Wherein, display information includes screen size and display resolution, and it includes in display window 22 that picture, which shares control 21,Generate the paintbrush control 211 of picture trajectory coordinates;Picture sharing module 18, be stored with it is preset share picture, for by logicalBelieve that interface channel sends picture access path and picture address to whole subscription clients 2, so that 2 basis of whole subscription clientsPicture access path and picture address are shown in its display window 22 identical shares picture;Wherein, share picture and include for everyUnique picture address;Picture mark module 11 is used for when receiving the picture trajectory coordinates that any user client 2 is sentCorresponding with the display window 22 of other users client 2 trajectory coordinates are generated, and are sent to other users client 2 correspondingTrajectory coordinates are shown so that other users client 2 carries out rendering on its display window 22 to trajectory coordinates.
Compared with prior art, in the picture share system of the embodiment of the present invention 1, picture sharing service device 1 passes through communicationLink block 16 and at least two subscription clients 2 establish communication connection channel so that user interface module 17 passes through thisCommunication connection channel provides the picture being adapted with its display screen to whole subscription clients 2 and shares control 21 and display window22, picture sharing module 18 sends picture access path and identical by the communication connection channel to whole subscription clients 2 againPicture address so that whole subscription clients 2 show identical share according to identical picture address in its display window 22Picture, that realizes whole subscription clients 2 shares picture simultaneous display;In addition, when picture mark module 11 receives any useWhen the picture trajectory coordinates that family client 2 is sent, then generates track corresponding with the display window 22 of other users client 2 and sitMark, and corresponding trajectory coordinates are sent to other users client 2, so that other users client 2 is on its display window 22Corresponding trajectory coordinates are carried out rendering to show, realize that whole subscription clients 2 mark identical synchronous draw for sharing picture,Exempt the picture during picture is shared to download, mark, forwarding step, can effectively simplify picture sharing operation, saves time for communication, dropThe time cost of low communication.
Wherein, communication connection module 16 and at least two subscription clients 2 establish long connection, and forming communication connection channel canEffectively improve the efficiency that picture is shared.For example, when subscription client includes two, it is assumed that based on one of subscription clientClient, another subscription client are secondary client.Communication connection module is from the HTTP connection requests that primary client is sentObtain the IP address information of primary client;Communication connection module, which is established by the IP address information of primary client with primary client, to be grownConnection, and distribute the first long connection ID for it;Communication connection module receives the invitation solicited message that primary client is sent, wherein invitingPlease solicited message include secondary client IP address information;Picture sharing service device 1 according to the IP address information of secondary client withSecondary client establishes long connection, and distributes the second long connection ID for it;Communication connection module is again by the first long connection ID and secondLong connection ID is arranged in same communication connection channel, then form picture sharing service device and primary client, pair client itBetween communication connection channel so that it is logical that primary client can carry out full duplex by the communication connection channel and picture sharing service deviceLetter, secondary client can carry out full-duplex communication by the communication connection channel and picture sharing service device, improve subscription clientWith the communication efficiency between picture sharing service device.
Wherein, as shown in Fig. 1~2, communication connection module 16 includes:IP address acquiring unit 161, for obtain successively toThe IP address information of few two subscription clients 2;Long connection establishment unit 162, sequentially for the acquisition according to IP address information,It establishes long connection successively with whole subscription clients 2 and distributes long connection ID;Path Setup unit 163 is communicated to connect, being used for willAll long connection ID is set in same communication connection channel, is formed between picture sharing service device 1 and whole subscription clients 2Communicate to connect channel.
Wherein, as shown in figs. 1 and 3, picture mark module 11 includes:Picture track receiving unit 111, it is any for receivingThe picture trajectory coordinates that subscription client 2 is sent;Ratio value computing unit 112 is regarded for calculating the corresponding display in picture trackRatio value between window 22 and the display window of other users client 2 22;Trajectory coordinates computing unit 113, for that will drawThe reciprocal multiplication of trajectory coordinates and each ratio value generates picture rail corresponding with the display window 22 of other users client 2Mark coordinate;Picture track transmission unit 114, for sending corresponding trajectory coordinates to other users client 2, so that other are usedFamily client 2 carries out rendering to trajectory coordinates on its display window 22 and shows so that whole subscription clients 2 are in the aobvious of themShow and show picture label on form 22, realizes that whole subscription clients 2 to the identical real-time mark for sharing picture, improve and link up effectRate.
For example, when subscription client includes two, it is assumed that one of subscription client is primary client, and display regardsWindow size is 100 × 100, and picture trajectory coordinates are (20,30) one of on the display window of primary client;Assuming that anotherA subscription client is pair client, and display window size is 10 × 10, then the length of secondary client display window and high differenceFor primary client display window length, high 1/10.Picture mark module receive primary client send picture trajectory coordinates (20,30) it is 1/10 that, ratio value computing unit, which calculates the ratio value between primary client display window and secondary client display window, railIt is (2,3) that mark computing unit, which then calculates picture trajectory coordinates corresponding with the secondary display window of client, and picture track is sentIt is (2,3) that unit sends picture trajectory coordinates to secondary client so that secondary client on its display window to trajectory coordinates (2,3) it carries out rendering to show, then primary client is realized with secondary client to the identical real-time mark for sharing picture.
In specific implementation process, any user client 2 can generate paintbrush thing when starting to operate paintbrush control 211Part starts message, the identity information of the subscription client 2 comprising triggering paintbrush control 211 in the message, user interface mouldBlock 17 then receives the message, and is transmitted to other users client 2, to inform triggering paintbrush control to other users client 2The identity of 211 subscription client 2.
Embodiment 2
As shown in figure 4, being the structural schematic diagram of the picture share system of the embodiment of the present invention 2, which removesInclude sharing on control 21 in its picture to further include except whole comprising modules in embodiment 1:For generating switching actionSignal and switching picture address toggle control 212, for the uploading control 213 of upper transmitting file, for generating scale signalOne or more combinations in zoom control 214 and screen locking control 215 for generating screen locking signal.The picture sharing service device1 further includes corresponding with above-mentioned control combination with lower module:Picture handover module 12, for receiving any user clientWhen the 2 switching action signals sent by toggle control 212 are with switching picture address, then being sent to other users client 2 shouldSwitching action signal and the switching picture address, so that the real-time display on its display window 22 of other users client 2 switchesAddress is corresponding to share picture;File uploading module 13 is uploaded receiving any user client 2 by uploading control 213File when, for distributing file address and access path for file, and to other users client 2 send this document address andAccess path is realized and is all used so that other users client 2 shows corresponding file according to this document address and access pathFamily client real-time display file;Wherein, file includes new sharing picture and word or file;Picture Zoom module 14 is connecingWhen receiving the scale signal that any user client 2 is sent by zoom control 214, for being forwarded to other users client 2Scale signal, so that other clients zoom in and out identical picture of sharing;Picture screen lock module 15 is receiving any useWhen the screen locking signal that family client 2 is sent by screen locking control 215, for forwarding screen locking signal to other users client 2, withLayer of transparent form is covered on the display window 22 of other users client 2, and other users client 2 is avoided to operate thereonPicture shares control, to realize screen locking.
In specific implementation process, picture sharing service device 1 can provide plurality of picture to subscription client 2 and share control21, make subscription client 2 that there are a variety of sharing functions.To be set in picture share system, there are two for subscription client 2, it is assumed thatOne of subscription client 2 is primary client 201, another is secondary client 202, as shown in figure 5, picture sharing service device1 is provided which paintbrush control 211, toggle control 212, uploading control 213 and scaling control to primary client 201 and secondary client 202Part 214, and only provide screen locking control 215 to primary client 201, then primary client 201 and secondary client 202 can pass through pictureControl 211, toggle control 212 or zoom control 214 carry out picture label, switching or contracting respectively to identical picture of sharingPut so that primary client 201 and secondary client 202 to it is identical share picture carry out while showing picture label and meanwhile switch orIt scales simultaneously, and primary client 201 and secondary client 202 can be uploaded by uploading control 213 and new share picture and textWord document.But due to only providing screen locking control 215 to primary client 201, then only primary client 201 can pass through screen locking control215 pairs of secondary clients 202 carry out screen locking operation, and secondary client 202 cannot carry out screen locking to primary client 201.
Embodiment 3
As shown in fig. 6, being the structural schematic diagram of the picture share system of the embodiment of the present invention 3, which removesInclude except whole comprising modules in embodiment 2, picture sharing service device 1 further includes:Preview picture module 19, is used forPreview picture form 23 is provided to whole subscription clients 2, so that whole subscription clients 2 show identical point in the preview windowEnjoy picture;Instant messaging module 110, for providing instant messaging form 24 to whole subscription clients 2, so that whole user visitorsFamily end 2 carries out instant messaging by instant messaging form 24.Specifically, the instant messaging module 110 is logical by third party's videoLetter rack part establishes the instant messaging between subscription client 2, and instant messaging content is shown in instant messaging form 24.It is preferred thatGround, the picture that user interface module is provided to subscription client share control can also include the first instant messaging control andSecond instant messaging control, the first instant messaging control are used to open or close the instant messaging form of local user's client,The second instant messaging control is used to open or closes the other users client that instant messaging is established with local user's clientInstant messaging form so that user can control opening or closing for instant messaging form according to self-demand, improve picture pointThe convenience and communication efficiency enjoyed.
The above described is only a preferred embodiment of the present invention, limitation in any form not is done to the present invention, thereforeAll contents without departing from technical solution of the present invention, it is made to the above embodiment according to the technical essence of the invention any simply to repairChange, equivalent variations and modification, in the range of still falling within technical solution of the present invention.