CN100444099C - Screenshot method, screenshot device and instant messaging client - Google Patents

Screenshot method, screenshot device and instant messaging client Download PDF

Info

Publication number
CN100444099C
CN100444099C CNB2006101115489A CN200610111548A CN100444099C CN 100444099 C CN100444099 C CN 100444099C CN B2006101115489 A CNB2006101115489 A CN B2006101115489A CN 200610111548 A CN200610111548 A CN 200610111548A CN 100444099 C CN100444099 C CN 100444099C
Authority
CN
China
Prior art keywords
image
area
selection area
coordinates
selection
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
CNB2006101115489A
Other languages
Chinese (zh)
Other versions
CN101075172A (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 CNB2006101115489A priority Critical patent/CN100444099C/en
Publication of CN101075172A publication Critical patent/CN101075172A/en
Application granted granted Critical
Publication of CN100444099C publication Critical patent/CN100444099C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Medicines Containing Antibodies Or Antigens For Use As Internal Diagnostic Agents (AREA)

Abstract

本发明公开了一种截图方法,该方法包括:A.在屏幕背景图像中确定初始化选区;B.记录鼠标在初始化选区内的移动轨迹,将鼠标移动轨迹所围成的区域确定为选区;C.将屏幕背景图像中与所述选区对应的范围保存为选区图像。通过本发明的实施,能够截取鼠标移动画出的任意形状的图像。本发明还可以对选区图像进行即时的编辑,避免了用户通过复杂的手段对图像中的内容进行说明等,大大方便了用户的使用。进一步,本发明可以应用到即时通讯客户端中,这样,用户可以通过即时通讯客户端截取任意形状图像并发送给其它即时通讯客户端。

Figure 200610111548

The invention discloses a screenshot method, which comprises: A. determining the initialization selection area in the screen background image; B. recording the movement track of the mouse in the initialization selection area, and determining the area surrounded by the mouse movement track as the selection area; C. . Saving the range corresponding to the selected area in the screen background image as the selected area image. Through the implementation of the present invention, images of arbitrary shapes drawn by moving the mouse can be intercepted. The present invention can also carry out real-time editing on the image of the selected area, which avoids the user from explaining the content in the image through complicated means, and greatly facilitates the use of the user. Furthermore, the present invention can be applied to an instant messaging client, so that a user can capture an image of any shape through the instant messaging client and send it to other instant messaging clients.

Figure 200610111548

Description

截图方法、截图装置及即时通讯客户端 Screenshot method, screenshot device and instant messaging client

技术领域 technical field

本发明涉及图像处理技术领域,特别是截图方法、截图装置以及即时通讯客户端。The invention relates to the technical field of image processing, in particular to a screenshot method, a screenshot device and an instant messaging client.

背景技术 Background technique

随着互联网技术的发展,即时通信(IM)工具已经是广大网络用户不可缺少的网络工具。IM工具通过点对点的技术来实现互联网上的即时沟通,甚至是几个用户的群聊。With the development of Internet technology, Instant Messaging (IM) tools have become indispensable network tools for the majority of network users. The IM tool realizes instant communication on the Internet through peer-to-peer technology, even a group chat of several users.

在利用IM工具进行沟通的过程中,用户不仅需要向对方发送文字信息,还需要向对方发送图像信息,所述图像信息可以是预先保存的图像文件,也可以是即时从当前计算机屏幕背景图像中截取的图像。In the process of using IM tools to communicate, users not only need to send text messages to the other party, but also need to send image information to the other party. The image information can be a pre-saved image file, or it can be instantly downloaded from the background image of the current computer screen. Captured image.

在现有的IM工具中,有些IM工具已经可以提供截图功能。用户在IM工具聊天窗口的工具条中点击捕捉屏幕按钮,可以进入屏幕捕捉的界面,然后通过鼠标左键选择目标捕捉,即按下鼠标左键后将鼠标从坐标(x1、y1)移到坐标(x2,y2),则以x=x1、x=x2、y=y1、y=y2四条直线围成的矩形为边界截取图像,然后在选择的范围内双击左键即可确定捕捉的图像,选定的图像会自动导入到聊天窗口的输入栏中。在捕捉过程中,用户还可以使用鼠标右键或者键盘的Esc键退出捕捉。Among existing IM tools, some IM tools can already provide a screenshot function. The user clicks the capture screen button in the tool bar of the IM tool chat window to enter the screen capture interface, and then selects the target capture with the left mouse button, that is, after pressing the left mouse button, move the mouse from the coordinates (x1, y1) to the coordinates (x2, y2), then take the rectangle surrounded by four straight lines x=x1, x=x2, y=y1, y=y2 as the boundary to intercept the image, then double-click the left button in the selected range to determine the captured image, The selected image is automatically imported into the input field of the chat window. During the capture process, the user can also use the right mouse button or the keyboard's Esc key to exit the capture.

但是,现有IM工具的截图功能具有如下的缺点:However, the screenshot function of the existing IM tool has the following disadvantages:

1)只提供用户截取矩形形状的屏幕背景,灵活性不好。比如用户在截取屏幕时可能只想让对方看到屏幕某部分内容而其它是不能给看到,用矩形形状选取的屏幕截图就不能很灵活地处理这样的问题。1) It only provides the screen background that the user intercepts in a rectangular shape, and the flexibility is not good. For example, when a user captures a screen, he or she may only want the other party to see a certain part of the screen while others cannot be seen. Screen captures selected with a rectangular shape cannot handle such problems flexibly.

