CN103744649A - Method for displaying screenshot in instant messaging - Google Patents
Method for displaying screenshot in instant messaging Download PDFInfo
- Publication number
- CN103744649A CN103744649A CN201310663313.0A CN201310663313A CN103744649A CN 103744649 A CN103744649 A CN 103744649A CN 201310663313 A CN201310663313 A CN 201310663313A CN 103744649 A CN103744649 A CN 103744649A
- Authority
- CN
- China
- Prior art keywords
- sectional drawing
- thread
- screenshot
- loop body
- picture
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a method for displaying a screenshot in instant messaging. The method comprises the steps that first, a receiving terminal receives the screenshot, meanwhile, the information of the screenshot can be received, and a control is established to be used for displaying a picture; then, a thread is established, a loop body is arranged in the thread, the loop body is used for judging whether the screenshot is completely received or not, and the cycle index and the cycle interval of the loop body are set; if the screenshot is judged to be completely received within the cycle index, the picture can be displayed on the control; if the screenshot is not completely received until the last cycle, the loop can be exited, and a damaged picture is displayed on the control; finally, the thread is ended, and resources are released. Through the method, screenshot loading is more user-friendly, and the phenomenon that a main thread is blocked so that information can be delayed is avoided.
Description
Technical field
The present invention relates to a kind of method that shows sectional drawing in instant messaging.
Background technology
When immediately connecting receipts sectional drawing, if sectional drawing file is excessive, take over party receives sectional drawing will be consuming time more of a specified duration, allow take over party wait for always, and may cause chat message to postpone to receive, if when network goes wrong, sectional drawing receives imperfect, and chat window will block.
Summary of the invention
The technical problem to be solved in the present invention, is to provide a kind of method that shows sectional drawing in instant messaging, has solved and has loaded the not humane of sectional drawing process, and can not allow main thread block.
The present invention specifically comprises the steps:
Step 10, receiving terminal receive sectional drawing, can receive the information of sectional drawing simultaneously, create a control and are used for Showing Picture;
Step 20, establishment one thread, have a loop body in described thread, it is complete that described loop body is used for judging whether sectional drawing receives, and loop body cycle index and intercycle time are set;
If it is complete that step 30 judges that in described cycle index sectional drawing receives, on described control, Show Picture; If it is imperfect to be recycled to last sectional drawing reception, exit circulation, on described control, show the picture damaging;
Step 40, finish described thread, releasing resource.
Further, described sectional drawing information comprises: the size of the title of sectional drawing, sectional drawing file and the form of sectional drawing file.
Tool of the present invention has the following advantages: adopt method of the present invention to make in the more hommization of process that loads sectional drawing, can not allow user wait for that for a long time sectional drawing shows, and can not allow the main thread of instant messaging block, cause message delay.
Accompanying drawing explanation
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is the inventive method flowchart.
Embodiment
As shown in Figure 1, a kind of method that shows sectional drawing in instant messaging, specifically comprises
Step 10, receiving terminal receive sectional drawing, can receive the information of sectional drawing simultaneously, create a control and are used for Showing Picture, and described sectional drawing information comprises: the size of the title of sectional drawing, sectional drawing file and the form of sectional drawing file;
Step 20, establishment one thread, have a loop body in described thread, it is complete that described loop body is used for judging whether sectional drawing receives, and loop body cycle index and intercycle time are set;
If it is complete that step 30 judges that in described cycle index sectional drawing receives, on described control, Show Picture; If it is imperfect to be recycled to last sectional drawing reception, exit circulation, on described control, show the picture damaging;
Step 40, finish described thread, releasing resource.
Specific embodiment is as follows:
Step 1, accept sectional drawing, receive the relevant information (being the filename of sectional drawing, sectional drawing file size, the form of sectional drawing file) of sectional drawing simultaneously, create the JLable control of a java;
Step 2, a thread of establishment, in the execution body of this thread, there is a loop body, the process of each circulation is that to judge whether sectional drawing receives complete, according to sectional drawing filename, search sectional drawing, and the size of sectional drawing file in the file size of the sectional drawing relatively the finding sectional drawing information that whether can equal to receive, circulation 30 times are set, and the intercycle time is 0.3 second;
If it is complete that step 3 sectional drawing does not receive, 0.3 second, interval, carries out loop body again, judges whether sectional drawing receives complete; In the cyclic process of 30 times, once once judge that sectional drawing is that reception is complete, exit loop body, the Icon attribute of JLable in setting steps one is sectional drawing object, shows sectional drawing, if circulation is carried out after 30 times, sectional drawing does not still receive complete, exit loop body, the icon object of a broken figure of structure, is so just shown as a sectional drawing that does not receive complete damage;
Step 4, end thread, releasing resource.
Tool of the present invention has the following advantages: adopt method of the present invention to make in the more hommization of process that loads sectional drawing, can not allow user wait for that for a long time sectional drawing shows, and can not allow the main thread of instant messaging block, cause message delay.
Although more than described the specific embodiment of the present invention; but being familiar with those skilled in the art is to be understood that; our described specific embodiment is illustrative; rather than for the restriction to scope of the present invention; those of ordinary skill in the art are in equivalent modification and the variation done according to spirit of the present invention, all should be encompassed in the scope that claim of the present invention protects.
Claims (2)
1. in instant messaging, show a method for sectional drawing, it is characterized in that: comprise the steps:
Step 10, receiving terminal receive sectional drawing, can receive the information of sectional drawing simultaneously, create a control and are used for Showing Picture;
Step 20, establishment one thread, have a loop body in described thread, it is complete that described loop body is used for judging whether sectional drawing receives, and loop body cycle index and intercycle time are set;
If it is complete that step 30 judges that in described cycle index sectional drawing receives, on described control, Show Picture; If it is imperfect to be recycled to last sectional drawing reception, exit circulation, on described control, show the picture damaging;
Step 40, finish described thread, releasing resource.
2. a kind of method that shows sectional drawing in instant messaging as claimed in claim 1, is characterized in that: described sectional drawing information comprises: the size of the title of sectional drawing, sectional drawing file and the form of sectional drawing file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310663313.0A CN103744649A (en) | 2013-12-10 | 2013-12-10 | Method for displaying screenshot in instant messaging |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310663313.0A CN103744649A (en) | 2013-12-10 | 2013-12-10 | Method for displaying screenshot in instant messaging |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103744649A true CN103744649A (en) | 2014-04-23 |
Family
ID=50501669
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310663313.0A Pending CN103744649A (en) | 2013-12-10 | 2013-12-10 | Method for displaying screenshot in instant messaging |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103744649A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1264090A (en) * | 1999-01-14 | 2000-08-23 | 富士写真胶片株式会社 | Image data communication system, service apparatus system and control method and recording medium thereof |
CN1794776A (en) * | 2004-09-15 | 2006-06-28 | 腾讯科技(深圳)有限公司 | Method and system of processing image and its applicated in immediat communication |
CN100394816C (en) * | 2004-01-13 | 2008-06-11 | 英华达(南京)科技有限公司 | Method for low-power hand set down-loading document data through personal computer |
CN101330451A (en) * | 2007-06-20 | 2008-12-24 | 华为技术有限公司 | Method for processing forwarding of data packet, node and packet core apparatus |
CN101472163A (en) * | 2007-12-25 | 2009-07-01 | 百度在线网络技术(北京)有限公司 | Method, apparatus and system for transmitting picture file |
CN102075741A (en) * | 2010-12-14 | 2011-05-25 | 北京华环电子股份有限公司 | Image transmission method, terminal and system |
CN102819422A (en) * | 2011-06-09 | 2012-12-12 | 腾讯科技(深圳)有限公司 | Method and system for loading remote picture through control |
CN103326924A (en) * | 2012-03-21 | 2013-09-25 | 阿里巴巴集团控股有限公司 | Emerging message task control method, server and instant messaging client |
-
2013
- 2013-12-10 CN CN201310663313.0A patent/CN103744649A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1264090A (en) * | 1999-01-14 | 2000-08-23 | 富士写真胶片株式会社 | Image data communication system, service apparatus system and control method and recording medium thereof |
CN100394816C (en) * | 2004-01-13 | 2008-06-11 | 英华达(南京)科技有限公司 | Method for low-power hand set down-loading document data through personal computer |
CN1794776A (en) * | 2004-09-15 | 2006-06-28 | 腾讯科技(深圳)有限公司 | Method and system of processing image and its applicated in immediat communication |
CN101330451A (en) * | 2007-06-20 | 2008-12-24 | 华为技术有限公司 | Method for processing forwarding of data packet, node and packet core apparatus |
CN101472163A (en) * | 2007-12-25 | 2009-07-01 | 百度在线网络技术(北京)有限公司 | Method, apparatus and system for transmitting picture file |
CN102075741A (en) * | 2010-12-14 | 2011-05-25 | 北京华环电子股份有限公司 | Image transmission method, terminal and system |
CN102819422A (en) * | 2011-06-09 | 2012-12-12 | 腾讯科技(深圳)有限公司 | Method and system for loading remote picture through control |
CN103326924A (en) * | 2012-03-21 | 2013-09-25 | 阿里巴巴集团控股有限公司 | Emerging message task control method, server and instant messaging client |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101699405B (en) | Method and device for interaction between host program and plug-in and interaction between plug-ins | |
CN106302632B (en) | Downloading method of basic mirror image and management node | |
CN106201574B (en) | Application interface starting method and device | |
CN105446755B (en) | A kind of method and apparatus quickly loading Activity data in android system | |
CN104238883B (en) | Message read method and device on intelligent terminal | |
WO2015027789A1 (en) | Language control method, device and terminal | |
CN104202261A (en) | Service request processing method and device | |
US20110087730A1 (en) | Method, Device And System For Creating Instant Messaging System Window | |
CN103037195A (en) | Method and device used for setting video call parameters and transmission capacity parameters | |
CN105159728A (en) | Method and device for obtaining NTP time information based on android system | |
CN102999252B (en) | A kind of method of unlock interface application prestrain, device and terminal | |
CN109451020A (en) | Overtime management method, equipment and computer readable storage medium | |
CN104376086B (en) | Data processing method and device | |
CN103678364A (en) | Dynamic detection method and device for URL redirection endless loop | |
WO2017219446A1 (en) | Icon processing method and device | |
CN113641544B (en) | Method, apparatus, device, medium and product for detecting application state | |
CN103744649A (en) | Method for displaying screenshot in instant messaging | |
WO2016188227A1 (en) | Intelligent terminal shortcut establishment method and device | |
CN105245372A (en) | Optimization method for loading network resources based on cache and asynchronous mechanism | |
CN104239218B (en) | Real-time software stress test case generation method and device | |
CN114339637B (en) | Short message splicing method, device, equipment and storage medium | |
CN103793380B (en) | A kind of method and system for downloading picture in application | |
CN113742426B (en) | Data synchronization method, device, equipment, server and storage medium | |
CN105786468A (en) | Device connection method and apparatus | |
CN104104969A (en) | Video interception method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20140423 |
|
WD01 | Invention patent application deemed withdrawn after publication |