CN100407140C - An intercept method of dynamic picture - Google Patents

An intercept method of dynamic picture Download PDF

Info

Publication number
CN100407140C
CN100407140C CN2005101013777A CN200510101377A CN100407140C CN 100407140 C CN100407140 C CN 100407140C CN 2005101013777 A CN2005101013777 A CN 2005101013777A CN 200510101377 A CN200510101377 A CN 200510101377A CN 100407140 C CN100407140 C CN 100407140C
Authority
CN
China
Prior art keywords
dynamic picture
picture
intercept method
information
dynamic
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.)
Active
Application number
CN2005101013777A
Other languages
Chinese (zh)
Other versions
CN1963748A (en
Inventor
李斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN2005101013777A priority Critical patent/CN100407140C/en
Publication of CN1963748A publication Critical patent/CN1963748A/en
Application granted granted Critical
Publication of CN100407140C publication Critical patent/CN100407140C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

This invention discloses one dynamic picture catch method, which comprises the following steps: using Windows hook mechanism to get user mouse cursor information to determine rectangle area for recording, displaying and sending current rectangle dynamic picture information. By applying this invention, user can not only process regular message interaction but also can catch web page or other dynamic picture to singly send or merge text and dynamic pictures.

Description

A kind of intercept method of dynamic picture
Technical field
The present invention relates to computer technology, relate in particular to a kind of intercept method of dynamic picture.
Background technology
Along with the increase rapidly of quantity of information and the quickening of people's rhythm of life, network provides a kind of very convenient and information interchange mode efficiently for people.When network was more and more popularized, various types of JICQs (as QQ, TM, MSN etc.) had also become the requisite Software tool of user, not only were used in user's the work life, also used in user's free life in a large number simultaneously.
Can realize effectively linking up by the IM software users with the contact person is instant, in user and good friend get in touch, not only need the communication of plain text, equally also need the communication way that enriches, utilize the transmission of self-defined expression and various interesting picture all greatly to enrich the interest of the communication between the numerous netizens, as all having occurred the transmission propagation function of self-defined expression and picture in the existing IM software, by this function, the user can edit the exchange way of various image mixed character typesets, make that the interchange between the user is also more interesting, further satisfied user's individual demand.
In the prior art, the intercepting flow process of picture as shown in Figure 1, circulation is obtained user's click message and is judged whether the needs screen printing according to user's click message, if need then obtain the rectangular area that user's left mouse button Up message and Down message need to determine intercepting, set up the bitmap structure consistent and utilize the Windows shear plate that the on-screen data of current location rectangular area is copied to above-mentioned bitmap structure and preserve and transmit with above-mentioned rectangle size.Technique scheme is when the intercepting picture, and whole screen remains static, and the user selects a zone to double-click the picture of preserving in the current region again by mouse, and the picture of being preserved also is a kind of picture of static state; But along with the development of instant messaging with popularize, the user some the time need intercept and preserve dynamic picture, wish certain dynamic picture of seeing on webpage to be carried out screen interception and preserve as the user, perhaps good friend's dynamic QQ show is preserved by screen interception etc.
Summary of the invention
The invention provides a kind of intercept method of dynamic picture, exist the user can not intercept and preserve the problem of dynamic picture in order to solve in the prior art.
A kind of intercept method of dynamic picture of the present invention comprises:
A kind of intercept method of dynamic picture, the click message that comprising circulates obtains the user is also determined the rectangular area that the mouse place need intercept, and also comprises step:
A, judge whether the rectangular area of required intercepting comprises dynamic picture, if, execution in step B, otherwise the intercepting static images is also preserved;
B, obtain the dynamic picture information in current rectangle zone, set up the bitmap structure chained list and write down rectangular area, place dynamic picture information according to the dynamic picture information of being obtained; And
C, traversal bitmap structure chained list are preserved and demonstration dynamic picture information.
Also comprise left mouse button Up message and the Down message of obtaining the user before the described steps A, and determine the step of the rectangular area of needs intercepting according to the left mouse button Up message of being obtained and Down message.
Dynamic picture information among the described step B comprises the frame number information of dynamic picture.
Also comprise the step of obtaining current mouse information and judging whether to cancel the intercepting dynamic picture according to the mouse information of being obtained behind the described step B.
Described step C also comprises traversal bitmap structure chained list, the step that writes shear plate and preserve according to the sequence mode with set form.
Described step C also comprises and obtains the window handle data, obtains the concrete window object in dynamic picture place according to the window handle data, and according to fixed format carries out correspondence according to dynamic picture place window object and shear plate and duplicate the step that generates the sequence of pictures chained list.
Described step C also comprises and obtains the rectangle size data, generates demonstration context with the current device compatibility according to current device context in internal memory, traversal sequence of pictures chained list, and the byte stream in the sequence of pictures chained list write show contextual step.
Described step C also comprises according to api function generation temporary file handle, flows to the step that luggage carried and be saved to the indicated corresponding space of temporary file handle to showing the data byte in the context.
Described step C also comprises the picture file frame sequence in the combination temporary file handle, generates the dynamic picture format picture according to the dynamic picture form, utilizes the picture loading module to load the step of dynamic picture to specified window object and demonstration.
Described step C also comprises the step of preserving or send dynamic picture according to specified path.
Beneficial effect of the present invention is as follows:
Use a kind of intercept method of dynamic picture of the present invention, the user not only can carry out the communication of ordinary text message, and can intercepting page in chat process or the dynamic picture seen in other places, send separately or merge text and send with dynamic picture, the communication of greatly enriching between the user is experienced, allow the good friend of oneself share the interesting dynamic picture content of being seen at any time with oneself, for instant communication users brings favorable user experience.
Description of drawings
Fig. 1 is the process flow diagram of picture intercept method in the prior art;
Fig. 2 is the process flow diagram of a kind of intercept method of dynamic picture of the present invention.
Embodiment
The present invention is directed to the defective of prior art, the method that proposition can make terminal can carry out the dynamic picture intercepting and preserve is explained in detail main realization principle of the present invention and embodiment thereof below in conjunction with accompanying drawing.
Please refer to Fig. 2, this figure is the process flow diagram of a kind of intercept method of dynamic picture of the present invention, and its main implementation procedure is as follows:
Step S21, definite rectangular area that needs intercepting;
Utilize the Hook Mechanism of Windows to obtain user's left mouse button Up message and Down message, and determine the rectangular area of needs intercepting according to left mouse button Up message and Down message;
Described left mouse button Up message comprises horizontal ordinate and the Y value of current mouse in the relative screen upper left corner;
Described left mouse button Down message comprises horizontal ordinate and the Y value of current mouse in the relative screen lower right corner.
Step S22, judge in the above-mentioned rectangular area that needs intercepting whether comprise dynamic picture;
Utilize device context (the Device Context of Windows, DC) application programming interfaces (Application Program Interface, whether API) function comprises according to current rectangle place screen area the pixel data of continuous variation judges in the rectangular area, current place whether comprise dynamic picture;
If rectangular screen zone, current place does not comprise dynamic picture, execution in step S23 then sets up the bitmap structure consistent with above-mentioned rectangle size and utilizes the Windows shear plate that the on-screen data of current location rectangular area is copied to above-mentioned bitmap structure and preserve and transmit;
Step S24, intercepting dynamic picture;
If rectangular screen zone, current place comprises dynamic picture, utilize the api function of the device context of Windows to obtain current rectangle zone dynamic picture information, and set up the bitmap structure chained list according to the dynamic picture information of being obtained, record dynamic picture information;
Described dynamic picture information comprises the frame number information of dynamic picture;
Described bitmap structure chained list is to set up in internal memory according to the frame number information of dynamic picture, be used to write down the data byte information of dynamic picture, element in the bitmap structure chained list is corresponding one by one with the dynamic picture frame, and each element writes down the data byte information of corresponding frame;
Step S25, judge whether cancellation intercepting dynamic picture;
Utilize the Hook Mechanism of Windows to catch current mouse information, judge that according to the position data of the current mouse information of being caught mouse is whether in the rectangular area of required intercepting, if current mouse is not in the rectangular area of required intercepting, execution in step S32 then, cancellation intercepting dynamic picture, and the bitmap structure chained list of deletion step S24 foundation; If current mouse is in the rectangular area of required intercepting, execution in step S26 then;
Step S26 utilizes the api function traversal bitmap structure chained list of the shear plate of Windows, writes shear plate and preserves according to the sequence mode with set form;
Step S27 utilizes the api function of the window of Windows to obtain the window handle data, obtains concrete window object according to the window handle data, and according to fixed format carries out correspondence according to window object and shear plate and duplicate and generate the sequence of pictures chained list;
Step S28 obtains the rectangle size data, generates demonstration context with the current device compatibility according to current device context in internal memory, the sequence of pictures chained list that traversal step S27 generates, and the byte stream in the sequence of pictures chained list write the demonstration context;
Described demonstration context is that generate in internal memory according to current device context and the device context current device compatibility;
Step S29 utilizes the api function of Windows file to generate the temporary file handle, and the IPicture interface function that utilizes Windows is to showing that data byte in the context flows to luggage and carries and be saved to the indicated corresponding space of temporary file handle;
Step S30, the picture file frame sequence in the combination temporary file handle generates the dynamic picture format picture according to the dynamic picture form, utilizes the picture loading module to load dynamic picture to specified window object and demonstration;
Step S31 is according to the step of specified path preservation or transmission dynamic picture.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (10)

1. intercept method of dynamic picture comprising that circulation obtains user's click message and determine the rectangular area that the mouse place need intercept, and it is characterized in that, also comprises step:
A, judge whether the rectangular area of required intercepting comprises dynamic picture, if, execution in step B, otherwise the intercepting static images is also preserved;
B, obtain the dynamic picture information in current rectangle zone, set up the bitmap structure chained list and write down rectangular area, place dynamic picture information according to the dynamic picture information of being obtained; And
C, traversal bitmap structure chained list are preserved and demonstration dynamic picture information.
2. a kind of intercept method of dynamic picture as claimed in claim 1, it is characterized in that, also comprise left mouse button Up message and the Down message of obtaining the user before the described steps A, and determine the step of the rectangular area of needs intercepting according to the left mouse button Up message of being obtained and Down message.
3. a kind of intercept method of dynamic picture as claimed in claim 1 or 2 is characterized in that, the dynamic picture information among the described step B comprises the frame number information of dynamic picture.
4. a kind of intercept method of dynamic picture as claimed in claim 3 is characterized in that, also comprises the step of obtaining current mouse information and judging whether to cancel the intercepting dynamic picture according to the mouse information of being obtained behind the described step B.
5. a kind of intercept method of dynamic picture as claimed in claim 1 is characterized in that, described step C also comprises traversal bitmap structure chained list, the step that writes shear plate and preserve according to the sequence mode with set form.
6. a kind of intercept method of dynamic picture as claimed in claim 5, it is characterized in that, described step C also comprises and obtains the window handle data, obtain the concrete window object in dynamic picture place according to the window handle data, and according to fixed format carry out the step that correspondence is duplicated generation sequence of pictures chained list according to dynamic picture place window object and shear plate.
7. a kind of intercept method of dynamic picture as claimed in claim 6, it is characterized in that, described step C also comprises and obtains the rectangle size data, in internal memory, generate demonstration context with the current device compatibility according to current device context, travel through the sequence of pictures chained list, and the byte stream in the sequence of pictures chained list is write the contextual step of demonstration.
8. a kind of intercept method of dynamic picture as claimed in claim 7, it is characterized in that, described step C also comprises according to api function generation temporary file handle, flows to the step that luggage carried and be saved to the indicated corresponding space of temporary file handle to showing the data byte in the context.
9. a kind of intercept method of dynamic picture as claimed in claim 8, it is characterized in that, described step C also comprises the picture file frame sequence in the combination temporary file handle, generate the dynamic picture format picture according to the dynamic picture form, utilize the picture loading module to load the step of dynamic picture to specified window object and demonstration.
10. a kind of intercept method of dynamic picture as claimed in claim 1 is characterized in that, described step C also comprises the step of preserving or send dynamic picture according to specified path.
CN2005101013777A 2005-11-11 2005-11-11 An intercept method of dynamic picture Active CN100407140C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2005101013777A CN100407140C (en) 2005-11-11 2005-11-11 An intercept method of dynamic picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2005101013777A CN100407140C (en) 2005-11-11 2005-11-11 An intercept method of dynamic picture

Publications (2)

Publication Number Publication Date
CN1963748A CN1963748A (en) 2007-05-16
CN100407140C true CN100407140C (en) 2008-07-30

Family

ID=38082822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2005101013777A Active CN100407140C (en) 2005-11-11 2005-11-11 An intercept method of dynamic picture

Country Status (1)

Country Link
CN (1) CN100407140C (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101166161B (en) * 2007-10-11 2012-05-30 刘帅 A method for dynamically obtaining exchange on screen of other party in instant communication tool
CN102591500B (en) * 2011-01-06 2016-04-06 海尔集团公司 Touch-control drawing disposal system and method
CN102890596A (en) * 2011-07-21 2013-01-23 康祥环球有限公司 Computer system, image acquisition device and servo method of image acquisition device
CN103312916A (en) * 2012-03-15 2013-09-18 百度在线网络技术(北京)有限公司 Method and device for transmitting picture on mobile terminal
CN103455315B (en) * 2012-06-04 2018-09-07 百度在线网络技术(北京)有限公司 A kind of method and apparatus corresponding to target information for realizing screenshotss and acquisition
CN102724138B (en) * 2012-06-28 2015-09-02 北京奇虎科技有限公司 Information sharing method in instant messaging and device
CN103856507B (en) * 2012-11-30 2017-09-08 腾讯科技(深圳)有限公司 The static state display method and apparatus of network dynamic picture
CN103853576B (en) 2012-12-06 2017-05-24 腾讯科技(深圳)有限公司 Screenshot method and device
CN103345506A (en) * 2013-07-03 2013-10-09 云南电网公司 Rapid enterprise-level knowledge-gathering tool based on desktop terminal
KR101567555B1 (en) * 2015-05-18 2015-11-20 이미지랩409(주) Social network service system and method using image
CN105224611A (en) * 2015-09-08 2016-01-06 安一恒通(北京)科技有限公司 Based on the operation processing method of browser, device and browser
CN105867917B (en) * 2016-03-28 2019-05-03 努比亚技术有限公司 A kind of mobile terminal and the method for handling picture
CN106780685B (en) * 2017-03-23 2018-09-04 维沃移动通信有限公司 A kind of generation method and terminal of dynamic picture
CN107229402B (en) * 2017-05-22 2021-08-10 努比亚技术有限公司 Dynamic screen capturing method and device of terminal and readable storage medium
CN115866334B (en) * 2023-02-27 2023-05-16 成都华域天府数字科技有限公司 Data processing method for clipping and associating content in video flow

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
一种提高计算机屏幕图像传输速度的方法. 耿增民,余正涛,康海燕.计算机工程与应用,第1期. 2005
一种提高计算机屏幕图像传输速度的方法. 耿增民,余正涛,康海燕.计算机工程与应用,第1期. 2005 *
用Delphi实现屏幕截图送剪贴板. 熊新阶,肖小红,涂焱楚.计算机与数字工程,第30卷第2期. 2002
用Delphi实现屏幕截图送剪贴板. 熊新阶,肖小红,涂焱楚.计算机与数字工程,第30卷第2期. 2002 *

Also Published As

Publication number Publication date
CN1963748A (en) 2007-05-16

Similar Documents

Publication Publication Date Title
CN100407140C (en) An intercept method of dynamic picture
CN102289339B (en) Method and device for displaying expression information
CN100553238C (en) A kind of associated user display system and method
JP3546705B2 (en) Method and apparatus for associating annotation data with application window, system, and storage medium storing program for controlling association of annotation data with application window
US9262050B2 (en) System and method for displaying full product functionality using minimal user interface footprint
CN1819648B (en) Method and system to process video effects
US10545658B2 (en) Object processing and selection gestures for forming relationships among objects in a collaboration system
CN105871690B (en) Method and device for realizing instant messaging
JP2009519627A (en) System, method and computer program product for concurrent media collaboration
US20060170705A1 (en) Method and system to review the display of content
CN102368196A (en) Method, terminal and system for editing dynamical picture in content sending window of client side
CN110456956A (en) Screenshot method, device, computer equipment and storage medium
CN111803953A (en) Image processing method, image processing device, computer equipment and computer readable storage medium
CN103313120B (en) Show method, mobile terminal, high in the clouds and the system of picture
CN110633436B (en) Visual and user-defined panoramic editing method, system, storage medium and equipment
CN101882075A (en) Method for editing rich text and for restoring and displaying rich text through FLASH
CN109842541A (en) Information processing method, device and storage medium
CN111464430A (en) Dynamic expression display method, dynamic expression creation method and device
CN115396391B (en) Method, apparatus, device and storage medium for session message presentation
CN108986009A (en) Generation method, device and the electronic equipment of picture
CN109598775A (en) A kind of dynamic image synthetic method, device, terminal and storage medium
CN112230821A (en) Session display method and device, computer equipment and storage medium
Tung MediaBoard: A shared whiteboard application for the MBone
CN107248947B (en) Expression processing method and processing device, computer equipment and storage medium
CN112035206B (en) Message processing 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
C14 Grant of patent or utility model
GR01 Patent grant