2)在截图后不能进行即时编辑,有时用户需要对截图进行说明,给予对方更多的提示时,还需要在文字信息输入框里输入许多文字才能解释清楚。比如用户截取了一个多人合照的图像并且想让对方知道每个人的名字,那么用户还需要在文字信息输入框里这样描述:“左边第一个是张三,右边倒数第二个是李四”。2) Immediate editing cannot be performed after the screenshot. Sometimes the user needs to explain the screenshot, and when giving more prompts to the other party, he also needs to input a lot of words in the text information input box to explain clearly. For example, if a user captures an image of a group photo of multiple people and wants the other party to know the names of each person, the user also needs to describe in the text information input box: "The first one on the left is Zhang San, and the penultimate one on the right is Li Si ".

发明内容 Contents of the invention

有鉴于此,本发明提出了一种截图方法,用以截取任意形状的图像。本发明的另一个目的在于提出一种截图装置。本发明的再一个目的在于提出一种即时通讯客户端。In view of this, the present invention proposes a screenshot method for capturing images of arbitrary shapes. Another object of the present invention is to provide a screenshot device. Another object of the present invention is to provide an instant messaging client.

根据上述目的,本发明提供了一种截图方法,该方法包括:According to the above purpose, the present invention provides a screenshot method, the method comprising:

A.在屏幕背景图像中确定初始化选区;A. Determine the initialization selection area in the screen background image;

B.记录鼠标在初始化选区内的移动轨迹,将鼠标移动轨迹所围成的区域确定为选区;B. Record the moving track of the mouse in the initialization selection area, and determine the area surrounded by the mouse movement track as the selection area;

C.将屏幕背景图像中与所述选区对应的范围保存为选区图像。C. Save the range corresponding to the selected area in the screen background image as the selected area image.

所述步骤B包括:对鼠标移动轨迹经过的坐标添加标记,逐行遍历初始化选区的坐标,在各行中第奇数次遇到所述标记时记录对应的坐标为选区边界的开始坐标,第偶数次遇到所述标记时记录对应的坐标为选区边界的结束坐标,并将相邻开始坐标与结束坐标之间的区域记录为该行的选区;或者,对鼠标移动轨迹经过的坐标添加标记,逐列遍历初始化选区的坐标,在各列中第奇数次遇到所述标记时记录对应的坐标为选区边界的开始坐标,第偶数次遇到所述标记时记录对应的坐标为选区边界的结束坐标,并将相邻开始坐标与结束坐标之间的区域记录为该列的选区。The step B includes: adding a mark to the coordinates of the mouse movement track, traversing the coordinates of the initialization selection area line by line, and recording the corresponding coordinates as the start coordinates of the selection area boundary when the mark is encountered for the odd number of times in each row, and for the even number of times When encountering the mark, record the corresponding coordinates as the end coordinates of the selection area boundary, and record the area between the adjacent start coordinates and the end coordinates as the selection area of the row; or, add a mark to the coordinates passed by the mouse movement track, and Traversing the coordinates of the initial selection area by traversing the column, recording the corresponding coordinates when the mark is encountered in odd numbers in each column as the start coordinates of the selection area boundary, and recording the corresponding coordinates as the end coordinates of the selection area boundary when the mark is encountered in the even number of times , and record the area between the adjacent start coordinates and end coordinates as the selection area of the column.

步骤B进一步包括在初始化选区内移动所述选区的步骤。Step B further includes the step of moving said constituency within the initial constituency.

步骤C进一步包括对所述选区图像进行编辑的步骤。Step C further includes the step of editing the selected area image.

步骤C中所述保存包括:获取选区的横坐标最小值和最大值以及纵坐标的最小值和最大值,并确定一矩形图像,该矩形图像至少包括由所述横坐标最小值和最大值以及纵坐标的最小值和最大值界定的矩形;读取所述选区图像,并添加到所述矩形图像中;保存所述矩形图像为选区图像。The saving in step C includes: obtaining the minimum and maximum values of the abscissa and the minimum and maximum values of the ordinate of the selected area, and determining a rectangular image, which at least includes the minimum and maximum values of the abscissa and A rectangle defined by the minimum value and maximum value of the ordinate; read the selection image and add it to the rectangle image; save the rectangle image as the selection image.

步骤C之后进一步包括:通过即时通讯工具发送所述选区图像。After step C, it further includes: sending the image of the selected area through an instant messaging tool.

本发明还提供了一种截图装置,该装置包括键盘鼠标事件捕捉模块、选区确定模块、图像处理模块,其中:The present invention also provides a screenshot device, which includes a keyboard and mouse event capture module, a selected area determination module, and an image processing module, wherein:

键盘鼠标事件捕捉模块,用于记录鼠标移动轨迹,并提供给选区确定模块;The keyboard and mouse event capture module is used to record the mouse movement track and provide it to the selection area determination module;

选区确定模块,用于将所述鼠标移动轨迹所围成的区域确定为选区;A selection area determination module, configured to determine the area enclosed by the mouse movement track as a selection area;

图像处理模块,用于将屏幕背景图像中与所述选区对应的范围保存为选区图像。The image processing module is used to save the range corresponding to the selection area in the screen background image as the selection area image.

该装置进一步包括:图像即时编辑模块,用于对所述选区图像进行编辑。The device further includes: an image instant editing module, configured to edit the selected area image.

所述键盘鼠标事件捕捉模块进一步用于在确定选区后获取鼠标拖拉的始起点和目标点;所述选区确定模块进一步根据所述起始点和目标点移动所述选区。The keyboard and mouse event capture module is further used to obtain the starting point and target point of mouse dragging after determining the selected area; the selected area determining module further moves the selected area according to the starting point and target point.

