Summary of the invention
The invention provides information sharing method and device in the instant messaging, can save user's operation, improve the implementation efficiency of information sharing.
The invention provides following scheme:
Information sharing method in a kind of instant messaging comprises:
Receive after user's the sectional drawing request locking table surface layer;
Confirm the intercepting zone that the user selectes;
Image in the said intercepting zone carries out dynamic intercepting, and carries out information sharing according to the result of dynamic intercepting to the instant messaging good friend of appointment, so that represent image and situation of change thereof in the said intercepting zone to the instant messaging good friend of said appointment.
Optional, saidly image in the said intercepting zone is carried out dynamic intercepting comprise:
At the initial time of confirming said intercepting zone; Image in the said intercepting zone carries out intercepting; And monitor the variation of image in the said intercepting zone, when changing, again the image in the intercepting zone is carried out intercepting; Obtain the result of dynamic intercepting, the result of said dynamic intercepting comprises picture and each picture of intercepting respectively that changes constantly of initial time intercepting.
Optional, saidly image in the said intercepting zone is carried out dynamic intercepting comprise:
Begin from the initial time of confirming said intercepting zone; Image in the said intercepting zone is carried out intercepting according to the time interval of presetting; And the picture of picture that current time is truncated to and last one intercepting constantly compares, if different, then as the dynamic result of intercepting.
Optional, the result of the dynamic intercepting of said basis carries out information sharing to the instant messaging good friend of appointment and comprises:
Said dynamic intercepting result is sent to the instant messaging good friend of appointment; The recipient, replace the dynamic intercepting result that a moment receives with the dynamic intercepting result who newly receives.
Optional, the result of the dynamic intercepting of said basis carries out information sharing to the instant messaging good friend of appointment and comprises:
In said dynamic result, the part that changes with respect to last one dynamic intercepting result sends to the instant messaging good friend of appointment, the recipient, part that changes that newly receives and last one constantly display result is made up demonstration.
Optional; Said with in the said dynamic result; The part that changes with respect to last one dynamic intercepting result sends to the instant messaging good friend of appointment, the recipient, part that changes that newly receives and last one constantly display result made up shows and comprises:
The picture that initial time is truncated to according to the mode of appointment carries out piecemeal to be handled, and obtains a plurality of fritters, and each fritter is sent to the instant messaging good friend of appointment, the recipient, each fritter is made up, and obtains complete picture and shows;
When being truncated to new picture; According to the mode of said appointment new picture being carried out piecemeal handles; And with picture that last one constantly is truncated in each corresponding fritter compare, the fritter that changes is sent to the instant messaging good friend of appointment, the recipient; Each fritter that comprises in the picture according to fritter that changes that receives and current demonstration; Determine the fritter that does not change, fritter that changes and the fritter that does not change are made up, obtain complete picture and carry out update displayed.
Optional, the result of the dynamic intercepting of said basis carries out information sharing to the instant messaging good friend of appointment and comprises:
Obtain the instant messaging good friend's of user and said appointment IP address;
Between the instant messaging good friend of user and said appointment, set up special-purpose several transmission channels according to said IP address, so that carry out information sharing to the instant messaging good friend of appointment through the data transmission channel of said special use.
Optional, said user selected area comprises the zone at application window place; Said method also comprises:
Monitor the variation of said application window position;
Based on the application window position after changing, confirm said intercepting zone again.
Information sharing apparatus in a kind of instant messaging comprises:
Lock cell is used to receive after user's the sectional drawing request, the locking table surface layer;
The unit is confirmed in the intercepting zone, is used for the intercepting zone of confirming that the user selectes;
Dynamic shared cell; Be used for the image in the said intercepting zone is carried out dynamic intercepting; And carry out information sharing to the instant messaging good friend of appointment according to the result of dynamic intercepting, so that represent image and situation of change thereof in the said intercepting zone to the instant messaging good friend of said appointment.
Optional, said dynamic shared cell specifically is used for:
At the initial time of confirming said intercepting zone; Image in the said intercepting zone carries out intercepting; And monitor the variation of image in the said intercepting zone, when changing, again the image in the intercepting zone is carried out intercepting; Obtain the result of dynamic intercepting, the result of said dynamic intercepting comprises picture and each picture of intercepting respectively that changes constantly of initial time intercepting.
Optional, said dynamic shared cell specifically is used for:
Begin from the initial time of confirming said intercepting zone; Image in the said intercepting zone is carried out intercepting according to the time interval of presetting; And the picture of picture that current time is truncated to and last one intercepting constantly compares, if different, then as the dynamic result of intercepting.
Optional, said dynamic shared cell comprises:
Replacement shows subelement, is used for said dynamic intercepting result is sent to the instant messaging good friend of appointment; The recipient, replace the dynamic intercepting result that a moment receives with the dynamic intercepting result who newly receives.
Optional, said dynamic shared cell comprises:
Combination shows and to be used for subelement with said dynamic result, and the part that changes with respect to last one dynamic intercepting result sends to the instant messaging good friend of appointment; The recipient, part that changes that newly receives and last one constantly display result are made up demonstration.
Optional, said combination shows that subelement comprises:
Piecemeal subelement, the picture that the mode according to appointment that is used for is truncated to initial time carry out piecemeal to be handled, and obtains a plurality of fritters; And each fritter sent to the instant messaging good friend of appointment; The recipient, each fritter is made up, obtain complete picture and show;
Show subelement; Be used for when being truncated to new picture, according to the mode of said appointment new picture carried out piecemeal and handle, and with picture that last one is truncated to constantly in each corresponding fritter compare; The fritter that changes is sent to the instant messaging good friend of appointment; The recipient, each fritter that comprises in the picture according to fritter that changes that receives and current demonstration is determined the fritter that does not change; Fritter that changes and the fritter that does not change are made up, obtain complete picture and carry out update displayed.
Optional, said dynamic shared cell comprises:
The IP address obtains subelement, is used to obtain the instant messaging good friend's of user and said appointment IP address;
Passage is set up subelement, is used between the instant messaging good friend of user and said appointment, setting up special-purpose several transmission channels according to said IP address, so that carry out information sharing through the data transmission channel of said special use to the instant messaging good friend of appointment.
Optional, said user selected area comprises the zone at application window place; Said device also comprises:
Monitoring unit is used to monitor the variation of said application window position;
The unit is confirmed in the zone again, is used for according to the application window position after changing, and confirms said intercepting zone again.
According to specific embodiment provided by the invention, the invention discloses following technique effect:
Through the present invention; Can be after the selected intercepting zone of user; Image in the said intercepting zone carries out dynamic intercepting; And carry out information sharing to the instant messaging good friend of appointment, thereby represent image and situation of change thereof in the said intercepting zone to the instant messaging good friend of said appointment according to the result of dynamic intercepting.It is thus clear that; For being same as the intercepting zone, the instant messaging good friend to appointment represents image and situation of change thereof in this intercepting zone if desired, and the user only need specify a sectional drawing operation to get final product; Again carry out the sectional drawing operation when image changes in each zone and not be used in; Therefore, save the number of times of user's operation, improved the implementation efficiency of information sharing.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, the every other embodiment that those of ordinary skills obtained belongs to the scope that the present invention protects.
In embodiments of the present invention, consider in practical application that a lot of users possibly often need share image in a certain zone of screen and situation of change thereof to its good friend; But in the prior art, with the operation of this sectional drawing can only the intercepting current state a width of cloth picture, therefore; If when the image in the zone changed, the user can only click the sectional drawing button again, reselects this zone; Or the like, can be very loaded down with trivial details.Based on above-mentioned scene, the embodiment of the invention provides a kind of implementation easily, is intended to when the user need share the image in screen the same area and situation of change thereof to its good friend, can save user's operation, improves the efficient of realization.
Referring to Fig. 1, the information sharing method in the instant messaging that the embodiment of the invention provides can may further comprise the steps:
S101: receive after user's the sectional drawing request locking table surface layer;
During concrete the realization; In order to realize aforementioned functional, toolbar of the user session window that can provide at JICQ etc. is located, and dynamic sectional drawing button is provided; If certain user need share the image in screen the same area and situation of change thereof when giving the good friend who is engaging in the dialogue with it; Just can click the dynamic intercepting button in this dialog box, like this, JICQ just can receive user's dynamic sectional drawing request.
Receive after this dynamic sectional drawing request, just can at first lock user's table surface layer, when specifically realizing; In order to realize the operation of above-mentioned locking table surface layer; Can whole screen be created a picture, and can this picture be shown in a window, this window can be hidden title bar, status bar etc.; This moment, the size of this window also equaled screen size, so just can be so that table surface layer gets into lock-out state.
S102: confirm the intercepting zone that the user selectes;
After with the locking of user's table surface layer, the user just can choose the intercepting zone that needs.For example, the user can press left mouse button when on window, dragging, and just can detect mouse event, constantly draws the intercepting frame, when the user discharges mouse, just can obtain the starting point and the end point coordinate of intercepting frame.The mad rectangle that generally is defaulted as of intercepting wherein; Starting point coordinate just is meant the coordinate of the upper left corner loca of rectangle; The end point coordinate is meant the coordinate of the lower right corner loca of rectangle; Just can uniquely confirm that according to these two somes a rectangular area, this zone just can be confirmed as the intercepting zone that the user selectes.
S103: the image in the said intercepting zone carries out dynamic intercepting; And carry out information sharing to the instant messaging good friend of appointment according to the result of dynamic intercepting, so that represent image and situation of change thereof in the said intercepting zone to the instant messaging good friend of said appointment.
In embodiments of the present invention, after having confirmed the intercepting zone, just can carry out dynamic intercepting to the image in this zone.So-called dynamic intercepting; That is to say; After the selected intercepting zone of user; Be not only should the zone in the picture of current time share good friend to user's appointment, but can the situation of change of image after this intercepting constantly in should the zone also all be shared the good friend to this user's appointment.That is to say that the user once dynamically shares button clicking, and select after sectional drawing zone that the good friend of this user's appointment just can see current images in this sectional drawing zone, and follow-up image change situation in should the zone.
Concrete when realizing above-mentioned dynamic intercepting, multiple implementation can be arranged, for example; Under a kind of implementation, can the moment that confirm the intercepting zone be confirmed as initial time, at first; After image in this initial time intercepting zone carried out sectional drawing, share good friend to user's appointment; Afterwards, can monitor, when finding that at every turn image in this zone changes, just can carry out image interception again, share the image that grabs again to the good friend of user's appointment again then the variation of image in this intercepting zone.Wherein, When the variation of image in the intercepting zone is monitored; Can adopt Hook Function modes such as (function that operating system provides can be caught this process and other process events through it) to catch incidents such as creating layer, draw window, and the position that above-mentioned incident takes place get into the intercepting zone of determining before; Prove that then variation has taken place the image in this zone, trigger then and carry out sectional drawing again and get final product.When carrying out sectional drawing again; Can get access to the picture of the whole screen of current time equally again, according to the origin coordinates and the end coordinate in intercepting zone, intercepting goes out the part at this place, intercepting zone from this picture then; The picture that obtains is exactly the result who is truncated to again; Certainly, the process of above-mentioned intercepting again possibly accomplished on the backstage, need not represent to the user.
Perhaps, under another kind of implementation, create layer, draw incidents such as window in also can supervisory control system; But directly from having confirmed that intercepting zone begins constantly, carry out intercepting again according to certain time interval, and the picture of the picture that current time is truncated to and a last moment intercepting compares; If different, prove that then variation has taken place the image in this zone, therefore; The picture that newly is truncated to just can be used as the result of dynamic intercepting, shares the user to user's appointment.
Specifically with dynamic intercepting result when the good friend of user's appointment shares; Can directly the picture that at every turn is truncated to again directly be sent to the good friend of user's appointment; Then, the good friend of this user's appointment is as the recipient, when receiving new picture at every turn; Directly replace the picture that received last time and get final product, realize recipient's image update with this.This mode is fairly simple, but because the transmission of picture generally relatively expends bandwidth resources, all transmits complete picture at every turn, may cause bandwidth occupancy too much, causes phenomenons such as delay.Therefore, under another kind of implementation, the mode that can also adopt the subregion to upgrade, here " subregion " is meant the part that image changes in the intercepting zone.That is to say, for the intercepting zone, in the process of dynamically intercepting; Image wherein is for a last moment, and only variation has taken place possibility for some, and remainder does not change; Therefore; When the good friend shares, just can only this part the regional picture that changes be sent to the good friend, can save transmission bandwidth like this.
Certainly, when specifically realizing, the picture that initial time is truncated to is still wanted the complete recipient of sending to; And, upgrade in order to realize this subregion, can the picture that initial time is truncated to be carried out piecemeal; Also promptly before transmission, earlier picture is divided into fritter one by one, and then these fritters are sent to recipient's (also being the shared good friend of user's appointment); The recipient each fritter is being made up, obtaining complete picture.Like this; If in next finds the intercepting zone constantly, only have the image of subregion to change; After just can the image interception after changing being got off, same mode is carried out piecemeal to picture according to piecemeal first the time, then the fritter that changes is sent to the recipient; The recipient just can make up fritter that changes that newly receives and the fritter that does not change that received originally; Obtain complete picture, replacement last a picture is constantly realized the renewal of receiving terminal image with this then.
Need to prove; In practical application, after a user and its good friend set up session, will be for connecting between these two users; Can carry out the transmission of data through this connection; For example, these two users are when chatting, and the data of chat just can send and receive through this connection.In embodiments of the present invention; Need Sharing Information to transmit through this connection; But in order to improve efficiency of transmission, can also rebulid the transmission channel that is exclusively used in the shared image data of transmission, transmit the image data that is used to share through this passage according to both sides' IP address.Specifically when rebuliding passage, can consider from multiple angles, for example; Can consider from transmitting speed, at this moment, according to both sides' IP address; If find that two users in same local area network (LAN), then set up passage with direct-connected mode as far as possible, to obtain maximum transmission rate; Certainly, if do not have in same local area network (LAN), then can't set up direct-connected passage, but can select other optimum passages yet according to two users of IP address discovery of both sides, or the like.In a word, by the way, make the user still can use the former connection interaction of chatting, and guarantee stable, the high efficiency of image data when transmission.
In addition, in practical application, the intercepting zone that the user chooses possibly just in time be the window of certain application program, proves that then the user wants the situation of change of image in this window is shared the good friend to appointment dynamically; But in the process of dynamically sharing; This window may be dragged by the user, convergent-divergent or the like; Its position in screen may change; At this moment, if still carry out intercepting according to the corresponding coordinate position of choosing before the user in intercepting zone, truncated picture has not been the image in this program window just.Therefore, in embodiments of the present invention, the variation of this window's position of monitoring in real time; Change in case find this window's position, then can confirm the intercepting zone again according to the position after changing; Also promptly, all the time the intercepting zone is confirmed as in the zone at this program window place, at this moment; The intercepting zone no longer is to be decided by fixing coordinate figure, but is decided by the position at application window place.
In a word; Information sharing method in the above-mentioned instant messaging that provides through the embodiment of the invention; Can be after the selected intercepting zone of user; Image in the said intercepting zone carries out dynamic intercepting, and carries out information sharing according to the result of dynamic intercepting to the instant messaging good friend of appointment, thereby represents image and situation of change thereof in the said intercepting zone to the instant messaging good friend of said appointment.It is thus clear that; For being same as the intercepting zone, the instant messaging good friend to appointment represents image and situation of change thereof in this intercepting zone if desired, and the user only need specify a sectional drawing operation to get final product; Again carry out the sectional drawing operation when image changes in each zone and not be used in; Therefore, save the number of times of user's operation, improved the implementation efficiency of information sharing.
Corresponding with the information sharing method in the instant messaging that the embodiment of the invention provides, the embodiment of the invention also provides the information sharing apparatus in a kind of instant messaging, and referring to Fig. 2, this device can comprise:
Lock cell 201 is used to receive after user's the sectional drawing request, the locking table surface layer;
Unit 202 is confirmed in the intercepting zone, is used for the intercepting zone of confirming that the user selectes;
Dynamic shared cell 203; Be used for the image in the said intercepting zone is carried out dynamic intercepting; And carry out information sharing to the instant messaging good friend of appointment according to the result of dynamic intercepting, so that represent image and situation of change thereof in the said intercepting zone to the instant messaging good friend of said appointment.
Wherein, dynamically shared cell 203 specifically can be used for:
At the initial time of confirming said intercepting zone; Image in the said intercepting zone carries out intercepting; And monitor the variation of image in the said intercepting zone, when changing, again the image in the intercepting zone is carried out intercepting; Obtain the result of dynamic intercepting, the result of said dynamic intercepting comprises picture and each picture of intercepting respectively that changes constantly of initial time intercepting.
Perhaps, dynamically shared cell 203 specifically also can be used for:
Begin from the initial time of confirming said intercepting zone; Image in the said intercepting zone is carried out intercepting according to the time interval of presetting; And the picture of picture that current time is truncated to and last one intercepting constantly compares, if different, then as the dynamic result of intercepting.
Wherein, dynamically shared cell 203 can comprise:
Replacement shows subelement, is used for said dynamic intercepting result is sent to the instant messaging good friend of appointment; The recipient, replace the dynamic intercepting result that a moment receives with the dynamic intercepting result who newly receives.
Perhaps, under another kind of implementation, dynamically shared cell 203 also can comprise:
Combination shows and to be used for subelement with said dynamic result, and the part that changes with respect to last one dynamic intercepting result sends to the instant messaging good friend of appointment; The recipient, part that changes that newly receives and last one constantly display result are made up demonstration.
During concrete the realization, said combination shows that subelement can comprise:
Piecemeal subelement, the picture that the mode according to appointment that is used for is truncated to initial time carry out piecemeal to be handled, and obtains a plurality of fritters; And each fritter sent to the instant messaging good friend of appointment; The recipient, each fritter is made up, obtain complete picture and show;
Show subelement; Be used for when being truncated to new picture, according to the mode of said appointment new picture carried out piecemeal and handle, and with picture that last one is truncated to constantly in each corresponding fritter compare; The fritter that changes is sent to the instant messaging good friend of appointment; The recipient, each fritter that comprises in the picture according to fritter that changes that receives and current demonstration is determined the fritter that does not change; Fritter that changes and the fritter that does not change are made up, obtain complete picture and carry out update displayed.
In practical application, dynamically shared cell 203 can comprise:
The IP address obtains subelement, is used to obtain the instant messaging good friend's of user and said appointment IP address;
Passage is set up subelement, is used between the instant messaging good friend of user and said appointment, setting up special-purpose several transmission channels according to said IP address, so that carry out information sharing through the data transmission channel of said special use to the instant messaging good friend of appointment.
When said user selected area comprised application window place regional, said device can also comprise:
Monitoring unit is used to monitor the variation of said application window position;
The unit is confirmed in the zone again, is used for according to the application window position after changing, and confirms said intercepting zone again.
In a word; Information sharing apparatus in the above-mentioned instant messaging that provides through the embodiment of the invention; Can be after the selected intercepting zone of user; Image in the said intercepting zone carries out dynamic intercepting, and carries out information sharing according to the result of dynamic intercepting to the instant messaging good friend of appointment, thereby represents image and situation of change thereof in the said intercepting zone to the instant messaging good friend of said appointment.It is thus clear that; For being same as the intercepting zone, the instant messaging good friend to appointment represents image and situation of change thereof in this intercepting zone if desired, and the user only need specify a sectional drawing operation to get final product; Again carry out the sectional drawing operation when image changes in each zone and not be used in; Therefore, save the number of times of user's operation, improved the implementation efficiency of information sharing.
Description through above execution mode can know, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform.Based on such understanding; The part that technical scheme of the present invention contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product can be stored in the storage medium, like ROM/RAM, magnetic disc, CD etc., comprises that some instructions are with so that a computer equipment (can be a personal computer; Server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and identical similar part is mutually referring to getting final product between each embodiment, and each embodiment stresses all is the difference with other embodiment.Especially, for device or system embodiment, because it is basically similar in appearance to method embodiment, so describe fairly simplely, relevant part gets final product referring to the part explanation of method embodiment.Apparatus and system embodiment described above only is schematic; Wherein said unit as the separating component explanation can or can not be physically to separate also; The parts that show as the unit can be or can not be physical locations also; Promptly can be positioned at a place, perhaps also can be distributed on a plurality of NEs.Can select wherein some or all of module to realize the purpose of present embodiment scheme according to the actual needs.Those of ordinary skills promptly can understand and implement under the situation of not paying creative work.
More than to information sharing method in the instant messaging provided by the present invention and device; Be described in detail; Used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, part in specific embodiments and applications all can change.In sum, this description should not be construed as limitation of the present invention.