Summary of the invention
Based on this, be necessary for above-mentioned instant messaging, check that expression preview pane all needs to consume unnecessary time and internal memory at every turn, make system operation not smooth, affect the problem of instant messaging quality, a kind of call method and system of method for previewing, system and emoticon of emoticon is provided.
A method for previewing for emoticon, comprises the following steps:
Detect expression instruction for previewing;
In the time described expression instruction for previewing being detected, pregenerated preview picture is loaded into preview area and shows, wherein, in the character position of described preview picture, draw and be useful on the identifier that indicates emoticon.
A prebrowsing system for emoticon, comprising:
Preview detection module, for detection of expression instruction for previewing;
Preview display module, in the time described expression instruction for previewing being detected, is loaded into preview area by pregenerated preview picture and shows, wherein, draws and be useful on the identifier that indicates emoticon in the character position of described preview picture.
The method for previewing of above-mentioned emoticon and system, in the time described expression instruction for previewing being detected, pregenerated drafting is useful on to the preview picture of identifier that indicates emoticon to be loaded into preview area and to show, get final product preview emoticon by the pregenerated preview picture of direct loading, without the instant expression control that generates, avoided unnecessary time and the consumption of internal memory, accelerating system operation, can ensure communication quality.
A call method for emoticon, comprises the following steps:
Detect expression instruction for previewing;
In the time described expression instruction for previewing being detected, pregenerated preview picture is loaded into preview area and shows, wherein, in the character position of described preview picture, draw and be useful on the identifier that indicates emoticon;
Obtain calling station, and judge whether described calling station mates with the character position in described preview picture;
If coupling is called the emoticon of the identifier of drawing in described character position for indicating from emoticon storehouse.
A calling system for emoticon, comprising:
Preview detection module, for detection of expression instruction for previewing;
Preview display module, in the time described expression instruction for previewing being detected, is loaded into preview area by pregenerated preview picture and shows, wherein, draws and be useful on the identifier that indicates emoticon in the character position of described preview picture;
Call detection module, for obtaining calling station, and judge whether described calling station mates with the character position in described preview picture;
Calling module, if for coupling, call the emoticon of the identifier of drawing in described character position for indicating from emoticon storehouse.
The call method of above-mentioned emoticon and system, in the time described expression instruction for previewing being detected, the pregenerated preview picture that comprises the identifier for indicating emoticon is loaded into preview area to be shown, the preview picture prestoring by direct loading gets final product preview emoticon, in the time that calling station is mated with the character position in preview picture, from emoticon storehouse, call the emoticon of the identifier of drawing in described character position for indicating, without generating expression control, can call emoticon without the UI control by emoticon, unnecessary time and the consumption of internal memory are avoided, accelerating system operation, can ensure communication quality.
Embodiment
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of method for previewing first embodiment of emoticon of the present invention.
The method for previewing of the described emoticon of present embodiment comprises the following steps:
Step 101, detects expression instruction for previewing.
Step 102, in the time described expression instruction for previewing being detected, is loaded into preview area by pregenerated preview picture and shows, wherein, draws and be useful on the identifier that indicates emoticon in the character position of described preview picture.
The method for previewing of the emoticon described in present embodiment,
In the time described expression instruction for previewing being detected, pregenerated drafting is useful on to the preview picture of identifier that indicates emoticon to be loaded into preview area and to show, get final product preview emoticon by the pregenerated preview picture of direct loading, without the instant expression control that generates, unnecessary time and the consumption of internal memory are avoided, accelerating system operation, can ensure communication quality.
Wherein, for step 101, described expression instruction for previewing, preferably can be by the instruction of operational order key-press input.
In one embodiment, before carrying out the step of described detection expression instruction for previewing, further comprising the steps of:
Obtain the identifier of at least two emoticons.
The character position that the identifier obtaining is plotted to painting canvas generates new preview picture the identifier obtaining is plotted at least two character positions of painting canvas, generate described preview picture, wherein, in a character position, draw the identifier that has an emoticon.
Wherein, emoticon comprises the expression of image format, the expression of letter symbol form, also comprises other emoticons that those skilled in the art are usual.Can calculate in advance the identifier that every preview picture can comprise how many emoticons, and then draw.
Preferably, described identifier can be emoticon itself, can be also image or the textual representation form of emoticon.
Further, described in described buffer memory, the step of preview picture is further comprising the steps of:
Record the character position of each identifier in described preview picture, and and to set up the identifier of drawing in each character position and each character position corresponding one by one for the emoticon indicating.
Described character position is the region of drawing described identifier in described preview picture, preferably, can be the position coordinates of identifier in preview picture, can be also the code name of residing position or the area code of division.
Further, described in described buffer memory, the step of preview picture is further comprising the steps of:
For the identifier in each character position in described preview picture distributes unique coding.
By synthetic each described code set unique character string.
By MD5 algorithm, described character string is generated to the cache path of described preview picture.
For described cache path, when there being multiple preview pictures to make, in described unique character string, can comprise the picture numbering p of preview picture, with idm(m=1 ... n) as the coding of each identifier in a preview picture, the expression formula of calculating so described cache path is: MD5 (id
1id
2id
3id
np).
For step 102, described in prestore, be preferably buffer memory in advance, described preview picture can be buffered in user disk in advance.
Preferably, in the time that the quantity of emoticon is more, can generate in advance multiple preview pictures, every preview picture is different from the identifier that other preview pictures comprise, the multiple identifiers in every preview picture are for indicating multiple different emoticons.
In one embodiment, after the described step that preview picture is shown to preview area, further comprising the steps of:
Detect page-turning instruction.
In the time described page-turning instruction being detected, the preview picture of next group is shown to described preview area.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of method for previewing second embodiment of emoticon of the present invention.
The difference of the method for previewing of the emoticon of present embodiment and the first embodiment is: described pregenerated preview picture is loaded into the step that preview area shows before, further comprising the steps of:
Whether step 201, detecting emoticon has renewal.
Step 202, if so, obtains the identifier of the emoticon after renewal.
Step 203, the character position that the identifier obtaining is plotted to painting canvas generates new preview picture the identifier obtaining is plotted at least two character positions of painting canvas, generate described preview picture, replace the preview picture before upgrading, wherein, in a character position, draw the identifier that has an emoticon.
The method for previewing of the emoticon of present embodiment, in the time that emoticon has renewal, obtain the identifier of the emoticon after renewal, and generate new preview picture and replace original preview picture, can upgrade fast preview picture, ensure that preview is to up-to-date emoticon.
Refer to Fig. 3, Fig. 3 is the structural representation of prebrowsing system first embodiment of emoticon of the present invention.
The prebrowsing system of the described emoticon of present embodiment comprises preview detection module 100 and preview display module 200, wherein:
Preview detection module 100, for detection of expression instruction for previewing.
Preview display module 200, in the time described expression instruction for previewing being detected, is loaded into preview area by pregenerated preview picture and shows, wherein, draws and be useful on the identifier that indicates emoticon in the character position of described preview picture.
The prebrowsing system of the emoticon described in present embodiment, in the time described expression instruction for previewing being detected, pregenerated drafting is useful on to the preview picture of identifier that indicates emoticon to be loaded into preview area and to show, get final product preview emoticon by the pregenerated preview picture of direct loading, without the instant expression control that generates, avoided unnecessary time and the consumption of internal memory, accelerating system operation, can ensure communication quality.
Wherein, for preview detection module 100, described expression instruction for previewing, preferably can be by the instruction of operational order key-press input.
In one embodiment, the prebrowsing system of the feelings symbol described in present embodiment, also comprises picture module, and described picture module, before detecting expression instruction for previewing, can be used for:
Obtain the identifier of at least two emoticons.
The character position that the identifier obtaining is plotted to painting canvas generates new preview picture the identifier obtaining is plotted at least two character positions of painting canvas, generate described preview picture, wherein, in a character position, draw the identifier that has an emoticon.
Wherein, emoticon comprises the expression of image format, the expression of letter symbol form, also comprises other emoticons that those skilled in the art are usual.Can calculate in advance the identifier that every preview picture can comprise how many emoticons, and then draw.
Preferably, described identifier can be emoticon itself, can be also image or the textual representation form of emoticon.
Further, described picture module also can be used for:
Record the character position of each identifier in described preview picture, and and to set up the identifier of drawing in each character position and each character position corresponding one by one for the emoticon indicating.
Described character position, is the region of drawing described identifier in described preview picture, preferably, can be the position coordinates of identifier in preview picture, can be also the code name of residing position or the area code of division.
Further, described picture module also can be used for distributing unique coding for the identifier in each character position in described preview picture, by synthetic each described code set unique character string, by MD5 algorithm, described character string is generated to the cache path of described preview picture.
For described cache path, when there being multiple preview pictures to make, in described unique character string, can comprise the picture numbering p of preview picture, with idm(m=1 ... n) as the coding of each identifier in a preview picture, the expression formula of calculating so described cache path is: MD5 (id
1id
2id
3id
np).
For preview display module 200, described in prestore, be preferably buffer memory in advance, described preview picture can be buffered in user disk in advance.
Preferably, in the time that the quantity of emoticon is more, can generate in advance multiple preview pictures, every preview picture is different from the identifier that other preview pictures comprise, the multiple identifiers in every preview picture are for indicating multiple different emoticons.
In one embodiment, the prebrowsing system of the feelings symbol described in present embodiment, also can comprise page module, after preview picture is shown to preview area by preview display module 200, can be used for detecting page-turning instruction, in the time described page-turning instruction being detected, the preview picture of next group is shown to described preview area.
Refer to Fig. 4, Fig. 4 is the structural representation of prebrowsing system second embodiment of emoticon of the present invention.
The difference of the prebrowsing system of the emoticon of present embodiment and the first embodiment is: also comprise update module 300, for pregenerated preview picture being loaded at preview display module 200 before preview area shows:
Detect emoticon and whether have renewal.
If so, obtain the identifier of the emoticon after renewal.
The character position that the identifier obtaining is plotted to painting canvas generates new preview picture the identifier obtaining is plotted at least two character positions of painting canvas, generate described preview picture, replace the preview picture before upgrading, wherein, in a character position, draw the identifier that has an emoticon.
The prebrowsing system of the emoticon of present embodiment, in the time that emoticon has renewal, obtain the identifier of the emoticon after renewal, and generate new preview picture and replace original preview picture, can upgrade fast preview picture, ensure that preview is to up-to-date emoticon.
Refer to Fig. 5, Fig. 5 is the schematic flow sheet of call method first embodiment of emoticon of the present invention.
The call method of the described emoticon of present embodiment comprises the following steps:
Step 501, detects expression instruction for previewing.
Step 502, in the time described expression instruction for previewing being detected, is loaded into preview area by pregenerated preview picture and shows, wherein, draws and be useful on the identifier that indicates emoticon in the character position of described preview picture.
Step 503, obtains calling station, and judges whether described calling station mates with the character position in described preview picture.
Step 504, if coupling is called the emoticon of the identifier of drawing in described character position for indicating from emoticon storehouse.
The call method of the emoticon described in present embodiment, in the time described expression instruction for previewing being detected, the pregenerated preview picture that comprises the identifier for indicating emoticon is loaded into preview area to be shown, the preview picture prestoring by direct loading gets final product preview emoticon, in the time that calling station is mated with the character position in preview picture, from emoticon storehouse, call the emoticon of the identifier of drawing in described character position for indicating, without generating expression control, can call emoticon without the UI control by emoticon, unnecessary time and the consumption of internal memory are avoided, accelerating system operation, can ensure communication quality.
Wherein, for step 501 and step 502, the step 501 described in present embodiment and step 502 are preferably identical with step 101 and step 102 described in any one in Fig. 1 or 2.
For step 503, mouse pointer or other input tools are stopped to Preset Time at any one character position of described preview picture, or click any one character position of described preview picture, or any one character position of described preview picture is carried out to default instruction transmit operation, all can generate calling station.
Preferably, change by the parameter that detects mouse pointer position, touch location or the each character position of described preview picture, also can obtain described calling station.
In one embodiment, described in obtain calling station, and judge that described calling station also can comprise the following steps with the step whether character position in described preview picture mates:
Step 5031, identification mouse pointer present position in described preview picture is described calling station.
Step 5032, the character position in described preview picture according to described calling station and pre-recorded identifier, obtains the residing character position of described mouse pointer.
Step 5033, judges described mouse pointer whether overtime threshold value of residing time in described character position, if so, judges that described calling station mates with described character position.
In other embodiments, also can pass through the usual other technologies means of those skilled in the art, obtain calling station, and judge whether described calling station mates with the character position in described preview picture.
For step 504, described in call preferably, comprise and from emoticon storehouse, transfer the operation steps of described identifier for the emoticon that indicates.With emoticon is inserted in the communication information of instant messaging, is inserted in SMS, is inserted in mail or is inserted into the operation steps in input information frame.
Refer to Fig. 6, Fig. 6 is the structural representation of calling system first embodiment of emoticon of the present invention.
The calling system of the described emoticon of present embodiment comprises preview detection module 100, preview display module 200, preview detection module 400 and preview display module 500, wherein:
Preview detection module 100, for detection of expression instruction for previewing.
Preview display module 200, in the time described expression instruction for previewing being detected, is loaded into preview area by pregenerated preview picture and shows, wherein, draws and be useful on the identifier that indicates emoticon in the character position of described preview picture.
Call detection module 400, for obtaining calling station, and judge whether described calling station mates with the character position in described preview picture.
Calling module 500, if for coupling, call the emoticon of the identifier of drawing in described character position for indicating from emoticon storehouse.
The calling system of the emoticon described in present embodiment, in the time described expression instruction for previewing being detected, the pregenerated preview picture that comprises the identifier for indicating emoticon is loaded into preview area to be shown, the preview picture prestoring by direct loading gets final product preview emoticon, in the time that calling station is mated with the character position in preview picture, from emoticon storehouse, call the emoticon of the identifier of drawing in described character position for indicating, without generating expression control, can call emoticon without the UI control by emoticon, unnecessary time and the consumption of internal memory are avoided, accelerating system operation, can ensure communication quality.
Wherein, for preview detection module 100 and preview display module 200, preview detection module 100 and preview display module 200 described in present embodiment are preferably identical with preview display module 200 with the preview detection module 100 described in any one in Fig. 3 or 4.
For calling detection module 400, mouse pointer or other input tools are stopped to Preset Time at any one character position of described preview picture, or click any one character position of described preview picture, or any one character position of described preview picture is carried out to default instruction transmit operation, all can generate calling station.
Preferably, change by the parameter that detects mouse pointer position, touch location or the each character position of described preview picture, also can obtain described calling station.
In one embodiment, described in, calling detection module 400 can be used for:
Identification mouse pointer present position in described preview picture is described calling station.
The character position in described preview picture according to described calling station and pre-recorded identifier, obtains the residing character position of described mouse pointer.
Judge described mouse pointer whether overtime threshold value of residing time in described character position, if so, judge that described calling station mates with described character position.
In other embodiments, call detection module 400 and also can pass through the usual other technologies means of those skilled in the art, obtain calling station, and judge whether described calling station mates with the character position in described preview picture.
For calling module 500, described in call preferably, comprise and from emoticon storehouse, transfer the operation of described identifier for the emoticon that indicates.With emoticon is inserted in the communication information of instant messaging, is inserted in SMS, is inserted in mail or is inserted into the operation in input information frame.
The above embodiment has only expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.