本发明还提供了一种包括上述截图装置的即时通讯客户端,该即时通讯客户端还包括客户端通信模块,用于发送所述选区图像。The present invention also provides an instant messaging client including the above screenshot device, and the instant messaging client also includes a client communication module, configured to send the image of the selection area.

从上述方案中可以看出,由于本发明在选区时记录鼠标移动轨迹,将鼠标移动轨迹所围成的区域确定为选区,并将屏幕背景图像中与所述选区对应的范围保存为选区图像,从而能够截取鼠标移动画出的任意形状的图像。本发明还可以在确定选区后移动该选区,使得用户在确定选区有所偏差时不必重新用鼠标画选区,而只需要将原选区移动到所要截取图像的位置即可。本发明还可以对选区图像进行即时的编辑,避免了用户通过复杂的手段对图像中的内容进行说明等,大大方便了用户的使用。进一步,本发明可以应用到即时通讯客户端中,这样,用户可以通过即时通讯客户端截取任意形状图像并发送给其它即时通讯客户端。As can be seen from the above scheme, since the present invention records the mouse movement trajectory when selecting a region, the area surrounded by the mouse movement trajectory is determined as a selection region, and the range corresponding to the selection region in the screen background image is saved as a selection region image, Thus, images of arbitrary shapes drawn by mouse movement can be intercepted. The present invention can also move the selection area after the selection area is determined, so that the user does not need to draw the selection area with the mouse again when the selection area is determined to be deviated, but only needs to move the original selection area to the position where the image is to be intercepted. The present invention can also carry out real-time editing on the image of the selected area, which avoids the user from explaining the content in the image through complicated means, and greatly facilitates the use of the user. Further, the present invention can be applied to an instant messaging client, so that a user can capture an image of any shape through the instant messaging client and send it to other instant messaging clients.

附图说明 Description of drawings

图1为本发明实施例中截图装置的示意图;FIG. 1 is a schematic diagram of a screenshot device in an embodiment of the present invention;

图2为本发明实施例中通过鼠标移动轨迹确定选区的示意图;FIG. 2 is a schematic diagram of determining a selected area through a mouse movement track in an embodiment of the present invention;

图3为本发明实施例中图像即时编辑模块所提供的功能按钮示意图;3 is a schematic diagram of function buttons provided by the image instant editing module in an embodiment of the present invention;

图4和图5为本发明实施例中编辑选区图像的示意图;FIG. 4 and FIG. 5 are schematic diagrams of editing a selected area image in an embodiment of the present invention;

图6为本发明实施例所得到的选区图像的示意图;FIG. 6 is a schematic diagram of a selected area image obtained in an embodiment of the present invention;

图7为本发明实施例中即时通讯客户端的结构示意图;FIG. 7 is a schematic structural diagram of an instant messaging client in an embodiment of the present invention;

图8为本发明实施例的流程示意图。Fig. 8 is a schematic flowchart of an embodiment of the present invention.

具体实施方式 Detailed ways

为使本发明的目的、技术方案和优点更加清楚,以下举实施例对本发明进一步详细说明。In order to make the purpose, technical solution and advantages of the present invention clearer, the following examples are given to further describe the present invention in detail.

图1为本发明实施例中截图装置100的结构示意图。参见图1,该截图装置100包括键盘鼠标事件捕捉模块10、选区确定模块20、图像处理模块30,还可以进一步包括图像即时编辑模块40。FIG. 1 is a schematic structural diagram of a screenshot device 100 in an embodiment of the present invention. Referring to FIG. 1 , the screenshot device 100 includes a keyboard and mouse event capture module 10 , a selection area determination module 20 , an image processing module 30 , and may further include an image instant editing module 40 .

在图1所示的截图装置100中,键盘鼠标事件捕捉模块10主要接收键盘和鼠标事件,例如记录鼠标移动轨迹并提供给选区确定模块20;接收键盘的输入以及鼠标的输入,诸如键盘输入的退出(Esc)、回车(Enter)以及鼠标的拖拉、左键单击、右键单击、左键双击等,并提供给选区确定模块20。In the screenshot device 100 shown in FIG. 1 , the keyboard and mouse event capture module 10 mainly receives keyboard and mouse events, such as recording the mouse movement track and providing it to the selected area determination module 20; receiving keyboard input and mouse input, such as keyboard input Exit (Esc), carriage return (Enter), dragging, left-clicking, right-clicking, left-clicking, etc., and provide them to the selection area determination module 20 .

选区确定模块20将所述鼠标移动轨迹所围成的区域确定为选区,在此之前,还可以在屏幕背景图案中确定初始化选区,通常确定初始化选区为整个屏幕背景图像。The selected area determining module 20 determines the area enclosed by the mouse movement track as the selected area. Before that, the initial selected area can also be determined in the screen background pattern, and usually the initial selected area is determined as the entire screen background image.

选区确定模块20确定选区的方法如下:在确定初始化选区时,将屏幕中所有像素点坐标的标记置为0,接收到键盘鼠标事件捕捉模块10发送来的鼠标移动轨迹后,将鼠标移动轨迹经过坐标的标记置为1,那么在整个屏幕中,鼠标移动轨迹经过的像素点坐标都标记为1,鼠标未经过的像素点坐标仍标记为0;然后逐行遍历初始化选区的坐标,在各行中第奇数次遇到所述标记为1的坐标时,记录对应的坐标为选区边界的开始坐标,第偶数次遇到所述标记为1的坐标时,记录对应的坐标为选区边界的结束坐标,并将相邻开始坐标与结束坐标之间的区域记录为该行的选区,例如在某行第1次标记为1的坐标与第2次标记为1的坐标之间的区域或者第5次标记为1的坐标与第6次标记为1的坐标之间的区域;逐行遍历以后,就得到整个屏幕的选区。图2所示的是通过鼠标移动轨迹确定选区的示意图,在图2中,由铅笔所示的鼠标在屏幕背景图像上通过移动形成了一个不规则的圆形,并确定为选区。The method for the selection area determination module 20 to determine the selection area is as follows: when determining the initialization selection area, the marks of all pixel point coordinates in the screen are set to 0, and after receiving the mouse movement track sent by the keyboard and mouse event capture module 10, the mouse movement track passes through If the mark of the coordinate is set to 1, then in the whole screen, the coordinates of the pixels passed by the mouse movement track are marked as 1, and the coordinates of the pixels not passed by the mouse are still marked as 0; then traverse the coordinates of the initialization selection area line by line, in each line When the coordinate marked as 1 is encountered for the odd number of times, the corresponding coordinate is recorded as the start coordinate of the constituency boundary, and when the coordinate marked as 1 is encountered for the even number of times, the corresponding coordinate is recorded as the end coordinate of the constituency boundary, And record the area between the adjacent start coordinates and end coordinates as the selection area of the line, for example, the area between the coordinates marked as 1 for the first time and the coordinates marked as 1 for the second time or the fifth time in a certain line The area between the coordinate of 1 and the sixth coordinate marked as 1; after traversing line by line, the selection area of the entire screen is obtained. FIG. 2 is a schematic diagram of determining a selected area through the moving track of the mouse. In FIG. 2 , the mouse shown by a pencil moves on the background image of the screen to form an irregular circle, which is determined as the selected area.

当然,在确定选区时,也可以逐列地遍历坐标,具体实现与逐行遍历相似,这里不再赘述。Of course, when determining the selected area, the coordinates can also be traversed column by column, and the specific implementation is similar to the row by row traversal, which will not be repeated here.

进一步,在确定了选区之后,如果键盘鼠标事件捕捉模块10捕捉到鼠标拖拉信息,并将鼠标拖拉的起始点和目标点坐标发送给选区确定模块20,则选区确定模块20进一步可以根据起始点和目标点坐标移动选区,并且保持选区的形状。简单来说,就是计算目标点坐标与起始点坐标的差值,然后将选区的所有坐标统一加上该差值。如果还没有确定选区,则根据鼠标的拖拉轨迹确定选区。Further, after determining the selected area, if the keyboard and mouse event capture module 10 captures the mouse drag information, and sends the starting point and target point coordinates of the mouse drag to the selected area determining module 20, then the selected area determining module 20 can further determine according to the starting point and The coordinates of the target point move the selection area and maintain the shape of the selection area. To put it simply, it is to calculate the difference between the coordinates of the target point and the coordinates of the starting point, and then add the difference to all the coordinates of the selected area. If the selection area has not been determined, the selection area is determined according to the dragging track of the mouse.

图像处理模块30用于将屏幕背景图像中与所述选区对应的范围保存为选区图像。在确定选区之后,图像处理模块30将选区以外的部分以某种透明色遮盖,从而与选区区分开来,进一步,还可以在鼠标移到选区内部时将鼠标形状显示为表示可以进行拖拉的光标,而在鼠标移到选区外部时,将鼠标形状显示为铅笔形状。当键盘鼠标事件捕捉模块10接收到鼠标双击对,图像处理模块30获取选区的横坐标最小值Xmin、横坐标最大值Xmax、纵坐标最小值Ymin以及纵坐标最大值Ymax,然后确定一个矩形图像,该矩形图像的四个顶点可以为(Xmin,Ymin)、(Xmin,Ymax)(Xmax,Ymin)(Xmax,Ymax),也可以比这四个点确定的矩形大,也就是说所确定的矩形至少要包括这四个点,显然选区在这个矩形之内。之后,图像处理模块30读取选区图像,把所读取的选区图像添加到上面确定矩形图像中,然后保存,这样实现了对选区图像的保存。The image processing module 30 is configured to save the range corresponding to the selection area in the screen background image as the selection area image. After the selected area is determined, the image processing module 30 covers the part outside the selected area with a certain transparent color, thereby distinguishing it from the selected area. Further, when the mouse moves into the selected area, the shape of the mouse can be displayed as a cursor that can be dragged , and displays the mouse shape as a pencil when the mouse moves outside the selection. When the keyboard and mouse event capture module 10 receives a double-click of the mouse, the image processing module 30 obtains the abscissa minimum value Xmin, the abscissa maximum value Xmax, the ordinate minimum value Ymin and the ordinate maximum value Ymax of the selected area, and then determines a rectangular image, The four vertices of the rectangular image can be (Xmin, Ymin), (Xmin, Ymax) (Xmax, Ymin) (Xmax, Ymax), and can also be larger than the rectangle determined by these four points, that is to say the determined rectangle At least these four points must be included, and the constituency is obviously within this rectangle. Afterwards, the image processing module 30 reads the image of the selected area, adds the read image of the selected area to the above determined rectangular image, and then saves it, thus realizing the preservation of the image of the selected area.

继续参照图1,本发明实施例的截图装置100还可以进一步包括用于对选区图像进行编辑的图像即时编辑模块40。该图像即时编辑模块40所提供的功能与一般图像编辑软件所具有的功能相似,例如铅笔、橡皮擦、直线、直线箭头、矩形、圆形、文本框、颜色选择和高亮等。图像即时编辑模块40在屏幕上显示与这些功能响应的按钮,这些按钮如图3所示,当接收到用户选择某按钮的信息后,调用相应的功能单元,对图形进行编辑。例如,如图4所示,在图4中通过铅笔功能在选区图像上写、画,还可以利用橡皮擦功能擦去所写的字,还可以使用颜色选择功能选择铅笔、直线、直线箭头、矩形、圆形、文本框等的颜色。如图5所示,在图中从左到右本别是矩形、圆形、文本框、直线箭头功能的展示。图6为本发明实施例中所得到选区图像的示意图。Continuing to refer to FIG. 1 , the screenshot device 100 in the embodiment of the present invention may further include an image instant editing module 40 for editing the selected area image. The functions provided by the instant image editing module 40 are similar to those of general image editing software, such as pencils, erasers, straight lines, straight arrows, rectangles, circles, text boxes, color selection and highlighting. The image instant editing module 40 displays buttons corresponding to these functions on the screen. These buttons are shown in FIG. 3 . After receiving the information that the user selects a button, the corresponding function unit is called to edit the graphics. For example, as shown in Figure 4, in Figure 4, the pencil function is used to write and draw on the selected area image, and the eraser function can also be used to erase the written words, and the color selection function can also be used to select pencils, straight lines, straight arrows, The color of rectangles, circles, text boxes, etc. As shown in Figure 5, from left to right in the figure are the functions of rectangle, circle, text box, and straight arrow. FIG. 6 is a schematic diagram of a selected area image obtained in an embodiment of the present invention.

图7是本发明实施例中即时通讯客户端200的结构示意图。参照图7,即时通讯客户端200包括客户端通讯模块50以及截图装置100。其中客户端通讯模块50是即时通讯客户端的重要组成部分,此模块主要集成了文字聊天通信、图片传输、音频/视频传输等功能,在本发明实施例中,客户端通讯模块50提供了截图装置100的入口,并且在截图装置100将得到的选区图像提供给客户端通讯模块50后,该客户端通讯模块50将选区图像导入到聊天窗口输入框,然后将该选区图像发送给对方。FIG. 7 is a schematic structural diagram of an instant messaging client 200 in an embodiment of the present invention. Referring to FIG. 7 , the instant messaging client 200 includes a client communication module 50 and a screenshot device 100 . Wherein the client communication module 50 is an important part of the instant messaging client, this module mainly integrates functions such as text chat communication, picture transmission, audio/video transmission, in the embodiment of the present invention, the client communication module 50 provides a screenshot device 100, and after the screenshot device 100 provides the selected area image to the client communication module 50, the client communication module 50 imports the selected area image into the chat window input box, and then sends the selected area image to the other party.

图8为本发明实施例的流程示意图。这里以图7所示的即时通讯客户端为例描述本发明实施例的截图过程,该过程包括以下步骤:Fig. 8 is a schematic flowchart of an embodiment of the present invention. Here, the screenshot process of the embodiment of the present invention is described by taking the instant messaging client shown in FIG. 7 as an example, and the process includes the following steps:

步骤101至步骤102,用户在客户端通讯模块50选择点击截图装置100的入口,触发截图装置100进行截图功能,截图装置100进入截图状态。From step 101 to step 102, the user selects and clicks on the entry of the screenshot device 100 in the client communication module 50, triggers the screenshot device 100 to perform a screenshot function, and the screenshot device 100 enters a screenshot state.

步骤103,选区确定模块20确定初始化选区为整个屏幕,即此时选区图像为整个屏幕背景图像,并将初始化选区图像提供给图像处理模块30。Step 103 , the selected area determination module 20 determines that the initial selected area is the entire screen, that is, the image of the selected area is the background image of the entire screen at this time, and provides the initial selected area image to the image processing module 30 .

步骤104,图像即时编辑模块40对选区图像进行编辑,例如:采用铅笔功能进行写画;采用橡皮擦功能擦去选区图像的某些内容;利用直线或直线箭头功能在选区图像中增加直线或带箭头的直线;利用矩形或圆形功能,在选区图像中添加矩形框或圆形,可以圈出选区图像中的部分内容;利用文本框在选区图像中添加文字内容;利用高亮功能突出显示选区图像的部分或全部内容;利用颜色选择功能选择铅笔、直线、直线箭头、矩形、圆形、文字以及高亮的颜色。Step 104, the image instant editing module 40 edits the selected area image, for example: use the pencil function to write and draw; use the eraser function to erase some content of the selected area image; The straight line of the arrow; use the rectangle or circle function to add a rectangular frame or circle to the selection image to circle part of the content in the selection image; use the text box to add text content to the selection image; use the highlight function to highlight the selection area Part or all of an image; use the color selection feature to choose the color of pencils, lines, line arrows, rectangles, circles, text, and highlights.

步骤105,键盘鼠标事件捕捉模块10捕捉键盘鼠标事件,如果捕捉到的是鼠标拖拉,则执行步骤108;如果捕捉到的鼠标双击,则执行步骤111:如果捕捉到的是鼠标右键、键盘Esc等其他信号,则执行步骤106。Step 105, the keyboard and mouse event capture module 10 captures the keyboard and mouse event, and if it is mouse dragging that is captured, then step 108 is performed; if the mouse that is captured is double-clicked, then step 111 is performed: if what is captured is the right mouse button, keyboard Esc, etc. For other signals, go to step 106.

步骤106,键盘鼠标事件捕捉模块10将捕捉到的信号传送给选区确定模块20,选区确定模块20判断选区是否已经确定,如果确定则执行步骤103;否则执行步骤107,退出屏幕捕捉状态,结束本流程。Step 106, the keyboard and mouse event capture module 10 transmits the captured signal to the selected area determination module 20, and the selected area determination module 20 judges whether the selected area has been determined, and if it is determined, then executes step 103; otherwise, executes step 107, exits the screen capture state, and ends this program process.

步骤108,键盘鼠标事件捕捉模块10将捕捉到的鼠标拖拉信息传送给选区确定模块20,选区确定模块20判断选区是否确定,如果确定则执行步骤109,否则执行步骤110。Step 108, the keyboard and mouse event capture module 10 transmits the captured mouse dragging information to the selected area determination module 20, and the selected area determination module 20 judges whether the selected area is determined, and if yes, executes step 109; otherwise, executes step 110.

步骤109,选区确定模块20根据鼠标拖拉的起始点和目标点移动选区,并保持选区的形状不变,然后执行步骤104。Step 109 , the selected area determination module 20 moves the selected area according to the starting point and target point dragged by the mouse, and keeps the shape of the selected area unchanged, and then executes step 104 .

步骤110,选区确定模块20根据拖拉轨迹确定选区,然后执行步骤104。Step 110 , the selection area determination module 20 determines the selection area according to the dragging track, and then executes step 104 .

步骤111,图象处理模块30将选区图像导入客户端通讯模块50的聊天窗口输入框,然后客户端通讯模块50将所述选区图像出去,给即时通讯对端。In step 111, the image processing module 30 imports the selected area image into the chat window input box of the client communication module 50, and then the client communication module 50 sends the selected area image to the instant messaging peer.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the scope of the present invention. within the scope of protection.

Claims (10)

1、一种截图方法,其特征在于,该方法包括:1. A screenshot method, characterized in that the method comprises: A.在屏幕背景图像中确定初始化选区;A. Determine the initialization selection area in the screen background image; B.记录鼠标在初始化选区内的移动轨迹,将鼠标移动轨迹所围成的区域确定为选区;B. Record the moving track of the mouse in the initialization selection area, and determine the area surrounded by the mouse movement track as the selection area; C.将屏幕背景图像中与所述选区对应的范围保存为选区图像。C. Save the range corresponding to the selected area in the screen background image as the selected area image. 2、根据权利要求1所述的方法,其特征在于,所述步骤B包括:2. The method according to claim 1, wherein said step B comprises: 对鼠标移动轨迹经过的坐标添加标记,逐行遍历初始化选区的坐标,在各行中第奇数次遇到所述标记时记录对应的坐标为选区边界的开始坐标,第偶数次遇到所述标记时记录对应的坐标为选区边界的结束坐标,并将相邻开始坐标与结束坐标之间的区域记录为该行的选区;或者,Add a mark to the coordinates of the mouse movement track, traverse the coordinates of the initial selection area line by line, record the corresponding coordinates as the start coordinates of the selection area boundary when the mark is encountered for the odd number of times in each row, and when the mark is encountered for the even number of times Record the corresponding coordinates as the end coordinates of the selection boundary, and record the area between the adjacent start coordinates and end coordinates as the selection area of the line; or, 对鼠标移动轨迹经过的坐标添加标记,逐列遍历初始化选区的坐标,在各列中第奇数次遇到所述标记时记录对应的坐标为选区边界的开始坐标,第偶数次遇到所述标记时记录对应的坐标为选区边界的结束坐标,并将相邻开始坐标与结束坐标之间的区域记录为该列的选区。Add a mark to the coordinates of the mouse movement track, traverse the coordinates of the initialization selection area column by column, record the corresponding coordinates as the start coordinates of the selection area boundary when the mark is encountered for the odd number of times in each column, and the mark is encountered for the even number of times Record the corresponding coordinates as the end coordinates of the selection boundary, and record the area between the adjacent start coordinates and end coordinates as the selection area of the column. 3、根据权利要求1所述的方法,其特征在于,步骤B进一步包括在初始化选区内移动所述选区的步骤。3. The method according to claim 1, wherein step B further comprises the step of moving said selection area within the initial selection area. 4、根据权利要求1所述的方法,其特征在于,步骤C进一步包括对所述选区图像进行编辑的步骤。4. The method according to claim 1, characterized in that step C further comprises the step of editing the selected area image. 5、根据权利要求1所述的方法,其特征在于,步骤C中所述保存包括:5. The method according to claim 1, wherein the saving in step C comprises: 获取选区的横坐标最小值和最大值以及纵坐标的最小值和最大值,并确定一矩形图像,该矩形图像至少包括由所述横坐标最小值和最大值以及纵坐标的最小值和最大值界定的矩形;Obtain the minimum and maximum values of the abscissa and the minimum and maximum values of the ordinate of the selected area, and determine a rectangular image, which at least includes the minimum and maximum values of the abscissa and the minimum and maximum values of the ordinate bounding rectangle; 读取所述选区图像,并添加到所述矩形图像中;Read the selection image and add it to the rectangle image; 保存所述矩形图像为选区图像。Save the rectangle image as a selection image. 6、根据权利要求1所述的方法,其特征在于,步骤C之后进一步包括:6. The method according to claim 1, characterized in that, after step C, further comprising: 通过即时通讯工具发送所述选区图像。Send the selection image via instant messenger. 7、一种截图装置,其特征在于,该装置包括键盘鼠标事件捕捉模块、选区确定模块、图像处理模块,其中:7. A screenshot device, characterized in that the device includes a keyboard and mouse event capture module, a selected area determination module, and an image processing module, wherein: 键盘鼠标事件捕捉模块,用于记录鼠标移动轨迹,并提供给选区确定模块;The keyboard and mouse event capture module is used to record the mouse movement track and provide it to the selection area determination module; 选区确定模块,用于将所述鼠标移动轨迹所围成的区域确定为选区;A selection area determination module, configured to determine the area enclosed by the mouse movement track as a selection area; 图像处理模块,用于将屏幕背景图像中与所述选区对应的范围保存为选区图像。The image processing module is used to save the range corresponding to the selection area in the screen background image as the selection area image. 8、根据权利要求7所述的装置,其特征在于,该装置进一步包括:8. The device according to claim 7, further comprising: 图像即时编辑模块,用于对所述选区图像进行编辑。The image instant editing module is used for editing the selected area image. 9、根据权利要求7所述的装置,其特征在于,9. The device of claim 7, wherein: 所述键盘鼠标事件捕捉模块进一步用于在确定选区后获取鼠标拖拉的始起点和目标点;The keyboard and mouse event capture module is further used to obtain the starting point and target point of mouse dragging after determining the selected area; 所述选区确定模块进一步根据所述起始点和目标点移动所述选区。The selection area determining module further moves the selection area according to the starting point and the target point. 10、一种包括如权利要求7~9中任一项所述截图装置的即时通讯客户端,其特征在于,该即时通讯客户端还包括客户端通信模块,用于发送所述选区图像。10. An instant messaging client comprising the screenshot device according to any one of claims 7 to 9, characterized in that the instant messaging client further comprises a client communication module configured to send the image of the selection area.
CNB2006101115489A 2006-08-23 2006-08-23 Screenshot method, screenshot device and instant messaging client Active CN100444099C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006101115489A CN100444099C (en) 2006-08-23 2006-08-23 Screenshot method, screenshot device and instant messaging client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006101115489A CN100444099C (en) 2006-08-23 2006-08-23 Screenshot method, screenshot device and instant messaging client

Publications (2)

Publication Number Publication Date
CN101075172A CN101075172A (en) 2007-11-21
CN100444099C true CN100444099C (en) 2008-12-17

Family

ID=38976245

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006101115489A Active CN100444099C (en) 2006-08-23 2006-08-23 Screenshot method, screenshot device and instant messaging client

Country Status (1)

Country Link
CN (1) CN100444099C (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102708540A (en) * 2012-04-21 2012-10-03 上海量明科技发展有限公司 Method and client side for zooming screen capturing areas

Families Citing this family (49)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477440A (en) * 2009-01-15 2009-07-08 腾讯科技(深圳)有限公司 Screen capturing method and system
CN101527690B (en) * 2009-04-13 2012-03-21 腾讯科技(北京)有限公司 Method for intercepting dynamic image, system and device thereof
CN102136153B (en) * 2010-01-22 2016-05-25 腾讯科技(深圳)有限公司 A kind of method and device of the picture processing for JICQ
CN102263706A (en) * 2010-05-26 2011-11-30 腾讯科技(深圳)有限公司 Image interception method and apparatus thereof
CN102298574A (en) * 2010-06-24 2011-12-28 腾讯科技(北京)有限公司 Method and device for generating self-defined report
CN102314223B (en) * 2010-06-30 2018-11-13 百度在线网络技术(北京)有限公司 A kind of method and apparatus carrying out adaptive input in non-input scene for user
CN102789777A (en) * 2011-05-17 2012-11-21 宏碁股份有限公司 Multi-monitor display method and device
CN102799420B (en) * 2011-05-23 2015-12-02 腾讯科技(深圳)有限公司 A kind of client skin edit methods and skin editing machine
CN102521020B (en) 2011-10-26 2014-05-21 华为终端有限公司 Application screenshot method and device for mobile terminal
CN102509256B (en) * 2011-11-17 2014-07-16 厦门游家网络有限公司 Batch adding and screenshot method and device for Flash game
CN102520926A (en) * 2011-11-18 2012-06-27 深圳中兴网信科技有限公司 Screen-cutting method of screen content and device thereof
CN103135914B (en) * 2011-11-28 2015-12-02 阿里巴巴集团控股有限公司 A kind of screenshotss method based on touch-screen and device
CN102521284B (en) * 2011-11-28 2015-04-29 优视科技有限公司 Page screenshot processing method and device based on mobile terminal browser
CN103164123A (en) * 2011-12-12 2013-06-19 北京神州泰岳软件股份有限公司 Method and device for editing screen capture
CN102520865A (en) * 2011-12-19 2012-06-27 深圳桑菲消费通信有限公司 Method for realizing self-adaption image cropping of mobile phone
CN103246438A (en) * 2012-02-03 2013-08-14 宏碁股份有限公司 Graphical interface selection method and system
CN102707879A (en) * 2012-04-17 2012-10-03 上海量明科技发展有限公司 Method for selecting image contour of screenshot area, client and system
TWI479866B (en) * 2012-05-15 2015-04-01 Awind Inc Sender device and method of sharing screenshot and computer readable medium thereof
CN103473035A (en) * 2012-06-07 2013-12-25 腾讯科技(深圳)有限公司 Screen capturing method and device
CN103488652B (en) * 2012-06-08 2018-11-16 北京千橡网景科技发展有限公司 Webpage content extracting method and webpage content extraction device
CN102779008B (en) * 2012-06-26 2016-06-22 北京奇虎科技有限公司 A kind of screenshot method and system
KR20140031660A (en) * 2012-09-05 2014-03-13 삼성전자주식회사 Apparatus and method for editing an image in a portable terminal
CN102968268B (en) * 2012-10-23 2018-07-10 努比亚技术有限公司 A kind of method and apparatus for cutting picture
CN102968274A (en) * 2012-11-22 2013-03-13 广东欧珀移动通信有限公司 A method and system for freely taking screenshots in mobile devices
US9389778B2 (en) 2012-12-28 2016-07-12 Asustek Computer Inc. Image capturing method of touch display module and electronic device
CN103092520A (en) * 2013-01-25 2013-05-08 广东欧珀移动通信有限公司 Screen image capture method, device and touch screen mobile device
CN104598119A (en) * 2013-10-17 2015-05-06 深圳天科智慧科技有限公司 Screen capture method and device
CN103530055A (en) * 2013-10-22 2014-01-22 北京奇虎科技有限公司 Method and equipment for capturing screen image
CN104574256B (en) * 2013-10-23 2019-04-19 腾讯科技(深圳)有限公司 The method and apparatus that part selection processing is carried out to image
CN103761048A (en) * 2014-01-24 2014-04-30 深圳市金立通信设备有限公司 Terminal screen shot method and terminal
CN103927178A (en) * 2014-04-18 2014-07-16 长沙裕邦软件开发有限公司 Picture capturing method and picture capturing device
CN104333769B (en) * 2014-11-20 2019-06-25 广州华多网络科技有限公司 A kind of method and device of net cast
CN104965881B (en) * 2015-06-12 2019-08-30 北京奇虎科技有限公司 Method and device for extracting selected area in page
CN106371712B (en) * 2015-07-20 2020-03-17 鸿合科技股份有限公司 Irregular screenshot method and device
CN106610766A (en) * 2015-10-26 2017-05-03 北京国双科技有限公司 Frame selection method and device of thermodynamic diagram
CN106648281B (en) * 2015-10-30 2020-05-05 腾讯科技(深圳)有限公司 Screenshot method and device
CN105718181A (en) * 2016-01-21 2016-06-29 上海斐讯数据通信技术有限公司 Screenshot method for mobile terminal and mobile terminal
CN105653195B (en) * 2016-01-29 2018-11-27 广东欧珀移动通信有限公司 Screen capturing method and mobile terminal
CN106445367B (en) * 2016-10-14 2019-06-04 上海语途信息技术有限公司 The method for carrying out operational platform design and replacement based on Three-dimensional Design Software
CN108052662B (en) * 2017-12-29 2021-11-09 上海器魂智能科技有限公司 Webpage-based component layout method, device, equipment and storage medium
CN108108117B (en) * 2018-01-23 2021-01-19 中兴通讯股份有限公司 Screen capturing method and device and terminal
CN109388246A (en) * 2018-06-29 2019-02-26 王帅涵 A kind of method of network information exchange
CN108985885A (en) * 2018-06-29 2018-12-11 王帅涵 Commodity network sales platform
CN109460796A (en) * 2018-12-26 2019-03-12 河南通域医疗科技有限公司 A kind of method that batch intercepts and analyzes lesion characteristics in endoscopic video
CN112446936A (en) * 2019-08-29 2021-03-05 北京京东尚科信息技术有限公司 Image processing method and device
CN112784293B (en) * 2019-11-08 2024-06-04 游戏橘子数位科技股份有限公司 Method for recording notice of picture acquisition
CN111897473A (en) * 2020-07-28 2020-11-06 惠州Tcl移动通信有限公司 Information extraction method and device of terminal, storage medium and terminal
CN112306600A (en) * 2020-10-23 2021-02-02 珠海格力电器股份有限公司 Screenshot method and device of display interface, storage medium and electronic device
CN113805993B (en) * 2021-09-03 2023-06-06 四川新网银行股份有限公司 Method for rapidly and continuously capturing images

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06333012A (en) * 1993-05-26 1994-12-02 Ricoh Co Ltd Electronic file device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06333012A (en) * 1993-05-26 1994-12-02 Ricoh Co Ltd Electronic file device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
截图新利器Capture Professional. 陈光.软件世界. 2000 *
精彩的屏幕任你截. 杨永战.计算机时代,第04期. 2001 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102708540A (en) * 2012-04-21 2012-10-03 上海量明科技发展有限公司 Method and client side for zooming screen capturing areas

Also Published As

Publication number Publication date
CN101075172A (en) 2007-11-21

Similar Documents

Publication Publication Date Title
CN100444099C (en) Screenshot method, screenshot device and instant messaging client
US7996776B2 (en) Shared telepointer
CN106776514B (en) Annotating method and device
JP5611958B2 (en) Using physical objects with interactive surfaces
US8464167B2 (en) System and method for synchronized authoring and access of chat and graphics
US6320601B1 (en) Information processing in which grouped information is processed either as a group or individually, based on mode
US20180082663A1 (en) Information processing apparatus, image displaying method, and non-transitory computer readable medium
KR20120006434A (en) Image processing apparatus, image processing method and computer program
WO2017140242A1 (en) Information processing method and client
CN104869046A (en) Information exchange method and information exchange device
WO2019128742A1 (en) Image processing method, device, terminal and storage medium
EP0905483B1 (en) Information processing method and apparatus, and storage medium thereof
CN108920057A (en) Method, device, equipment and storage medium for controlling connection nodes of electronic whiteboard
CN115048009B (en) Dialogue interface interception method and device, computer equipment and storage medium
JP4045768B2 (en) Video processing device
CN112764632B (en) Image sharing method, device and electronic equipment
CN111428452B (en) Annotation data storage method and device
US8856251B2 (en) Picture processing method and apparatus for instant communication tool
CN110286831A (en) Screenshot method, device and terminal equipment
CN100588218C (en) Image forming device and e-mail delivery server
CN108614657A (en) Image combining method, device, equipment and its image-carrier
JPH08235344A (en) Scenario editor
JP2022056262A (en) Information processing apparatus, information processing method, program, and information processing system
CN106484265B (en) Information marking method and system applied to instant messaging
JP2014197256A (en) Editing device, editing method, and program

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