[go: up one dir, main page]

WO2008138253A1 - An apparatus and method for instant messaging image capture - Google Patents

An apparatus and method for instant messaging image capture Download PDF

Info

Publication number
WO2008138253A1
WO2008138253A1 PCT/CN2008/070895 CN2008070895W WO2008138253A1 WO 2008138253 A1 WO2008138253 A1 WO 2008138253A1 CN 2008070895 W CN2008070895 W CN 2008070895W WO 2008138253 A1 WO2008138253 A1 WO 2008138253A1
Authority
WO
WIPO (PCT)
Prior art keywords
screenshot
unit
user
chat window
window
Prior art date
Application number
PCT/CN2008/070895
Other languages
French (fr)
Chinese (zh)
Inventor
Weihua Chen
Lei Song
Original Assignee
Tencent Technology (Shenzhen) Company Limited
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
Priority claimed from CN 200710074485 external-priority patent/CN101079844A/en
Priority claimed from CNB2007100744844A external-priority patent/CN100566306C/en
Priority claimed from CNA200710074388XA external-priority patent/CN101079793A/en
Application filed by Tencent Technology (Shenzhen) Company Limited filed Critical Tencent Technology (Shenzhen) Company Limited
Publication of WO2008138253A1 publication Critical patent/WO2008138253A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/107Computer-aided management of electronic mailing [e-mailing]

Definitions

  • the present invention relates to the field of instant messaging, and more particularly to an instant communication screenshot device and method. Background of the invention
  • IM screenshots are a common method in the process of instant messaging.
  • the so-called IM screenshot refers to the user intercepting the content on the local screen in the form of pictures during the process of using IM software to communicate with friends.
  • the captured image can be immediately transferred to the other party, or it can be copied to a series of software supporting image editing such as word document and Windows drawing board, which is convenient for the user to further process.
  • an embodiment of the present invention provides an IM screenshot device and method for solving the problem that the prior art is susceptible to a chat window when performing IM screenshots, resulting in insufficient convenience and low operation efficiency.
  • User interface UI unit used to hide the user interface after receiving the screenshot request The current IM chat window; and after the screenshot operation is completed, displaying the IM chat window; and a screenshot unit, configured to perform a screenshot operation in the user interface after the UI unit hides the IM chat window.
  • the IM chat window is displayed.
  • the IM screenshot device and method provided by the embodiment of the present invention can hide the current IM chat window on the user interface after receiving the screenshot request initiated by the user, according to the prior art; , intercepting the picture of the corresponding area in the user interface, and restoring the above IM chat window to the user interface.
  • the current IM chat window will be automatically hidden when the user performs the screenshot process. Therefore, the embodiments of the present invention can solve the problems occurring in the aforementioned prior art.
  • FIG. 1 is a schematic structural diagram of an IM screenshot device according to Embodiment 1 of the present invention.
  • FIG. 2 is a schematic flowchart of an IM screenshot method according to Embodiment 1 of the present invention.
  • FIG. 3 is a schematic structural diagram of an IM screenshot device according to Embodiment 2 of the present invention.
  • FIG. 4 is a schematic structural diagram of a dialog box control unit according to Embodiment 2 of the present invention
  • FIG. 5 is a schematic flowchart of an IM screenshot method according to Embodiment 2 of the present invention.
  • FIG. 6 is a schematic flowchart of an IM screenshot method according to Embodiment 3 of the present invention.
  • FIG. 7 is a schematic flowchart of an IM screenshot method according to Embodiment 4 of the present invention.
  • FIG. 8 is a schematic flowchart of an IM screenshot method according to Embodiment 5 of the present invention.
  • FIG. 9 is a schematic structural diagram of an IM screenshot device according to Embodiment 6 of the present invention.
  • FIG. 10 is a schematic structural diagram of a screenshot editing unit in Embodiment 6 of the present invention
  • 11 is a schematic flowchart of an IM screenshot method in Embodiment 6 of the present invention
  • FIG. 12 is a schematic flowchart of a method for gradually canceling or restoring execution of a user performed operation according to Embodiment 6 of the present invention.
  • FIG. 13 is a schematic flowchart of a method for adding an active text box according to Embodiment 6 of the present invention
  • FIG. 14 is a schematic flowchart of a method for adding a transparent display text box according to Embodiment 6 of the present invention
  • FIG. 15 is a schematic structural diagram of an IM screenshot device according to Embodiment 7 of the present invention.
  • FIG. 16 is a schematic structural diagram of an instant save unit according to Embodiment 7 of the present invention
  • FIG. 17 is a schematic flowchart of an IM screenshot method according to Embodiment 7 of the present invention.
  • FIG. 18 is a schematic structural diagram of an IM system according to Embodiment 8 of the present invention.
  • FIG. 19 is a schematic structural diagram of an IM screenshot device according to Embodiment 8 of the present invention.
  • FIG. 20 is a schematic flowchart of an IM screenshot method according to Embodiment 8 of the present invention.
  • FIG. 21 is a schematic diagram of an IM screenshot editing toolbar according to Embodiment 8 of the present invention
  • FIG. 22 is a schematic diagram of an effect of improving arrow quality in Embodiment 8 of the present invention
  • FIG. 23 is a schematic diagram of an attribute dialog box according to Embodiment 8 of the present invention. Mode for carrying out the invention
  • the user needs to adjust the location of the chat window in advance to ensure that the area to be intercepted is not obscured by the chat window after entering the screenshot.
  • the user manually adjusts the location of the chat window before the screenshot, the previous adjustment needs to be manually restored again after the screenshot is completed.
  • An IM screenshot device and method provided by the embodiment of the present invention may hide a current IM chat window on a user interface after receiving a screenshot request initiated by a user; and intercepting a picture of a corresponding area in the user interface according to a user selection; The above IM chat window is restored to the user interface. Therefore, the present embodiment solves the problem that the prior art is susceptible to the chat window when performing IM screenshots, resulting in insufficient convenience and low operational efficiency.
  • Embodiment 1 The IM screenshot device and method provided by the present invention will be specifically described below by way of embodiments.
  • Embodiment 1
  • FIG. 1 is a schematic structural diagram of an IM screenshot device according to Embodiment 1 of the present invention. As shown in FIG. 1, the device includes: a user interface (UI) unit 101 and a screenshot unit 103.
  • UI user interface
  • the UI unit 101 is configured to hide the current IM chat window on the user interface after receiving the screenshot request; and after the screenshot operation is completed, display the IM chat window.
  • the above-mentioned current IM chat window refers to the IM chat window located at the forefront on the user interface.
  • the screenshot unit 103 is configured to perform a screenshot operation in the user interface after the UI unit 101 hides the IM chat window.
  • FIG. 2 is a schematic flowchart diagram of an IM screenshot method according to Embodiment 1 of the present invention. As shown in Figure 2, the method includes:
  • Step 201 After receiving the screenshot request, hide the current IM chat window on the user interface.
  • Step 202 Capture a picture in a user interface.
  • the notification screenshot unit 103 intercepts the picture of the corresponding area in the user interface according to the user's selection.
  • Step 203 Display the above IM chat window.
  • the notification UI unit 101 restores the above IM chat window to the user interface.
  • the current IM chat window on the user interface may be hidden; according to the user's selection, the image of the corresponding region is intercepted in the user interface, and The above IM chat window is restored to the user interface.
  • the present embodiment solves the problem that the prior art is susceptible to the chat window when performing IM screenshots, resulting in insufficient convenience and low operational efficiency.
  • This embodiment details the specific structure of the IM screenshot device on the basis of the foregoing embodiment.
  • FIG. 3 is a schematic structural diagram of an IM screenshot device according to Embodiment 2 of the present invention.
  • the apparatus includes: a UI unit 101, a dialog control unit 102, and a screenshot unit 103.
  • the UI unit 101 is for executing a hidden instruction from the dialog control unit 102 to hide the current IM chat window, and executes a display instruction from the dialog control unit 102 to display the above IM chat window.
  • the dialog control unit 102 is configured to generate a hidden instruction after the UI unit 101 receives the screenshot request and output a hidden instruction to the UI unit 101, generate a display instruction after the screenshot unit 103 completes the screenshot, and output a display instruction to the UI. Unit 101.
  • FIG. 4 is a schematic structural diagram of a dialog control unit according to Embodiment 2 of the present invention. As shown in FIG. 4, in an embodiment, the dialog control unit 102 includes: a window saving module 1021, a window information extracting module 1022, a determining module 1023, and an instruction generating module 1024.
  • the window saving module 1021 is configured to acquire and save attribute information of the current window.
  • the above current window (Foreground Window) refers to the window at the front of the user interface.
  • the attribute information includes information such as the position, status, and size of the current window.
  • the window information extraction module 1022 is configured to extract and save feature information of the current window, where the feature information includes: handle information of the current window, and window feature values corresponding to the current window extracted from the handle information.
  • the handle is an internal code in the operating system, through which it can refer to various special elements controlled by the system, such as windows, bitmaps, icons, memory blocks, cursors, fonts, menus, and so on.
  • Window feature values mean that each window has a unique eigenvalue that is used to identify itself.
  • the window information extraction module 1022 obtains the handle information of the current window in various manners. In an exemplary solution, it is obtained by using an Application Programming Interface (API) for acquiring the current window handle. The handle information to the current window. Then, the window feature value corresponding to the current window is extracted from the handle information.
  • API Application Programming Interface
  • the determining module 1023 is configured to determine whether the current window is an IM chat window according to the feature information, and send the determination result to the instruction generating module 1024.
  • the instruction generating module 1024 is configured to send a hidden instruction to the UI unit 101 when determining that the current window is an IM chat window, and send a display instruction according to the saved attribute information and feature information after the screenshot unit 103 completes the screenshot. To the UI unit 101. If it is judged that the current window is not an IM chat window, the instruction generation module 1024 does not do Any operation.
  • the screenshot unit 103 is configured to intercept the picture of the corresponding area in the user interface according to the user's selection after the UI unit 101 hides the IM chat window.
  • FIG. 5 is a schematic flowchart of an IM screenshot method according to Embodiment 2 of the present invention. As shown in Figure 5, the method includes:
  • Step 501 After receiving the screenshot request, acquire and save the attribute information of the current window.
  • the user initiates a screenshot request through the UI unit 101.
  • the UI unit 101 is configured to provide a user interface for the user, perform human-computer interaction with the user, and generate a corresponding signal or instruction for each operation performed by the receiving user.
  • the UI unit 101 forwards the above screenshot request to the dialog control unit 102, which, after receiving the request, uses its window save module 1021 to retrieve and save the attribute information of the current window.
  • the above attribute information includes: information such as the position, status and size of the current window.
  • Step 502 Extract feature information of the current window and save the information.
  • the dialog control unit 102 further extracts and saves the feature information of the current window by using the window information extraction module 1022.
  • the feature information includes: handle information of the current window, and window feature values corresponding to the current window extracted from the handle information.
  • the step may include the following sub-steps:
  • Sub-step 1 Obtain the handle information of the current window.
  • the window information extraction module 1022 obtains the handle information of the current window and saves it through the API for acquiring the current window handle.
  • Sub-step 2 Extract the window feature value corresponding to the current window from the handle information.
  • the window information extraction module 1022 After obtaining the handle information of the current window, the window information extraction module 1022 extracts and saves the window feature value corresponding to the current window from the handle information, and the window window is called The levy means that each window has a unique eigenvalue that is used to identify itself. In this embodiment, the feature information extracted and saved by the window information extraction module 1022 will be used for restoring the current IM chat window after the screenshot operation is completed.
  • Step 503 Determine, according to the feature information, whether the current window is an IM chat window: If yes, proceed to step 504; otherwise, after the step 505, the process ends.
  • the dialog control unit 102 further uses the determining module 1023 to determine whether the current window is an IM chat window according to the feature information: if yes, proceed to step 504 to generate and execute a hidden command to hide the IM chat window; Then, step 505 is executed, that is, according to the user's selection, the process ends after the picture of the corresponding area is intercepted in the user interface.
  • Step 504 Generate and execute a hidden instruction, and hide the IM chat window. Specifically, this step includes the following substeps:
  • Sub-step 1 Generate hidden instructions.
  • the dialog control unit 102 When it is judged whether or not the current window is an IM chat window, the dialog control unit 102 generates a hidden instruction by its instruction generation module 1024, and transmits the instruction to the UI unit 101.
  • Sub-step 2 Execute the hidden command to hide the above IM chat window.
  • the UI unit 101 executes the instruction to hide the IM chat window on the user interface.
  • Step 505 Capture an image in the user interface
  • the screenshot unit 103 is immediately activated, and the picture of the corresponding area is intercepted in the user interface according to the user's selection.
  • Step 506 Resume displaying the IM chat window to the user interface.
  • the screenshot unit 103 After the user intercepts the picture, the screenshot unit 103 notifies the dialog control unit 102 to intercept The figure is complete.
  • the dialog control unit 102 generates and transmits a display instruction to the UI unit 101 based on the saved attribute information and feature information.
  • the UI unit 101 receives the display instruction and executes, thereby restoring the above IM chat window to the user interface.
  • the present embodiment solves the problem that the prior art is susceptible to chat windows when performing IM screenshots, resulting in insufficient convenience and low operational efficiency.
  • the present embodiment further receives the user's selection information before hiding the current IM chat window on the user interface, and hides the current IM chat window on the user interface or does not perform the hidden operation according to the user's selection.
  • the IM screenshot device includes: a UI unit 101, a dialog control unit 102, and a screenshot unit 103.
  • the dialog control unit 102 and the screenshot unit 103 have the same functions as the corresponding units in the foregoing embodiment.
  • the UI unit 101 is further configured to send to the user whether to hide the selection information of the current IM chat window, hide the current IM chat window on the user interface or not perform the hidden operation according to the user's selection.
  • FIG. 6 is a schematic flowchart of an IM screenshot method according to Embodiment 3 of the present invention. As shown in Figure 6, the method includes:
  • Step 601 After receiving the screenshot request initiated by the user, send a message to the user whether to hide the current IM chat window.
  • the user initiates a screenshot request through the UI unit 101.
  • the dialog control unit 102 determines that the current window is an IM chat window
  • the UI unit 101 further sends a message to the user. Hide the selection information of the current IM chat window.
  • Step 602 If the user selects to hide, the current IM chat window on the user interface is hidden; if the user chooses not to hide, the process ends after step 603 is performed.
  • Step 603 According to the user's selection, the picture of the corresponding area is intercepted in the user interface.
  • Step 604 Resume displaying the current chat window to the user interface.
  • the embodiment solves the problem that the prior art is easily affected by the chat window when performing the IM screenshot, and further satisfies the requirement that the user may wish to intercept the image within the chat window.
  • the timer is further started, and the surrounding window overlapping with the IM chat window is refreshed first, and then according to the set time period.
  • the IM screenshot device includes: a UI unit 101, a dialog control unit 102, and a screenshot unit 103.
  • the dialog control unit 102 and the screenshot unit 103 have the same functions as the corresponding units in the foregoing embodiment.
  • the UI unit 101 further includes: a timer (not shown in FIG. 3) for setting a time period T to refresh a surrounding window overlapping the IM chat window to be hidden. This is to consider that the IM chat window to be hidden overlaps with the surrounding window. When it is hidden, the surrounding window will leave some residual images of the IM chat window, so it needs to be provided for a period of time for the surrounding window to refresh, leaving the residue The image is refreshed.
  • One of the timers is set The time period, or time period T, refers to the time period between the hidden time point of the current chat window and the start time point of the screenshot, and the value is the system default.
  • the UI unit 101 refreshes the surrounding window to refresh the residual image.
  • the screenshot unit 103 is notified to start the screenshot operation.
  • FIG. 7 is a schematic flowchart of a method for taking a screenshot in the fourth embodiment of the present invention. As shown in Figure 7, the method includes:
  • Step 701 After receiving the screenshot request initiated by the user, hide the current ⁇ chat window on the user interface, and start a timer.
  • the user initiates a screenshot request through the UI unit 101.
  • the UI unit 101 executes the instruction to hide the current ⁇ chat window on the user interface.
  • the present embodiment considers a case where the hidden chat window overlaps with the surrounding window, and when it is hidden, the surrounding window leaves some residual images of the chat window. Therefore, the UI unit 101 starts a timer inside thereof while hiding the current chat window.
  • the timer setting has a time limit ⁇ , also called a time period ⁇ , which is the time period between the hidden time point of the current chat window and the start time point of the screenshot, and the value is the system default. .
  • the UI unit 101 refreshes the surrounding window to refresh the residual image.
  • Step 702 Refresh the surrounding window overlapping with the above-mentioned ⁇ chat window within the time period set by the timer.
  • the UI unit 101 refreshes the surrounding window that overlaps with the ⁇ chat window.
  • the timer expires, it means that the UI unit 101 has completed the refreshing.
  • the different stepping into the screenshot unit 103 starts the screenshot operation.
  • Step 703 According to the user's selection, the picture of the corresponding area is intercepted in the user interface.
  • Step 704 Resume displaying the foregoing chat window to the user interface.
  • Applying the IM screenshot device and method provided in this embodiment when the current IM chat window on the user interface is hidden, the timer is further started, and the surrounding window overlapping with the IM chat window is first refreshed within a set time period. Then, according to the user's selection, the picture of the corresponding area is intercepted in the user interface. Therefore, the embodiment solves the problem that the prior art is easily affected by the chat window when performing the IM screenshot, and further eliminates the hidden left window of the IM chat window after the current IM chat window is hidden. The residual image ensures that the user can capture the correct picture.
  • the hidden IM chat window is restored to the user interface, the image intercepted by the user is further pasted in the IM chat window.
  • the IM screenshot device includes: a UI unit 101, a dialog control unit 102, and a screenshot unit 103.
  • the dialog control unit 102 has the same function as the corresponding unit in the foregoing embodiment.
  • the UI unit 101 is further configured to receive the picture captured by the screenshot unit 103, and after restoring the display of the IM chat window, paste the picture into the IM chat window.
  • the screenshot unit 103 is further configured to transfer the intercepted picture to the UI unit 101, and wait
  • the UI unit 101 restores the IM chat window to display and pastes it into the current chat window.
  • FIG. 8 is a schematic flowchart diagram of an IM screenshot method according to Embodiment 5 of the present invention. As shown in Figure 8, the method includes:
  • Step 801 After receiving the screenshot request initiated by the user, hiding the current IM chat window on the user interface.
  • Step 802 According to the user's selection, intercept the picture of the corresponding area in the user interface.
  • Step 803 Resume displaying the IM chat window to the user interface.
  • Step 804 Paste the captured picture in the IM chat window.
  • the UI unit 101 receives the above-mentioned picture captured by the screenshot unit 103, and after restoring the display of the IM chat window, pastes the picture into the IM chat window.
  • the present embodiment solves the problem that the prior art is easily affected by the chat window when the IM screenshot is performed, and the image intercepted by the user is automatically pasted in the IM chat window, thereby improving the convenience of the user operation.
  • the UI unit after receiving the screenshot request initiated by the user, the UI unit hides the current IM chat window, and intercepts the picture of the corresponding area in the user interface according to the user's selection.
  • the captured picture can be immediately delivered to the other party's IM chat user, but if the above-mentioned picture intercepted directly cannot meet the user's needs, it needs to be edited first.
  • the IM screenshot editing method in the prior art is cumbersome, and the user has to first exit the IM screenshot, save the image as a file, then open a graphics processing software for processing, and then perform a second screenshot of the processed image. Can be sent to the other party. In this way, even if the user just wants to edit the image, it takes a lot of trouble and wastes a lot of time, which cannot satisfy the user's requirement for immediacy.
  • the image is further edited to meet the user's multiple screenshot editing requirements, and the IM screenshot is processed comprehensively, conveniently, and effectively. .
  • FIG. 9 is a schematic structural diagram of an IM screenshot device according to Embodiment 6 of the present invention.
  • the apparatus includes: a UI unit 101, a dialog control unit 102, a screenshot unit 103, and a screenshot editing unit 204. among them:
  • the UI unit 101 is configured to receive a user-initiated screenshot request, execute a hidden instruction or a display instruction sent by the dialog control unit 102, and hide the current IM chat window or The display of the above IM chat window is resumed, and the user's screenshot editing instruction is received.
  • the dialog control unit 102 is configured to generate and transmit the above hidden instruction or display instruction to the UI unit 101.
  • the screenshot unit 103 is configured to send a hidden instruction to the UI unit when the dialog control unit sends
  • the picture of the corresponding area is intercepted in the user interface.
  • the screenshot editing unit 204 is configured to perform a corresponding editing operation on the captured image according to the screenshot editing instruction of the user.
  • the so-called editing operations include: gradually undoing or restoring the executed user's executed operations during editing of the captured image, adding an active text box to the captured image, implementing transparent display of the text box, improving image quality, and The picture is continuously edited and so on.
  • FIG. 10 is a schematic structural diagram of a screenshot editing unit according to Embodiment 6 of the present invention.
  • the screenshot editing unit 204 includes: a recording management module 2041, a text box processing module 2042, an image processing module 2043, and a continuous editing module 2044. among them:
  • the record management module 2041 is configured to gradually cancel or resume the executed operation of the user during editing of the captured picture. Specifically, the record management module 2041 manages the undo operation record space and the resume operation record space to implement the step of revoking the user-executed operation saved in the undo operation record space or the user revoked operation saved in the recovery operation record space. Perform recovery execution, etc. In this embodiment, the record management module 2041 can manage the recording space based on a variety of data processing techniques.
  • the records management module 2041 takes a stacking technique to manage the logging space.
  • the record management module 2041 is responsible for the following operations: initializing the recording space, pressing the record, popping the record, moving the record, remaining space management, used space management, current record pointer management, allocating the recording space, reclaiming the recording space, and recording the space saturated. Tube And so on.
  • the record management module 2041 is configured to allocate and initialize the undo operation record space and the resume operation record space; when each edit operation is added to the undo operation record space, it is determined whether the undo operation record space is saturated: if yes, Performing a saturation management policy (for example, clearing the oldest operation record and pressing the new operation record, etc.); if not, pushing the edit operation to the undo operation record space; and determining that the received user's edit instruction is Whether to cancel the instruction or resume the instruction: If it is the undo instruction, it is judged whether the undo operation record space is empty: If yes, the undo function cannot be used, and no operation is performed; if not, the cancellation instruction is deleted in the undo operation record space.
  • a saturation management policy for example, clearing the oldest operation record and pressing the new operation record, etc.
  • the operation record is added to the recovery operation record space to complete the above operation record, thereby completing a revocation operation; if it is a recovery instruction, it is judged whether the recovery operation record space is empty: If yes, the resume execution function cannot be used, and no operation is performed. If not, Then, the operation record pointed to by the recovery instruction is resumed, the operation record pointed to by the recovery instruction is deleted in the recovery operation record space, and the operation record is added in the undo operation record space, thereby completing a resume execution operation.
  • the data management mode of the record management module 2041 for the record space in the example solution is merely exemplary, and should not be limited to the above stack technology in practical applications, and may also be other methods, such as data queue, Data sheets, etc.
  • the text box processing module 2042 is configured to add an active text box to the captured picture. Specifically, the text box processing module 2042 is configured to add a text box to the cut picture according to the user screenshot editing instruction, receive the text added by the user in the added text box, and move the text according to the user's request before completing the editing. The box, and the position of the text is recorded, so as to move and change the position of the text during the editing process, so that the text in the text box changes position as the text box moves.
  • the activity of the active text box, the text box processing module 2042 is implemented as follows: 1 when the text box is displayed, the size of the text box is recorded S; When the user clicks the left mouse button in the text box, the coordinates of the mouse PA are recorded; 3 when the user presses the left mouse button to start moving, according to the difference between the coordinates PB and PA after the mouse movement, the text box is moved;
  • the screenshot unit 103 obtains coordinates PX1 (upper left), PX2 (bottom left;), PX3 (upper right), and PX4 (bottom right) of each point in the selected area; 5, while executing 4, determines whether the moved text box is Within the frame selection range of the screen selection; 6 If 5 is, the movement effect is executed; 7 If 5 is not, the boundary of the selection frame is adjusted to the frame selection range, and then the movement is performed.
  • the text box processing module 2042 can also be used to add a transparently displayed text box to the captured picture.
  • the text box processing module 2042 is configured to add a text box to the cut picture according to the user screenshot editing instruction, receive the text added by the user in the added text box, and call the screenshot unit 103 to obtain the current screen image, and Paste it into the above text box, and realize that the text box is consistent with the background of the IM screenshot editing, so that the user can preview the effect after editing in the editing process, and the effect of the current editing on the final effect is clear.
  • the specific implementation process is as follows: The text box processing module 2042 obtains a message from the message queue; determines whether the message is a WM_ERASEBKGND message; if yes, the screenshot unit 103 is called to acquire the current screen image, and paste the current screen image to the text box background. in.
  • the WM_ERASEBKGND message is a Windows window refresh message. When the window needs to be refreshed, the text box processing module 2042 will receive such a message from the system's message queue.
  • the manner in which the text box processing module 2042 in this example solution implements the addition of an active text box or a transparent display text box is merely exemplary, and may be other methods in practical applications.
  • the image processing module 2043 is configured to perform data processing on the captured picture to improve image quality. Specifically, the image processing module 2043 performs coordinate transformation on the captured picture using a correlation theory of polar coordinate plane coordinates to improve image quality and improve the display effect of some special graphics such as arrows.
  • the mechanism is: Calculate the coordinates of the other two points of the triangle according to the coordinates and angle of a triangle vertex, and then fill the missing pixel points based on the calculation result.
  • the continuous editing module 2044 is used to continuously edit the same picture.
  • the continuous editing module 2044 determines a type for each type of graphics editing operation, such as DS_RECTANGLE corresponding to drawing rectangle operation, DS_CIRLCE corresponding drawing ellipse operation, DS_TEXT corresponding drawing text box operation, and the like.
  • a type for each type of graphics editing operation such as DS_RECTANGLE corresponding to drawing rectangle operation, DS_CIRLCE corresponding drawing ellipse operation, DS_TEXT corresponding drawing text box operation, and the like.
  • the continuous editing module 2044 sets the graphic editing command to the corresponding type, the current editing operation correspondingly draws a certain graphic until the user
  • the continuous editing module 2044 sets the type of the graphic editing command to be empty, so that it is not in the editing state, for example, DS-NO
  • the screenshot editing unit 204 has sufficient scalability and can be based on various personalities of users. Demand expansion and new modules.
  • FIG. 11 is a schematic flow chart of an IM screenshot method according to Embodiment 6 of the present invention. As shown in Figure 11, the method includes:
  • Step 1101 After receiving the screenshot request initiated by the user, hiding the user interface Current IM chat window.
  • Step 1102 According to the user's selection, the picture of the corresponding area is intercepted in the user interface.
  • Step 1103 Edit the captured picture according to a user instruction.
  • the screenshot editing unit 204 receives the screenshot editing instruction sent by the user, and determines the content of the screenshot editing instruction; and performs a corresponding editing operation on the intercepted image according to the content of the screenshot editing instruction.
  • the screenshot editing operation may include one or more of the following various operations, for example: gradually undoing or restoring the executed operation of the user during the editing of the captured image, and adding the active text box to the captured image. Adding a transparently displayed text box to the captured image, performing data processing on the captured image, improving image quality, continuously editing the same image, and the like.
  • the record management module 2041 adopts a stacking technique to manage the recording space. .
  • the record management module 2041 is responsible for performing the following operations: initializing the recording space, pressing the record, popping the record, moving the record, remaining space management, used space management, current record pointer management, allocating the recording space, reclaiming the recording space, and recording the space. Saturated management, etc.
  • FIG. 12 is a schematic flowchart of a step-by-step or resume execution method performed by a user in the sixth embodiment of the present invention.
  • the specific steps of using the record management module 2041 to gradually cancel or resume the executed operation of the user include:
  • Step 1201 Allocate and initialize the undo operation record space and the resume operation record space.
  • Step 1202 Add an editing operation to the undo operation recording space, and determine whether the undo operation recording space is saturated: if yes, execute a saturation management policy (for example, clearing the oldest operation record and pressing the new operation record, etc.) If no, the above edit operation is pushed to the undo operation record space.
  • Step 1203 Determine whether the received editing instruction of the user is an undo instruction or a resume instruction: if it is an undo instruction, execute step 1204; if it is a resume instruction, execute step 1205.
  • Step 1204 If the received editing instruction of the user is an undo instruction, determine whether the undo operation recording space is empty: if yes, the undo function cannot be used, and no operation is performed; if not, deleting in the undo operation recording space The operation record pointed to by the revocation instruction is added to the operation record space of the recovery operation, thereby completing one 4-pin operation.
  • Step 1205 If the received editing instruction of the user is a recovery instruction, determine whether the recovery operation recording space is empty: if yes, the resume execution function cannot be used, and no operation is performed; if not, the recovery instruction is resumed.
  • the operation record pointed to deletes the operation record pointed to by the recovery operation instruction in the recovery operation record space, and adds the above operation record in the undo operation record space, thereby completing a resume execution operation.
  • the user can gradually cancel or resume the executed editing operation during the editing of the captured picture.
  • the data management manner of the recording space in the exemplary solution is merely exemplary, and should not be limited to the above stacking technology in practical applications, and may also be other methods, such as data queues, data tables, and the like.
  • the text box processing module 2042 adds a text box to the cut picture according to the user screenshot editing instruction, and moves the according to the user's instruction.
  • the text box which enables the movement and change of the text position during the visual editing process. This allows the user to add an active text box to the background of the screenshot and add text to the text box.
  • the text can change position as the text box moves before editing.
  • FIG. 13 is a flowchart of adding an active text box method according to Embodiment 6 of the present invention. Schematic diagram. As shown in FIG. 13, the specific steps of implementing the active text box by using the text box processing module 2042 include:
  • Step 1301 Add a text box of a specified size to the cut picture according to the user's request, and record the size S of the text box.
  • Step 1302 If the user clicks the left mouse button in the text box, the coordinates of the mouse are recorded.
  • Step 1303 If the user presses the left mouse button to start moving, the text is moved according to the difference between the coordinates PB and PA after the mouse is moved.
  • step 1304 the screenshot unit 103 is called while moving, and the coordinates PX1 (upper left), PX2 (bottom left), PX3 (upper right), and PX4 (bottom right) of each point in the selected area are obtained.
  • the user can add a text box and add text in the process of editing the captured picture. Before completing the editing, the user can drag the text box to move to the desired position, and the text can follow the text box. Move to change position. It should be noted that the implementation of adding the active text box in this example scenario is merely exemplary, and should not be limited to the above method in practical applications.
  • the text box processing module 2042 adds a text box to the cut picture according to the user screenshot editing instruction, and receives the user in the After adding the text added in the text box, and calling the screenshot unit 103 to obtain the current screen image, paste it into the above text box, and the text box is seamlessly aligned with the background of the IM screenshot editing.
  • FIG. 14 is a schematic flowchart of a method for adding a transparent display text box according to Embodiment 6 of the present invention. As shown in FIG. 14, the transparent display is implemented by the text box processing module 2042. The specific steps of the text box include:
  • Step 1401 Obtain a message from a message queue of the system.
  • Step 1402 Determine whether the message is a WM_ERASEBKGND message; if yes, call the screenshot unit 103 to obtain the current screen image, and paste the current screen image into the text box background; otherwise, do nothing.
  • the WM_ERASEBKGND message is a Windows window refresh message. When the window needs to be refreshed, the text box processing module 2042 will receive such a message from the system's message queue.
  • the image processing module 2043 performs data processing on the captured picture, including, for example, performing polar coordinate transformation to improve image quality.
  • the image processing module 2043 calculates the coordinates of the other two points of the triangle according to the coordinates and the angle of a triangle vertex, thereby filling the missing pixel points based on the calculation result, and improving the triangle graphic. quality.
  • the continuous editing module 2044 determines a type for each type of graphics editing operation, such as DS_RECTANGLE corresponding drawing rectangle operation, DS_CIRLCE corresponding drawing ellipse operation, DS_TEXT corresponding drawing text box operation, and the like.
  • a type for each type of graphics editing operation such as DS_RECTANGLE corresponding drawing rectangle operation, DS_CIRLCE corresponding drawing ellipse operation, DS_TEXT corresponding drawing text box operation, and the like.
  • the user can continuously draw a plurality of desired graphics during the editing of the captured image, for example, the user selects the "ellipse" graphic and enters the editing state of the ellipse. At this time, the user can draw any number of ellipses continuously without having to draw one for each. It should be noted that the implementation of continuously editing the same picture in the present exemplary embodiment is merely exemplary, and should not be limited to the above method in practical applications.
  • step 1103 is sufficiently scalable, and new editing can be added according to various personalized needs of users. operating.
  • Step 1104 Restore the IM chat window to the user interface.
  • the image may be further edited, for example: gradually canceling or restoring the executed user's executed operation during the process of editing the captured image, Add an active text box to the captured image, enable transparent display of the text box, improve image quality, continuously edit the same image, and more.
  • the embodiment solves the problem that the prior art is easily affected by the chat window when performing IM screenshots, satisfies the user's screenshot editing requirements, and improves the comprehensiveness and convenience of the screenshot editing.
  • the UI unit hides the current IM chat window, and intercepts the picture of the corresponding area in the user interface according to the user's selection.
  • the captured picture can be immediately delivered to the other party's IM chat user.
  • the user can also choose to save the captured picture.
  • the user has to first exit the IM screenshot, paste the picture into the IM chat window or other drawing software, and save it based on the IM chat window or other drawing software. In this way, the user's save operation is cumbersome and cannot meet the user's requirement for immediacy.
  • the present embodiment further saves the above picture after the picture is intercepted according to the user's selection, so as to improve the efficiency and convenience of saving the IM screenshot.
  • FIG. 15 is a schematic structural diagram of an IM screenshot device according to Embodiment 7 of the present invention.
  • the apparatus includes: a UI unit 101, a dialog control unit 102, a screenshot unit 103, and an instant save unit 305. among them:
  • the UI unit 101 is configured to receive a user-initiated screenshot request, execute a hidden instruction or a display instruction sent by the dialog control unit 102, hide the current IM chat window or resume displaying the IM chat window, and receive a screenshot save instruction of the user.
  • the dialog control unit 102 is configured to generate and transmit the above hidden instruction or display instruction to the UI unit 101.
  • the screenshot unit 103 is configured to: when the dialog control unit sends a hidden instruction to the UI unit 101 to control the hiding of the IM chat window, according to the user's selection, the picture of the corresponding area is intercepted in the user interface, and the interception operation is completed.
  • the screenshot save instruction is forwarded to the instant save unit 305.
  • the screenshot unit 103 causes the instant save unit 305 to be started by transmitting a trigger message.
  • the trigger message in the present invention has many possible forms, for example, a success message for a screenshot, or a save generated by a user operation. Instructions, etc. Specifically,
  • the screenshot unit 103 sends a screenshot success message to the instant save unit 305 to trigger the latter to launch and generate a properties dialog to display to the user interface.
  • the screenshot unit 103 provides a toolbar with a "save” button in the background of the screenshot, and the user clicks the "save” button on the toolbar to send a corresponding save command to the instant save unit 305, thereby triggering The latter starts and produces a properties dialog that is displayed to the user interface.
  • the instant save unit 305 is configured to perform a corresponding save operation on the captured image according to the screenshot save instruction.
  • FIG. 16 is a schematic structural diagram of an instant save unit according to Embodiment 7 of the present invention.
  • the instant save unit 305 includes: an attribute entry module 3051, a format conversion module 3052, and a storage module 3053, wherein:
  • the attribute entry module 3051 is configured to generate a property dialog box according to the trigger message sent by the screenshot unit 103, that is, the screenshot save instruction, and display the attribute dialog box to the user interface, and receive the storage attribute entered by the user based on the attribute dialog box.
  • the so-called storage attributes include the storage name, storage format (for example, gif, jpg, tif, png, bmp, etc.).
  • the format conversion module 3052 is configured to determine whether the storage format received by the attribute entry module 3051 is consistent with the original format of the cut picture, and if not, convert the original format of the picture into a storage format.
  • the IM screenshot acquired by the screenshot unit 103 has an original format, which is a system default (for example, a gif format, etc.), or a user setting (for example, a jpg format, etc.).
  • the format conversion module 3052 first determines whether the original format of the screenshot is consistent with the storage format: if yes, the IM screenshot is directly sent to the storage module 3053 for saving; if not, the original format of the screenshot is converted to the storage format desired by the user, and then Put it It is sent to the storage module 3053 for saving.
  • the format conversion module 3052 can perform format conversion in multiple manners.
  • One typical manner is: first, extracting image data from the IM screenshot acquired by the screenshot unit 103, and the image data does not include format information; Then, format information corresponding to the storage format is added to the image data, and a new IM screenshot is synthesized.
  • FIG. 17 is a schematic flow chart of an IM screenshot method according to Embodiment 7 of the present invention. As shown in Figure 17, the method includes:
  • Step 1701 After receiving the screenshot request initiated by the user, the current IM chat window on the user interface is hidden.
  • Step 1702 According to the user's selection, the picture of the corresponding area is intercepted in the user interface.
  • Step 1703 Save the captured picture according to a user instruction.
  • the instant save unit 305 receives the screenshot save instruction sent by the user forwarded by the UI unit 101, and receives the storage attribute desired by the user, and saves the intercepted picture in the client according to the storage attribute.
  • Sub-step 1 According to the user's instruction, a property dialog box is generated and displayed on the user interface to receive the storage attributes entered by the user.
  • the screenshot unit 103 after intercepting the picture of the corresponding area in the user interface according to the user's selection, and receiving the screenshot save instruction sent by the user forwarded by the UI unit 101, sends a trigger message to start the instant save unit 305.
  • the instant save unit 305 uses its attribute entry module 3051 to generate a properties dialog and display it to the user interface to receive the storage attributes entered by the user.
  • the trigger message in this embodiment has multiple possible forms, for example, may be a screenshot success message, or may be a save instruction generated by a user operation. Specifically:
  • the screenshot unit 103 sends a screenshot into The work message is sent to the instant save unit 305, thereby triggering the latter to start, and using its attribute entry module 3051 to generate an attribute dialog box for display to the user interface.
  • the screenshot unit 103 provides a toolbar with a "save” button in the background of the screenshot, and the user clicks the "save” button on the toolbar to send a corresponding save command to the instant save unit. 305, thereby triggering the latter to start, and using its attribute entry module 3051 to generate a property dialog to display to the user interface.
  • the instant save unit 305 uses its attribute entry module 3051 to receive the storage attributes entered by the user in the properties dialog.
  • the so-called storage attributes include storage name, storage format (for example, gif, jpg, tif, png, bmp, etc.).
  • Sub-step 2 Store the captured image according to the storage attributes entered by the user.
  • the specific process of the above steps includes:
  • the instant save unit 305 uses its format conversion module 3052 to determine whether the original format of the acquired IM screenshot is consistent with the storage format entered by the user: If not, then go to step (2); if yes, go to step (3).
  • the format conversion module 3052 can perform format conversion in various manners.
  • One typical processing method is: first, image data is extracted from the IM screenshot acquired by the screenshot unit 103, and the image data does not contain format information. , then add the format information corresponding to the storage format in the image data, and synthesize the new IM screenshot, and then go to step (3).
  • the instant save unit 305 saves the above IM screenshot with its storage module 3053. At this point, the captured image is stored successfully, and there is no need to exit the IM screenshot in the above process, nor It is necessary to paste the cut image into the chat window and save it, which streamlines the operation flow and improves the efficiency, thus facilitating the user's use.
  • the user can perform various operations based on the stored pictures, such as sharing with friends, or editing, and the like.
  • Step 1704 Resume displaying the IM chat window to the user interface.
  • the image may be further saved after the image is intercepted according to the user's selection. Therefore, the embodiment solves the problem that the prior art is susceptible to the chat window when performing the IM screenshot, and triggers the saving mechanism for the image while completing the image interception operation, and the cut image according to the storage attribute entered by the user. Save to the client, improving the efficiency and convenience of saving IM screenshots.
  • FIG. 18 is a schematic structural diagram of an IM system according to Embodiment 8 of the present invention.
  • the IM system includes: a server 100, and a plurality of clients (client 200, client 300 client N) connected thereto.
  • clients clients 200, client 300 client N
  • the connection relationship between the devices in all the embodiments of the present invention is for the purpose of clearly explaining the information interaction and control process thereof, and therefore should be regarded as a logical connection relationship, and should not be limited to physical connections.
  • the server 100 is configured to exchange information with each client (the client 200, the client 300, the client N), and forward the chat information between the clients. It may typically be an IM server or the like, and the scope of protection of the present invention should not be limited to a particular type of server.
  • Each client typically can be a variety of terminal devices capable of instant communication, such as a personal computer (PC), personal digital assistant (Personal Digital Assistant, PDA), mobile phone (MP), etc., so the scope of protection of the present invention should not be limited to a particular type of guest. Account.
  • PC personal computer
  • PDA Personal Digital Assistant
  • MP mobile phone
  • the client 200 is taken as an example, and the client 200 can be implemented by using any one of the above embodiments.
  • Fig. 19 is a schematic structural view of an IM screenshot device in an eighth embodiment of the present invention.
  • the client 200 includes: a UI unit 101, a dialog control unit 102, a screenshot unit 103, a screenshot editing unit 204, and an instant save unit 305. among them:
  • the UI unit 101 is configured to receive a user-initiated screenshot request, execute a hidden instruction or a display instruction sent by the dialog control unit 102, hide the current IM chat window, or resume displaying the IM chat window.
  • the UI unit 101 is further configured to send to the user whether to hide the selection information of the current IM chat window, execute a hidden instruction or a display instruction sent by the dialog control unit 102 according to the user's selection, hide the current IM chat window, or resume displaying the IM chat window. .
  • the UI unit 101 further includes: a timer (not shown in Fig. 19) for providing a period of time to refresh the residual image on the surrounding window overlapping the IM chat window to be hidden.
  • a timer (not shown in Fig. 19) for providing a period of time to refresh the residual image on the surrounding window overlapping the IM chat window to be hidden.
  • the UI unit 101 is further configured to receive the picture captured by the screenshot unit 103, and resume the display of the IM chat window, and then paste the picture into the IM chat window.
  • the UI unit 101 is further configured to receive a screenshot editing instruction and a screenshot saving instruction of the user.
  • the dialog control unit 102 is configured to generate and transmit the above hidden instruction or display instruction to the UI unit 101.
  • the dialog control unit 102 includes: a window saving module 1021, a window information extracting module 1022, a judging module 1023, and an instruction generating module 1024 (the above modules are not shown in Fig. 19).
  • the window saving module 1021 is configured to acquire and save attribute information of the current window.
  • the window information extraction module 1022 is configured to extract and save feature information of the current window.
  • the determining module 1023 is configured to determine, according to the feature information, whether the current window is an IM
  • the chat window is sent to the instruction generation module 1024.
  • the instruction generating module 1024 is configured to send a hidden instruction to the UI unit 101 when determining that the current window is an IM chat window, and send a screenshot according to the saved attribute information and feature information after the screenshot unit 103 completes the screenshot. The instruction is displayed to the UI unit 101. If it is judged that the current window is not an IM chat window, the instruction generation module 1024 does nothing.
  • the screenshot unit 103 is configured to: when the dialog control unit sends a hidden instruction to the UI unit 101 to control the hiding of the IM chat window, according to the user's selection, the picture of the corresponding area is intercepted in the user interface.
  • the screenshot unit 103 is further configured to transmit the intercepted picture to the UI unit 101, and the UI unit 101 restores the IM chat window to display and pastes it into the current chat window.
  • the screenshot unit 103 is further configured to use the UI unit 101 to provide a toolbar with various graphics or texts inserted in the background of the screenshot, and forward the screenshot editing instruction to the screenshot editing unit 204 according to the user's click request in the toolbar.
  • the screenshot unit 103 is further configured to forward the screenshot save instruction to the instant save unit 305 according to the user's click request in the toolbar.
  • the screenshot editing unit 204 is configured to perform a corresponding editing operation on the captured image according to the screenshot editing instruction of the user.
  • the screenshot editing unit 204 includes a recording management module 2041, a text box processing module 2042, an image processing module 2043, and a continuous editing module 2044 (the above modules are not shown in Fig. 19).
  • the record management module 2041 is configured to gradually cancel or resume the executed operation of the execution user during the process of editing the captured image.
  • the text box processing module 2042 is for adding an active text box to the captured picture.
  • the text box processing module 2042 is further configured to transparently display the above text box.
  • the image processing module 2043 is configured to perform data processing on the captured image to improve the image. Quality.
  • the continuous editing module 2044 is for continuous editing of the same picture.
  • the instant save unit 305 is configured to perform a corresponding save operation on the captured image according to the screenshot save instruction of the user.
  • the instant save unit 305 includes: an attribute entry module 3051, a format conversion module 3052, and a storage module 3053 (the above modules are not shown in FIG. 19).
  • the attribute entry module 3051 is configured to generate an attribute dialog box according to the user's screenshot save instruction, and display it on the user interface, and receive the storage attribute entered by the user based on the attribute dialog box.
  • the format conversion module 3052 is configured to determine whether the storage format received by the attribute entry module 3051 is consistent with the original format of the truncated picture. If not, the original format of the picture is converted into a storage format.
  • the storage module 3053 is configured to save the picture captured by the screenshot unit 103.
  • FIG. 20 is a schematic flow chart of an IM screenshot method according to Embodiment 8 of the present invention. As shown in Figure 20, the method includes:
  • the user Before performing all the steps, the user uses his IM account to log in to the IM software running on the client 200, and opens the chat window and various other windows.
  • Step 2001 After receiving the screenshot request initiated by the user, obtain and save the attribute information of the current window.
  • the user initiates a screenshot request through the UI unit 101 in the client 200.
  • the UI unit 101 forwards the request to the dialog control unit 102, and after receiving the request, the latter uses its window save module 1021 to acquire and save the attribute information of the current window.
  • Step 2002 Extract feature information of the current window and save it.
  • the dialog control unit 102 further extracts the feature information of the current window and saves it using its window information extraction module 1022.
  • the window information extraction module 1022 obtains the handle information of the current window and saves it by using an API for acquiring the current window handle.
  • the window feature value corresponding to the current window is extracted from the handle information.
  • Step 2003 Determine, according to the foregoing feature information, whether the current window is an IM chat window: If yes, continue to perform step 2004 and subsequent steps; otherwise, the process ends after performing steps 2006 to 2008 and step 2010.
  • the dialog control unit 102 further uses the determining module 1023 to determine whether the current window is an IM chat window according to the feature information: if yes, proceed to step 2004 to send the user the option to hide the current IM chat window, and the subsequent steps. If no, the process ends after step 2006 to step 2008 and step 2010.
  • Step 2004 Sending to the user whether to hide the selection information of the current IM chat window, if the user selects to hide, generating and executing a hidden instruction, hiding the current IM chat window on the user interface, and starting the timer while hiding; If the selection is not hidden, the process ends after performing steps 2006 to 2008 and step 2010.
  • the dialog control unit 102 determines that the current window is the IM chat window
  • the UI unit 101 further sends a selection information to the user whether to hide the current IM chat window.
  • the dialog control unit 102 uses its instruction generation module 1024 to generate a hidden instruction and transmits the instruction to the UI unit 101.
  • the UI unit 101 executes the instruction to hide the IM chat window on the user interface, and while being hidden, the UI unit 101 starts its internal timer. This is to consider that the IM chat window to be hidden overlaps with the surrounding window. When it is hidden, the surrounding window will leave some residual images of the IM chat window, so it is necessary to use the timer to provide a period of time for the surrounding window to refresh. , refresh the residual image.
  • Step 2005 In the time period T, the surrounding window overlapping with the IM chat window is refreshed. During the time period T, the UI unit 101 refreshes the surrounding window that overlaps with the IM chat window. When the timer expires, it means that the UI unit 101 has completed the refresh. At this time, the asynchronous entry to the screenshot unit 103 starts the screenshot operation.
  • Step 2006 According to the user's selection, the picture of the corresponding area is intercepted in the user interface.
  • the screenshot unit 103 intercepts the picture of the corresponding area in the user interface according to the user's selection.
  • Step 2007 Edit the captured picture according to the user's instruction.
  • the screenshot unit 103 can further utilize the UI unit 101 to provide a toolbar with a variety of graphics or text inserted in the background of the screenshot.
  • FIG. 21 is a schematic diagram of an IM screenshot editing toolbar in the eighth embodiment of the present invention.
  • the buttons on the toolbar are: Insert Rectangle, Insert Ellipse, Insert Text, Insert Arrow, _ Undo User's Performed Action, and Save Screenshot.
  • the toolbar can also include other editing function buttons, such as restoring the executed operations of the user revocation.
  • the screenshot editing unit 204 receives the screenshot editing instruction sent by the user to click the toolbar, and determines the content of the screenshot editing instruction; and performs a corresponding editing operation on the captured image according to the content of the screenshot editing instruction.
  • the screenshot unit 103 forwards the above instruction of the user.
  • the screenshot editing unit 204 inserts an arrow on the IM screenshot according to the user's needs.
  • FIG. 22 is a schematic diagram showing the effect of improving the quality of the arrow in the eighth embodiment of the present invention.
  • the image processing module 2043 calculates the coordinates of the other two points of the triangle according to the coordinates and the angle of a triangle vertex, thereby filling the vacant pixel points based on the calculation result, as shown by the arrow 2202 in the figure.
  • Step 2008 Save the captured image according to the instruction of the user.
  • the screenshot unit 103 provides the above-described toolbar having a "save” button in the background of the screenshot using the UI unit 101. After the user clicks the "Save” button on the toolbar, the screenshot unit 103 forwards the corresponding save command to the instant save unit 305, thereby triggering the latter to start, and uses its attribute entry module 3051 to generate an attribute dialog box to display on the user interface. .
  • FIG. 23 is a schematic diagram of a property dialog box according to Embodiment 8 of the present invention.
  • the instant save unit 305 uses its attribute entry module 3051 to receive the storage attributes entered by the user in the attribute dialog box.
  • the so-called storage attributes include storage names, storage formats (for example, gif, jpg, tif, png, bmp, etc.).
  • the instant save unit 305 uses its format conversion module 3052 to determine whether the original format of the acquired IM screenshot is consistent with the storage format entered by the user: If not, the format conversion module 3052 formats the IM screenshot; if so, the instant save unit 305 The above IM screenshot is saved by its storage module 3053.
  • Step 2009 Restore the above IM chat window to the user interface.
  • the screenshot unit 103 After the user completes the interception of the picture, the screenshot unit 103 notifies the dialog control unit 102 that the truncation is completed.
  • the dialog control unit 102 generates and transmits a display instruction to the UI unit 101 based on the saved attribute information and feature information.
  • the UI unit 101 receives the display instruction and executes, thereby restoring the above IM chat window to the user interface.
  • Step 2010 Paste the captured picture in the IM chat window.
  • the screenshot unit 103 After the IM chat window is restored, the screenshot unit 103 further transmits the captured image to the UI unit 101, and the UI unit 101 further acquires the image captured by the screenshot unit 103 and pastes it into the current chat window.
  • step 2010 the captured picture is first pasted into the IM chat window, and the captured picture is edited and saved in the chat window.

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • Computer Hardware Design (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

An IM image capture apparatus and method are disclosed. Said IM image capture apparatus comprises a user interface UI unit for hiding the current IM chat window on the user interface after it receives an image capture request initiated by the user, and resuming the display of said IM chat window on the interface after the image capture is finished; an image capture unit for capturing the image in corresponding area on the user interface according to user's choice after said current IM chat window is hidden. Applying this invention, the current IM chat window can be hidden automatically during the period of image capture done by the user. Therefore, this embodiment solves such problems in the prior art as the inconvenience and inefficiency in operation easily caused by the chat window in IM image capture.

Description

一种即时通信截图装置、 方法  Instant communication screenshot device and method
技术领域 Technical field
本发明涉及即时通信领域, 更具体地说, 涉及一种即时通信截图装 置、 方法。 发明背景  The present invention relates to the field of instant messaging, and more particularly to an instant communication screenshot device and method. Background of the invention
随着互联网的普及, 即时通信 ( Instant Messaging, IM ) 已成为 一种不可或缺的网络沟通方式, 而在即时通信过程中进行 IM截图是 一个常用手段。 所称的 IM截图, 是指用户在使用 IM软件与好友交 流的过程中, 以图片形式截取本地屏幕上的内容。 截取到的图片可立 即传递给对方, 也可将其复制到 word文档、 Windows绘图板等一系 列支持图片编辑的软件中, 方便用户的进一步处理。  With the popularity of the Internet, Instant Messaging (IM) has become an indispensable means of network communication, and IM screenshots are a common method in the process of instant messaging. The so-called IM screenshot refers to the user intercepting the content on the local screen in the form of pictures during the process of using IM software to communicate with friends. The captured image can be immediately transferred to the other party, or it can be copied to a series of software supporting image editing such as word document and Windows drawing board, which is convenient for the user to further process.
在现有的 IM截图中, 用户需事先调整好聊天窗口的位置, 以保 证进入截图后, 所要截取的区域不被聊天窗口所遮挡。 由上可知, 利 用现有技术进行 IM截图时,用户操作不方便。 因此需要一种新的 IM 截图方法, 能够消除聊天窗口对 IM截图操作的影响, 方便快捷地进 行 IM截图。 发明内容  In the existing IM screenshot, the user needs to adjust the location of the chat window in advance to ensure that the area to be intercepted is not obscured by the chat window after entering the screenshot. As can be seen from the above, when the IM screenshot is performed using the prior art, the user operation is inconvenient. Therefore, a new IM screenshot method is needed to eliminate the impact of the chat window on the IM screenshot operation, and to conveniently and quickly perform IM screenshots. Summary of the invention
有鉴于此, 本发明实施例提供了一种 IM截图装置、 方法, 用以 解决现有技术在进行 IM截图时容易受到聊天窗口的影响, 导致便利 性不足、 操作效率低的问题。  In view of this, an embodiment of the present invention provides an IM screenshot device and method for solving the problem that the prior art is susceptible to a chat window when performing IM screenshots, resulting in insufficient convenience and low operation efficiency.
本发明实施例提供的一种 IM截图装置, 包括:  An IM screenshot device provided by an embodiment of the present invention includes:
用户界面 UI单元, 用于在接收到截图请求后, 隐藏用户界面上 的当前 IM聊天窗口; 并在截图操作完成后, 显示所述 IM聊天窗口; 截图单元,用于当所述 UI单元隐藏所述 IM聊天窗口后,执行在 所述用户界面中的截图操作。 User interface UI unit, used to hide the user interface after receiving the screenshot request The current IM chat window; and after the screenshot operation is completed, displaying the IM chat window; and a screenshot unit, configured to perform a screenshot operation in the user interface after the UI unit hides the IM chat window.
本发明实施例提供的一种 IM截图方法, 包括:  An IM screenshot method provided by an embodiment of the present invention includes:
在接收到截图请求后, 隐藏用户界面上的当前 IM聊天窗口; 在用户界面中截取图片;  After receiving the screenshot request, hiding the current IM chat window on the user interface; intercepting the image in the user interface;
显示所述 IM聊天窗口。  The IM chat window is displayed.
由上述技术方案可见, 相比现有技术, 应用本发明实施例提出的 IM 截图装置、 方法, 可以在接收到用户发起的截图请求后, 隐藏用 户界面上的当前 IM聊天窗口; 根据用户的选择, 在用户界面中截取 相应区域的图片, 并将上述 IM聊天窗口恢复显示到用户界面上。 这 样, 在用户进行截图过程时, 当前 IM聊天窗口将自动隐藏。 因此, 本发明实施例能够解决前述现有技术出现的问题。 附图简要说明  According to the foregoing technical solution, the IM screenshot device and method provided by the embodiment of the present invention can hide the current IM chat window on the user interface after receiving the screenshot request initiated by the user, according to the prior art; , intercepting the picture of the corresponding area in the user interface, and restoring the above IM chat window to the user interface. In this way, the current IM chat window will be automatically hidden when the user performs the screenshot process. Therefore, the embodiments of the present invention can solve the problems occurring in the aforementioned prior art. BRIEF DESCRIPTION OF THE DRAWINGS
图 1为本发明实施例一中 IM截图装置的结构示意图;  1 is a schematic structural diagram of an IM screenshot device according to Embodiment 1 of the present invention;
图 2为本发明实施例一中 IM截图方法的流程示意图;  2 is a schematic flowchart of an IM screenshot method according to Embodiment 1 of the present invention;
图 3为本发明实施例二中 IM截图装置的结构示意图;  3 is a schematic structural diagram of an IM screenshot device according to Embodiment 2 of the present invention;
图 4为本发明实施例二中对话框控制单元的结构示意图; 图 5为本发明实施例二中 IM截图方法的流程示意图;  4 is a schematic structural diagram of a dialog box control unit according to Embodiment 2 of the present invention; FIG. 5 is a schematic flowchart of an IM screenshot method according to Embodiment 2 of the present invention;
图 6为本发明实施例三中 IM截图方法的流程示意图;  6 is a schematic flowchart of an IM screenshot method according to Embodiment 3 of the present invention;
图 7为本发明实施例四中 IM截图方法的流程示意图;  7 is a schematic flowchart of an IM screenshot method according to Embodiment 4 of the present invention;
图 8为本发明实施例五中 IM截图方法的流程示意图;  8 is a schematic flowchart of an IM screenshot method according to Embodiment 5 of the present invention;
图 9为本发明实施例六中 IM截图装置的结构示意图;  9 is a schematic structural diagram of an IM screenshot device according to Embodiment 6 of the present invention;
图 10为本发明实施例六中截图编辑单元的结构示意图; 图 11为本发明实施例六中 IM截图方法的流程示意图; 10 is a schematic structural diagram of a screenshot editing unit in Embodiment 6 of the present invention; 11 is a schematic flowchart of an IM screenshot method in Embodiment 6 of the present invention;
图 12 为本发明实施例六中逐步撤销或恢复执行用户已执行操作 方法的流程示意图;  FIG. 12 is a schematic flowchart of a method for gradually canceling or restoring execution of a user performed operation according to Embodiment 6 of the present invention;
图 13为本发明实施例六中添加活动文本框方法的流程示意图; 图 14 为本发明实施例六中添加透明显示文本框方法的流程示意 图;  13 is a schematic flowchart of a method for adding an active text box according to Embodiment 6 of the present invention; FIG. 14 is a schematic flowchart of a method for adding a transparent display text box according to Embodiment 6 of the present invention;
图 15为本发明实施例七中 IM截图装置的结构示意图;  15 is a schematic structural diagram of an IM screenshot device according to Embodiment 7 of the present invention;
图 16为本发明实施例七中即时保存单元的结构示意图; 图 17为本发明实施例七中 IM截图方法的流程示意图;  16 is a schematic structural diagram of an instant save unit according to Embodiment 7 of the present invention; FIG. 17 is a schematic flowchart of an IM screenshot method according to Embodiment 7 of the present invention;
图 18为本发明实施例八中 IM系统的结构示意图;  18 is a schematic structural diagram of an IM system according to Embodiment 8 of the present invention;
图 19为本发明实施例八中 IM截图装置的结构示意图;  19 is a schematic structural diagram of an IM screenshot device according to Embodiment 8 of the present invention;
图 20为本发明实施例八中 IM截图方法的流程示意图  20 is a schematic flowchart of an IM screenshot method according to Embodiment 8 of the present invention;
图 21为本发明实施例八中 IM截图编辑工具栏的示意图; 图 22为本发明实施例八中改善箭头质量的效果示意图; 图 23为本发明实施例八中属性对话框的示意图。 实施本发明的方式  FIG. 21 is a schematic diagram of an IM screenshot editing toolbar according to Embodiment 8 of the present invention; FIG. 22 is a schematic diagram of an effect of improving arrow quality in Embodiment 8 of the present invention; FIG. 23 is a schematic diagram of an attribute dialog box according to Embodiment 8 of the present invention. Mode for carrying out the invention
为了使本发明的目的、 技术方案及优点更加清楚明白, 以下结合附 图及实施例, 对本发明进行进一步详细说明。 应当理解, 此处所描述的 具体实施例仅仅用以解释本发明, 并不用于限定本发明。  In order to make the objects, the technical solutions and the advantages of the present invention more comprehensible, the present invention will be further described in detail below with reference to the accompanying drawings. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
在现有的 IM截图中, 用户需事先调整好聊天窗口的位置, 以保证 进入截图后,所要截取的区域不被聊天窗口所遮挡。这就存在一个弊端: 若在聊天窗口最大化时进行 IM截图, 则只能截取到聊天窗口以内的图 像, 因为聊天窗口以外的图像已经被聊天窗口所遮挡, 无法采集; 若用 户在截图前将聊天窗口最小化, 则无法通过聊天窗口中的工具栏完成截 图, 并且截图完成后, 所截内容也无法自动复制于聊天窗口; 另外, 用 户在截图之前手动调整过聊天窗口的位置, 则在完成截图后还需再一次 手动恢复先前的调整。 In the existing IM screenshot, the user needs to adjust the location of the chat window in advance to ensure that the area to be intercepted is not obscured by the chat window after entering the screenshot. This has a drawback: If the IM screenshot is taken when the chat window is maximized, only the image within the chat window can be captured, because the image outside the chat window has been blocked by the chat window and cannot be collected; if the user will The chat window is minimized and you cannot complete the cut through the toolbar in the chat window. After the screenshot is completed, the cut content cannot be automatically copied to the chat window. In addition, if the user manually adjusts the location of the chat window before the screenshot, the previous adjustment needs to be manually restored again after the screenshot is completed.
本发明实施例提供的一种 IM截图装置、 方法, 可以在接收到用 户发起的截图请求后, 隐藏用户界面上的当前 IM聊天窗口; 根据用 户的选择, 在用户界面中截取相应区域的图片; 将上述 IM聊天窗口 恢复显示到用户界面上。 因此, 本实施例解决了现有技术在进行 IM 截图时容易受到聊天窗口的影响, 而导致便利性不足、 操作效率低的 问题。  An IM screenshot device and method provided by the embodiment of the present invention may hide a current IM chat window on a user interface after receiving a screenshot request initiated by a user; and intercepting a picture of a corresponding area in the user interface according to a user selection; The above IM chat window is restored to the user interface. Therefore, the present embodiment solves the problem that the prior art is susceptible to the chat window when performing IM screenshots, resulting in insufficient convenience and low operational efficiency.
下面通过实施例来具体说明本发明提供的 IM截图装置、 方法。 实施例一  The IM screenshot device and method provided by the present invention will be specifically described below by way of embodiments. Embodiment 1
参见图 1 , 图 1为本发明实施例一中 IM截图装置的结构示意图。 如图 1所示, 该装置包括: 用户界面 (User interface, UI )单元 101、 截图单元 103。  Referring to FIG. 1, FIG. 1 is a schematic structural diagram of an IM screenshot device according to Embodiment 1 of the present invention. As shown in FIG. 1, the device includes: a user interface (UI) unit 101 and a screenshot unit 103.
其中, UI单元 101用于在接收到截图请求后, 隐藏用户界面上的 当前 IM聊天窗口; 并在截图操作完成后, 显示上述 IM聊天窗口。  The UI unit 101 is configured to hide the current IM chat window on the user interface after receiving the screenshot request; and after the screenshot operation is completed, display the IM chat window.
其中, 上述当前 IM聊天窗口 ( Foreground IM chatting Window ) 是指用户界面上位于最前方的 IM聊天窗口。  The above-mentioned current IM chat window (Foreground IM chatting Window) refers to the IM chat window located at the forefront on the user interface.
截图单元 103用于当上述 UI单元 101隐藏上述 IM聊天窗口后, 执行在上述用户界面中的截图操作。  The screenshot unit 103 is configured to perform a screenshot operation in the user interface after the UI unit 101 hides the IM chat window.
参见图 2, 图 2为本发明实施例一中 IM截图方法的流程示意图。 如图 2所示, 该方法包括:  Referring to FIG. 2, FIG. 2 is a schematic flowchart diagram of an IM screenshot method according to Embodiment 1 of the present invention. As shown in Figure 2, the method includes:
步骤 201、 在接收到截图请求后, 隐藏用户界面上的当前 IM聊 天窗口。  Step 201: After receiving the screenshot request, hide the current IM chat window on the user interface.
步骤 202、 在用户界面中截取图片。 UI单元 101隐藏用户界面上的当前 IM聊天窗口后, 通知截图单 元 103根据用户的选择, 在用户界面中截取相应区域的图片。 Step 202: Capture a picture in a user interface. After the UI unit 101 hides the current IM chat window on the user interface, the notification screenshot unit 103 intercepts the picture of the corresponding area in the user interface according to the user's selection.
步骤 203、 显示上述 IM聊天窗口。  Step 203: Display the above IM chat window.
截图单元 103截取完用户选择的图片后,通知 UI单元 101将上述 IM聊天窗口恢复显示到用户界面上。  After the screenshot unit 103 intercepts the picture selected by the user, the notification UI unit 101 restores the above IM chat window to the user interface.
应用本实施例提出的 IM截图装置、 方法, 可以在接收到用户发 起的截图请求后, 隐藏用户界面上的当前 IM聊天窗口; 根据用户的 选择, 在用户界面中截取相应区域的图片, 并将上述 IM聊天窗口恢 复显示到用户界面上。 这样, 在用户进行截图过程时, 当前 IM聊天 窗口将自动隐藏,用户就无需为了保证所要截取的区域不被聊天窗口 遮挡而不得不事先调整好聊天窗口的位置。 因此, 本实施例解决了现 有技术在进行 IM截图时容易受到聊天窗口的影响, 而导致便利性不 足、 操作效率低的问题。  Applying the IM screenshot device and method provided in this embodiment, after receiving the screenshot request initiated by the user, the current IM chat window on the user interface may be hidden; according to the user's selection, the image of the corresponding region is intercepted in the user interface, and The above IM chat window is restored to the user interface. In this way, when the user performs the screenshot process, the current IM chat window will be automatically hidden, and the user does not have to adjust the location of the chat window in advance in order to ensure that the area to be intercepted is not blocked by the chat window. Therefore, the present embodiment solves the problem that the prior art is susceptible to the chat window when performing IM screenshots, resulting in insufficient convenience and low operational efficiency.
实施例二 Embodiment 2
本实施例在前述实施例的基础上, 对 IM截图装置的具体结构进 行详细说明。  This embodiment details the specific structure of the IM screenshot device on the basis of the foregoing embodiment.
参见图 3 , 图 3为本发明实施例二中 IM截图装置的结构示意图。 如图 3所示, 该装置包括: UI单元 101、 对话框控制单元 102、 截图单 元 103。  Referring to FIG. 3, FIG. 3 is a schematic structural diagram of an IM screenshot device according to Embodiment 2 of the present invention. As shown in FIG. 3, the apparatus includes: a UI unit 101, a dialog control unit 102, and a screenshot unit 103.
( 1 ) UI单元 101用于执行来自对话框控制单元 102的隐藏指令 以隐藏当前 IM聊天窗口, 执行来自对话框控制单元 102的显示指令 以显示上述 IM聊天窗口。  (1) The UI unit 101 is for executing a hidden instruction from the dialog control unit 102 to hide the current IM chat window, and executes a display instruction from the dialog control unit 102 to display the above IM chat window.
( 2 )对话框控制单元 102用于在 UI单元 101收到上述截图请求 后生成隐藏指令并输出隐藏指令给 UI单元 101 , 在截图单元 103完 成截图后生成显示指令并输出显示指令给所述 UI单元 101。 参见图 4, 图 4为本发明实施例二中对话框控制单元的结构示意 图。 如图 4所示, 在一个实施例中, 该对话框控制单元 102包括: 窗口 保存模块 1021、 窗口信息提取模块 1022、 判断模块 1023及指令生成模 块 1024。 (2) The dialog control unit 102 is configured to generate a hidden instruction after the UI unit 101 receives the screenshot request and output a hidden instruction to the UI unit 101, generate a display instruction after the screenshot unit 103 completes the screenshot, and output a display instruction to the UI. Unit 101. Referring to FIG. 4, FIG. 4 is a schematic structural diagram of a dialog control unit according to Embodiment 2 of the present invention. As shown in FIG. 4, in an embodiment, the dialog control unit 102 includes: a window saving module 1021, a window information extracting module 1022, a determining module 1023, and an instruction generating module 1024.
其中, 窗口保存模块 1021用于获取并保存当前窗口的属性信息。其 中, 上述当前窗口 (Foreground Window ) 是指用户界面上位于最前 方的窗口。 该属性信息包括当前窗口的位置、 状态及大小等信息。  The window saving module 1021 is configured to acquire and save attribute information of the current window. Among them, the above current window (Foreground Window) refers to the window at the front of the user interface. The attribute information includes information such as the position, status, and size of the current window.
窗口信息提取模块 1022用于提取并保存当前窗口的特征信息,该特 征信息包括: 当前窗口的句柄信息, 以及从句柄信息中提取的与当前窗 口对应一致的窗口特征值。 其中, 句柄是操作系统中的一种内部代码, 通过它能引用受系统控制的各种特殊元素, 如窗口、 位图、 图标、 内存 块、 光标、 字体、 菜单等等。 窗口特征值是指, 每个窗口都具有一个唯 一的特征值, 用于对自身进行标识。 本实施例中窗口信息提取模块 1022 获取当前窗口的句柄信息的方式有多种, 在一个示例方案中, 其通过用 于获取当前窗口句柄的一个应用程序接口 ( Application Programming Interface, API ), 而获取到该当前窗口的句柄信息。 然后再从该句柄信 息中提取与当前窗口对应一致的窗口特征值, 本实施例中, 窗口信息提 取模块 1022所提取并保存的特征信息, 在截图操作完成之后将用于对 当前 IM聊天窗口的恢复。  The window information extraction module 1022 is configured to extract and save feature information of the current window, where the feature information includes: handle information of the current window, and window feature values corresponding to the current window extracted from the handle information. Among them, the handle is an internal code in the operating system, through which it can refer to various special elements controlled by the system, such as windows, bitmaps, icons, memory blocks, cursors, fonts, menus, and so on. Window feature values mean that each window has a unique eigenvalue that is used to identify itself. In this embodiment, the window information extraction module 1022 obtains the handle information of the current window in various manners. In an exemplary solution, it is obtained by using an Application Programming Interface (API) for acquiring the current window handle. The handle information to the current window. Then, the window feature value corresponding to the current window is extracted from the handle information. In this embodiment, the feature information extracted and saved by the window information extraction module 1022 will be used for the current IM chat window after the screenshot operation is completed. restore.
判断模块 1023用于根据上述特征信息判断当前窗口是否是一个 IM 聊天窗口, 并将判断结果发送给指令生成模块 1024。  The determining module 1023 is configured to determine whether the current window is an IM chat window according to the feature information, and send the determination result to the instruction generating module 1024.
指令生成模块 1024用于在判断得知当前窗口是一个 IM聊天窗口 时, 发送隐藏指令给 UI单元 101 , 以及在截图单元 103完成截图之后, 根据所保存的上述属性信息和特征信息, 发送显示指令给 UI单元 101。 如果在判断得知当前窗口不是 IM聊天窗口时,指令生成模块 1024不做 任何操作。 The instruction generating module 1024 is configured to send a hidden instruction to the UI unit 101 when determining that the current window is an IM chat window, and send a display instruction according to the saved attribute information and feature information after the screenshot unit 103 completes the screenshot. To the UI unit 101. If it is judged that the current window is not an IM chat window, the instruction generation module 1024 does not do Any operation.
( 3 )截图单元 103用于当 UI单元 101隐藏上述 IM聊天窗口后, 根据用户的选择, 在用户界面中截取相应区域的图片。  (3) The screenshot unit 103 is configured to intercept the picture of the corresponding area in the user interface according to the user's selection after the UI unit 101 hides the IM chat window.
参见图 5 , 图 5为本发明实施例二中 IM截图方法的流程示意图。 如图 5所示, 该方法包括:  Referring to FIG. 5, FIG. 5 is a schematic flowchart of an IM screenshot method according to Embodiment 2 of the present invention. As shown in Figure 5, the method includes:
步骤 501、 在接收到截图请求后, 获取并保存当前窗口的属性信 息。  Step 501: After receiving the screenshot request, acquire and save the attribute information of the current window.
用户通过 UI单元 101发起截图请求。 其中, UI单元 101用于为用 户提供用户界面, 与用户之间进行人机交互, 接收用户每执行一个操作 而产生一个相应的信号或指令。 UI单元 101将上述截图请求转发至对话 框控制单元 102中, 后者接收到该请求后利用其窗口保存模块 1021获 取并保存当前窗口的属性信息。 其中上述属性信息包括: 当前窗口的位 置、 状态及大小等信息。  The user initiates a screenshot request through the UI unit 101. The UI unit 101 is configured to provide a user interface for the user, perform human-computer interaction with the user, and generate a corresponding signal or instruction for each operation performed by the receiving user. The UI unit 101 forwards the above screenshot request to the dialog control unit 102, which, after receiving the request, uses its window save module 1021 to retrieve and save the attribute information of the current window. The above attribute information includes: information such as the position, status and size of the current window.
步骤 502、 提取上述当前窗口的特征信息并保存。  Step 502: Extract feature information of the current window and save the information.
对话框控制单元 102进一步利用其窗口信息提取模块 1022提取当前 窗口的特征信息并保存, 该特征信息包括: 当前窗口的句柄信息, 以及 从句柄信息中提取的与当前窗口对应一致的窗口特征值。 其具体实现方 式有多种, 在一个实施例中, 本步骤可以包括以下子步骤:  The dialog control unit 102 further extracts and saves the feature information of the current window by using the window information extraction module 1022. The feature information includes: handle information of the current window, and window feature values corresponding to the current window extracted from the handle information. There are a plurality of specific implementation manners. In an embodiment, the step may include the following sub-steps:
子步骤 1、 获取上述当前窗口的句柄信息。  Sub-step 1. Obtain the handle information of the current window.
窗口信息提取模块 1022通过用于获取当前窗口句柄的 API,而获取 到该当前窗口的句柄信息并保存。  The window information extraction module 1022 obtains the handle information of the current window and saves it through the API for acquiring the current window handle.
子步骤 2、 从上述句柄信息中提取与上述当前窗口对应一致的窗 口特征值。  Sub-step 2. Extract the window feature value corresponding to the current window from the handle information.
获取到该当前窗口的句柄信息后,窗口信息提取模块 1022再从该句 柄信息中提取并保存与当前窗口对应一致的窗口特征值, 所称的窗口特 征值是指, 每个窗口都具有一个唯一的特征值, 用于对自身进行标识。 本实施例中, 窗口信息提取模块 1022 所提取并保存的特征信息, 在截 图操作完成之后将用于对当前 IM聊天窗口的恢复。 After obtaining the handle information of the current window, the window information extraction module 1022 extracts and saves the window feature value corresponding to the current window from the handle information, and the window window is called The levy means that each window has a unique eigenvalue that is used to identify itself. In this embodiment, the feature information extracted and saved by the window information extraction module 1022 will be used for restoring the current IM chat window after the screenshot operation is completed.
步骤 503、根据上述特征信息, 判断上述当前窗口是否是一个 IM 聊天窗口: 如果是, 继续执行步骤 504; 否则, 执行步骤 505后本流 程结束。  Step 503: Determine, according to the feature information, whether the current window is an IM chat window: If yes, proceed to step 504; otherwise, after the step 505, the process ends.
对话框控制单元 102进一步利用其判断模块 1023根据上述特征信 息,判断当前窗口是否是一个 IM聊天窗口:若是,则继续执行步骤 504, 即生成并执行隐藏指令, 将上述 IM聊天窗口隐藏; 若否, 则执行步 骤 505, 即根据用户的选择, 在用户界面中截取相应区域的图片后本 流程结束。  The dialog control unit 102 further uses the determining module 1023 to determine whether the current window is an IM chat window according to the feature information: if yes, proceed to step 504 to generate and execute a hidden command to hide the IM chat window; Then, step 505 is executed, that is, according to the user's selection, the process ends after the picture of the corresponding area is intercepted in the user interface.
步骤 504、 生成并执行隐藏指令, 将上述 IM聊天窗口隐藏。 具体来说, 本步骤包括以下子步骤:  Step 504: Generate and execute a hidden instruction, and hide the IM chat window. Specifically, this step includes the following substeps:
子步骤 1、 生成隐藏指令。  Sub-step 1. Generate hidden instructions.
当判断得知当前窗口是否是一个 IM聊天窗口,对话框控制单元 102 利用其指令生成模块 1024生成隐藏指令, 并将该指令发送给 UI单元 101。  When it is judged whether or not the current window is an IM chat window, the dialog control unit 102 generates a hidden instruction by its instruction generation module 1024, and transmits the instruction to the UI unit 101.
子步骤 2、 执行隐藏指令, 将上述 IM聊天窗口隐藏。  Sub-step 2. Execute the hidden command to hide the above IM chat window.
UI单元 101在收到上述隐藏指令后,执行该指令,将用户界面上 的上述 IM聊天窗口隐藏。  After receiving the above hidden instruction, the UI unit 101 executes the instruction to hide the IM chat window on the user interface.
步骤 505、 在用户界面中截取图片  Step 505: Capture an image in the user interface
将上述 IM聊天窗口隐藏成功后, 立即启动截图单元 103, 其才艮据 用户的选择, 在用户界面中截取相应区域的图片。  After the above IM chat window is successfully hidden, the screenshot unit 103 is immediately activated, and the picture of the corresponding area is intercepted in the user interface according to the user's selection.
步骤 506、 将上述 IM聊天窗口恢复显示到用户界面上。  Step 506: Resume displaying the IM chat window to the user interface.
用户对图片截取完成后, 截图单元 103通知对话框控制单元 102截 图完成。 对话框控制单元 102根据所保存的上述属性信息和特征信息, 生成并发送一个显示指令给 UI单元 101。 UI单元 101接收到该显示指 令并执行, 从而将上述 IM聊天窗口恢复显示到用户界面上。 After the user intercepts the picture, the screenshot unit 103 notifies the dialog control unit 102 to intercept The figure is complete. The dialog control unit 102 generates and transmits a display instruction to the UI unit 101 based on the saved attribute information and feature information. The UI unit 101 receives the display instruction and executes, thereby restoring the above IM chat window to the user interface.
应用本实施例提出的 IM截图装置、 方法, 在用户进行截图过程 时, 当前 IM聊天窗口将自动隐藏, 用户就无需为了保证所要截取的 区域不被聊天窗口遮挡而不得不事先调整好聊天窗口的位置。 因此, 本实施例解决了现有技术在进行 IM 截图时容易受到聊天窗口的影 响, 而导致便利性不足、 操作效率低的问题。  Applying the IM screenshot device and method proposed in this embodiment, when the user performs the screenshot process, the current IM chat window is automatically hidden, and the user does not have to adjust the chat window in advance in order to ensure that the area to be intercepted is not blocked by the chat window. position. Therefore, the present embodiment solves the problem that the prior art is susceptible to chat windows when performing IM screenshots, resulting in insufficient convenience and low operational efficiency.
实施例三 Embodiment 3
本实施例在前述实施例的基础上, 在隐藏用户界面上的当前 IM 聊天窗口前, 进一步接收用户的选择信息, 根据用户的选择, 隐藏用 户界面上的当前 IM聊天窗口或者不执行隐藏操作。  On the basis of the foregoing embodiment, the present embodiment further receives the user's selection information before hiding the current IM chat window on the user interface, and hides the current IM chat window on the user interface or does not perform the hidden operation according to the user's selection.
如图 3所示, IM截图装置包括: UI单元 101、对话框控制单元 102、 截图单元 103。  As shown in FIG. 3, the IM screenshot device includes: a UI unit 101, a dialog control unit 102, and a screenshot unit 103.
其中, 对话框控制单元 102、 截图单元 103与前述实施例中相应单 元的功能相同。  The dialog control unit 102 and the screenshot unit 103 have the same functions as the corresponding units in the foregoing embodiment.
UI单元 101进一步用于向用户发送是否隐藏当前 IM聊天窗口的 选择信息, 根据用户的选择, 隐藏用户界面上的当前 IM聊天窗口或 者不执行隐藏操作。  The UI unit 101 is further configured to send to the user whether to hide the selection information of the current IM chat window, hide the current IM chat window on the user interface or not perform the hidden operation according to the user's selection.
参见图 6, 图 6为本发明实施例三中 IM截图方法的流程示意图。 如图 6所示, 该方法包括:  Referring to FIG. 6, FIG. 6 is a schematic flowchart of an IM screenshot method according to Embodiment 3 of the present invention. As shown in Figure 6, the method includes:
步骤 601、 在接收到用户发起的截图请求后, 向用户发送是否隐 藏当前 IM聊天窗口的选择信息。  Step 601: After receiving the screenshot request initiated by the user, send a message to the user whether to hide the current IM chat window.
用户通过 UI单元 101发起截图请求, 对话框控制单元 102在判断 出当前窗口是 IM聊天窗口后, UI单元 101进一步向用户发送是否隐 藏当前 IM聊天窗口的选择信息。 The user initiates a screenshot request through the UI unit 101. After the dialog control unit 102 determines that the current window is an IM chat window, the UI unit 101 further sends a message to the user. Hide the selection information of the current IM chat window.
步骤 602、如果用户选择隐藏, 则隐藏用户界面上的上述当前 IM 聊天窗口; 如果用户选择不隐藏, 则执行步骤 603后本流程结束。  Step 602: If the user selects to hide, the current IM chat window on the user interface is hidden; if the user chooses not to hide, the process ends after step 603 is performed.
步骤 603、根据用户的选择, 在用户界面中截取相应区域的图片。 步骤 604、 将上述当前聊天窗口恢复显示到用户界面上。  Step 603: According to the user's selection, the picture of the corresponding area is intercepted in the user interface. Step 604: Resume displaying the current chat window to the user interface.
应用本实施例提出的 IM截图装置、 方法, 可以在判断出当前窗 口是 IM聊天窗口后和执行隐藏操作前,进一步接收用户的选择信息, 根据用户的选择, 隐藏用户界面上的当前 IM聊天窗口或者不进行隐 藏操作。 因此, 本实施例在解决了现有技术在进行 IM截图时容易受 到聊天窗口影响的基础上,进一步满足了用户可能希望截取聊天窗口 以内图像的需求。  Applying the IM screenshot device and method provided in this embodiment, after determining that the current window is an IM chat window and performing a hidden operation, the user's selection information is further received, and the current IM chat window on the user interface is hidden according to the user's selection. Or do not hide. Therefore, the embodiment solves the problem that the prior art is easily affected by the chat window when performing the IM screenshot, and further satisfies the requirement that the user may wish to intercept the image within the chat window.
实施例四 Embodiment 4
本实施例在前述实施例的基础上, 在隐藏用户界面上的当前 IM 聊天窗口时, 进一步启动定时器, 在设定的时间期限内, 先刷新与上 述 IM聊天窗口重叠的周围窗口, 再根据用户的选择, 在用户界面中 截取相应区域的图片。  On the basis of the foregoing embodiment, when the current IM chat window on the user interface is hidden, the timer is further started, and the surrounding window overlapping with the IM chat window is refreshed first, and then according to the set time period. The user's choice to intercept the picture of the corresponding area in the user interface.
如图 3所示, IM截图装置包括: UI单元 101、对话框控制单元 102、 截图单元 103。  As shown in FIG. 3, the IM screenshot device includes: a UI unit 101, a dialog control unit 102, and a screenshot unit 103.
其中, 对话框控制单元 102、 截图单元 103与前述实施例中相应单 元的功能相同。  The dialog control unit 102 and the screenshot unit 103 have the same functions as the corresponding units in the foregoing embodiment.
UI单元 101进一步包括: 定时器(图 3中未示出), 该定时器用于 设定一段时间期限 T,以刷新与要隐藏的 IM聊天窗口重叠的周围窗口。 这是考虑到, 若要隐藏的 IM聊天窗口与周围窗口有重叠, 当其隐藏之 后, 周围窗口会留下一些该 IM聊天窗口的残留图像, 因此需要提供一 段时间, 供周围窗口刷新, 把残留图像刷新掉。 该定时器中设定有一个 时间期限, 或称时间周期 T, 该时间周期 Τ是指当前聊天窗口的隐藏时 间点与截图的起始时间点之间的时间段, 其数值大小为系统默认。 在这 个时间周期 Τ内, 供 UI单元 101刷新周围窗口, 把残留图像刷新掉。 当定时器超时, 则通知截图单元 103开始截图操作。 The UI unit 101 further includes: a timer (not shown in FIG. 3) for setting a time period T to refresh a surrounding window overlapping the IM chat window to be hidden. This is to consider that the IM chat window to be hidden overlaps with the surrounding window. When it is hidden, the surrounding window will leave some residual images of the IM chat window, so it needs to be provided for a period of time for the surrounding window to refresh, leaving the residue The image is refreshed. One of the timers is set The time period, or time period T, refers to the time period between the hidden time point of the current chat window and the start time point of the screenshot, and the value is the system default. During this time period, the UI unit 101 refreshes the surrounding window to refresh the residual image. When the timer expires, the screenshot unit 103 is notified to start the screenshot operation.
参见图 7, 图 7为本发明实施例四中 ΙΜ截图方法的流程示意图。 如图 7所示, 该方法包括:  Referring to FIG. 7, FIG. 7 is a schematic flowchart of a method for taking a screenshot in the fourth embodiment of the present invention. As shown in Figure 7, the method includes:
步骤 701、 在接收到用户发起的截图请求后, 隐藏用户界面上的 当前 ΙΜ聊天窗口, 并启动定时器。  Step 701: After receiving the screenshot request initiated by the user, hide the current ΙΜ chat window on the user interface, and start a timer.
用户通过 UI单元 101发起截图请求, UI单元 101在收到对话框控 制单元 102发送的隐藏指令后,执行该指令,将用户界面上的当前 ΙΜ 聊天窗口隐藏。  The user initiates a screenshot request through the UI unit 101. After receiving the hidden instruction sent by the dialog control unit 102, the UI unit 101 executes the instruction to hide the current 聊天 chat window on the user interface.
此时, 本实施例考虑到一种情况, 若要隐藏的 ΙΜ聊天窗口与周围 窗口有重叠, 当其隐藏之后, 上述周围窗口就会留下一些该 ΙΜ聊天窗 口的残留图像。 因此, UI单元 101在将当前聊天窗口隐藏的同时启动其 内部的一个定时器。 该定时器设设定有一个时间期限 Τ, 也称时间周期 Τ, 该时间期限 Τ是指当前聊天窗口的隐藏时间点与截图的起始时间点 之间的时间段, 其数值大小为系统默认。 在这个时间周期 Τ 内, 供 UI 单元 101刷新周围窗口, 把残留图像刷新掉。  At this time, the present embodiment considers a case where the hidden chat window overlaps with the surrounding window, and when it is hidden, the surrounding window leaves some residual images of the chat window. Therefore, the UI unit 101 starts a timer inside thereof while hiding the current chat window. The timer setting has a time limit Τ, also called a time period Τ, which is the time period between the hidden time point of the current chat window and the start time point of the screenshot, and the value is the system default. . During this time period ,, the UI unit 101 refreshes the surrounding window to refresh the residual image.
步骤 702、在定时器设定的时间周期 Τ内,刷新与上述 ΙΜ聊天窗 口重叠的周围窗口。  Step 702: Refresh the surrounding window overlapping with the above-mentioned ΙΜ chat window within the time period set by the timer.
在时间周期 Τ内, UI单元 101刷新与 ΙΜ聊天窗口重叠的周围窗 口。 当定时器超时, 则代表 UI单元 101 已经完成刷新, 此时, 异步进 入到截图单元 103开始截图操作。  During the time period UI, the UI unit 101 refreshes the surrounding window that overlaps with the ΙΜ chat window. When the timer expires, it means that the UI unit 101 has completed the refreshing. At this time, the different stepping into the screenshot unit 103 starts the screenshot operation.
步骤 703、根据用户的选择, 在用户界面中截取相应区域的图片。 步骤 704、 将上述 ΙΜ聊天窗口恢复显示到用户界面上。 应用本实施例提出的 IM截图装置、 方法, 可以在隐藏用户界面 上的当前 IM聊天窗口时,进一步启动定时器,在设定的时间期限内, 先刷新与上述 IM聊天窗口重叠的周围窗口, 再根据用户的选择, 在 用户界面中截取相应区域的图片。 因此, 本实施例在解决了现有技术 在进行 IM截图时容易受到聊天窗口影响的基础上, 进一步消除了隐 藏当前 IM聊天窗口后, 该 IM聊天窗口在与之重叠的周围窗口上留 下的残留图像, 保证了用户能够截取到正确的图片。 Step 703: According to the user's selection, the picture of the corresponding area is intercepted in the user interface. Step 704: Resume displaying the foregoing chat window to the user interface. Applying the IM screenshot device and method provided in this embodiment, when the current IM chat window on the user interface is hidden, the timer is further started, and the surrounding window overlapping with the IM chat window is first refreshed within a set time period. Then, according to the user's selection, the picture of the corresponding area is intercepted in the user interface. Therefore, the embodiment solves the problem that the prior art is easily affected by the chat window when performing the IM screenshot, and further eliminates the hidden left window of the IM chat window after the current IM chat window is hidden. The residual image ensures that the user can capture the correct picture.
实施例五 Embodiment 5
本实施例在前述实施例的基础上, 在将所隐藏的 IM聊天窗口恢 复显示到用户界面后, 进一步在上述 IM聊天窗口中粘贴用户所截取 的图片。  On the basis of the foregoing embodiment, after the hidden IM chat window is restored to the user interface, the image intercepted by the user is further pasted in the IM chat window.
如图 3所示, IM截图装置包括: UI单元 101、对话框控制单元 102、 截图单元 103。  As shown in FIG. 3, the IM screenshot device includes: a UI unit 101, a dialog control unit 102, and a screenshot unit 103.
其中,对话框控制单元 102与前述实施例中相应单元的功能相同。  Among them, the dialog control unit 102 has the same function as the corresponding unit in the foregoing embodiment.
UI单元 101进一步用于接收截图单元 103所截取的图片,在恢复显 示 IM聊天窗口后, 将上述图片粘贴到上述 IM聊天窗口中。  The UI unit 101 is further configured to receive the picture captured by the screenshot unit 103, and after restoring the display of the IM chat window, paste the picture into the IM chat window.
截图单元 103进一步用于将所截取的图片传送至 UI单元 101 ,待 The screenshot unit 103 is further configured to transfer the intercepted picture to the UI unit 101, and wait
UI单元 101将 IM聊天窗口恢复显示后再粘贴到当前聊天窗口中。 The UI unit 101 restores the IM chat window to display and pastes it into the current chat window.
参见图 8, 图 8为本发明实施例五中 IM截图方法的流程示意图。 如图 8所示, 该方法包括:  Referring to FIG. 8, FIG. 8 is a schematic flowchart diagram of an IM screenshot method according to Embodiment 5 of the present invention. As shown in Figure 8, the method includes:
步骤 801、 在接收到用户发起的截图请求后, 隐藏用户界面上的 当前 IM聊天窗口。  Step 801: After receiving the screenshot request initiated by the user, hiding the current IM chat window on the user interface.
步骤 802、根据用户的选择, 在用户界面中截取相应区域的图片。 步骤 803、 将上述 IM聊天窗口恢复显示到用户界面上。  Step 802: According to the user's selection, intercept the picture of the corresponding area in the user interface. Step 803: Resume displaying the IM chat window to the user interface.
步骤 804、 在上述 IM聊天窗口中粘贴所截取的上述图片。 UI单元 101接收截图单元 103所截取的上述图片,并在恢复显示上 述 IM聊天窗口后, 将上述图片粘贴到上述 IM聊天窗口中。 Step 804: Paste the captured picture in the IM chat window. The UI unit 101 receives the above-mentioned picture captured by the screenshot unit 103, and after restoring the display of the IM chat window, pastes the picture into the IM chat window.
应用本实施例提出的 IM截图装置、 方法, 可以在将 IM聊天窗口 恢复显示到用户界面后, 进一步在上述 IM聊天窗口中粘贴用户所截 取的图片。 因此, 本实施例在解决了现有技术在进行 IM截图时容易 受到聊天窗口影响的基础上, 自动将用户截取的图片粘贴在上述 IM 聊天窗口中, 提高了用户操作的便利性。  Applying the IM screenshot device and method proposed in this embodiment, after the IM chat window is restored and displayed to the user interface, the image captured by the user may be further pasted in the IM chat window. Therefore, the present embodiment solves the problem that the prior art is easily affected by the chat window when the IM screenshot is performed, and the image intercepted by the user is automatically pasted in the IM chat window, thereby improving the convenience of the user operation.
实施例六 Embodiment 6
在前述实施例中, UI单元在接收到用户发起的截图请求后, 隐藏 当前 IM聊天窗口, 并根据用户的选择, 在用户界面中截取相应区域 的图片。 截取到的上述图片可立即传递给对方 IM聊天用户, 但如果直 接截取到的上述图片不能满足用户的需求则需先对其进行编辑。 然而, 现有技术中的 IM截图编辑方法比较繁瑣,用户不得不首先退出 IM截图, 将图像保存为文件, 然后打开一个图形处理软件进行处理, 再对处理后 的图像进行第二次截图后, 才能发送给对方。 这样, 用户即便只是想对 图像进行筒单编辑, 也要大费周折, 浪费不少的时间, 无法满足用户对 即时性的要求。  In the foregoing embodiment, after receiving the screenshot request initiated by the user, the UI unit hides the current IM chat window, and intercepts the picture of the corresponding area in the user interface according to the user's selection. The captured picture can be immediately delivered to the other party's IM chat user, but if the above-mentioned picture intercepted directly cannot meet the user's needs, it needs to be edited first. However, the IM screenshot editing method in the prior art is cumbersome, and the user has to first exit the IM screenshot, save the image as a file, then open a graphics processing software for processing, and then perform a second screenshot of the processed image. Can be sent to the other party. In this way, even if the user just wants to edit the image, it takes a lot of trouble and wastes a lot of time, which cannot satisfy the user's requirement for immediacy.
因此, 本实施例在前述实施例的基础上, 在根据用户的选择截取 图片后, 进一步对上述图片进行编辑, 以满足用户的多种截图编辑需 求, 全面、 方便且有效地对 IM截图进行处理。  Therefore, based on the foregoing embodiment, after the picture is intercepted according to the user's selection, the image is further edited to meet the user's multiple screenshot editing requirements, and the IM screenshot is processed comprehensively, conveniently, and effectively. .
参见图 9, 图 9为本发明实施例六中 IM截图装置的结构示意图。 如图 9所示, 该装置包括: UI单元 101、 对话框控制单元 102、 截图单 元 103、 截图编辑单元 204。 其中:  Referring to FIG. 9, FIG. 9 is a schematic structural diagram of an IM screenshot device according to Embodiment 6 of the present invention. As shown in FIG. 9, the apparatus includes: a UI unit 101, a dialog control unit 102, a screenshot unit 103, and a screenshot editing unit 204. among them:
( 1 ) UI单元 101用于接收用户发起的截图请求, 执行对话框控 制单元 102发送的隐藏指令或显示指令, 隐藏当前 IM聊天窗口或者 恢复显示上述 IM聊天窗口, 并接收用户的截图编辑指令。 (1) The UI unit 101 is configured to receive a user-initiated screenshot request, execute a hidden instruction or a display instruction sent by the dialog control unit 102, and hide the current IM chat window or The display of the above IM chat window is resumed, and the user's screenshot editing instruction is received.
( 2 )对话框控制单元 102用于生成并向 UI单元 101发送上述隐藏 指令或显示指令。  (2) The dialog control unit 102 is configured to generate and transmit the above hidden instruction or display instruction to the UI unit 101.
( 3 )截图单元 103用于当对话框控制单元发送隐藏指令给 UI单元 (3) The screenshot unit 103 is configured to send a hidden instruction to the UI unit when the dialog control unit sends
101控制上述 IM聊天窗口隐藏后, 根据用户的选择, 在用户界面中截 取相应区域的图片。 101. After controlling the above IM chat window to be hidden, according to the user's selection, the picture of the corresponding area is intercepted in the user interface.
( 4 )截图编辑单元 204用于根据用户的截图编辑指令,对所截取的 图片执行相应编辑操作。所称的编辑操作包括: 在编辑所截取图片的过 程中逐步撤销或恢复执行用户的已执行操作、在所截取图片中添加活 动文本框、 实现该文本框的透明显示、 改善图像质量、 对相同图片进 行连续编辑等等。  (4) The screenshot editing unit 204 is configured to perform a corresponding editing operation on the captured image according to the screenshot editing instruction of the user. The so-called editing operations include: gradually undoing or restoring the executed user's executed operations during editing of the captured image, adding an active text box to the captured image, implementing transparent display of the text box, improving image quality, and The picture is continuously edited and so on.
参见图 10, 图 10为本发明实施例六中截图编辑单元的结构示意 图。 如图 10所示, 该截图编辑单元 204包括: 记录管理模块 2041、 文本框处理模块 2042、 图像处理模块 2043 , 连续编辑模块 2044。 其 中:  Referring to FIG. 10, FIG. 10 is a schematic structural diagram of a screenshot editing unit according to Embodiment 6 of the present invention. As shown in FIG. 10, the screenshot editing unit 204 includes: a recording management module 2041, a text box processing module 2042, an image processing module 2043, and a continuous editing module 2044. among them:
( 1 )记录管理模块 2041用于逐步撤销或恢复执行用户在编辑所 截取图片过程中的已执行操作。 具体来说, 记录管理模块 2041管理 撤销操作记录空间和恢复操作记录空间,以实现包括对撤销操作记录 空间中保存的用户已执行操作进行逐步撤销或者对恢复操作记录空 间中保存的用户已撤销操作进行恢复执行等。 本实施例中, 记录管理 模块 2041可基于多种数据处理技术来管理记录空间。  (1) The record management module 2041 is configured to gradually cancel or resume the executed operation of the user during editing of the captured picture. Specifically, the record management module 2041 manages the undo operation record space and the resume operation record space to implement the step of revoking the user-executed operation saved in the undo operation record space or the user revoked operation saved in the recovery operation record space. Perform recovery execution, etc. In this embodiment, the record management module 2041 can manage the recording space based on a variety of data processing techniques.
在一个示例方案中, 记录管理模块 2041 采取堆栈技术管理记录 空间。 该记录管理模块 2041 负责以下各种操作: 初始化记录空间、 压入记录、 弹出记录、 移动记录、 剩余空间管理、 已使用空间管理、 当前记录指针管理、 分配记录空间、 回收记录空间、 记录空间饱和管 理等。 In an example scenario, the records management module 2041 takes a stacking technique to manage the logging space. The record management module 2041 is responsible for the following operations: initializing the recording space, pressing the record, popping the record, moving the record, remaining space management, used space management, current record pointer management, allocating the recording space, reclaiming the recording space, and recording the space saturated. Tube And so on.
具体来说, 记录管理模块 2041 用于分配和初始化撤销操作记录 空间和恢复操作记录空间;在向撤销操作记录空间中每添加一个编辑 操作时, 判断该撤销操作记录空间是否已饱和: 若是, 则执行饱和管 理策略(例如清除时间最早的操作记录并压入上述新的操作记录等); 若否, 则向该撤销操作记录空间压入上述编辑操作; 并判断所接收到 的用户的编辑指令是撤销指令还是恢复指令: 如果是撤销指令, 则判 断该撤销操作记录空间是否已空: 若是, 则撤销功能无法使用, 不执 行任何操作; 若否, 在撤销操作记录空间中删除该撤销指令所指向的 操作记录并在恢复操作记录空间中添加上述操作记录,从而完成一次 撤销操作; 如果是恢复指令, 则判断该恢复操作记录空间是否已空: 若是, 则恢复执行功能无法使用, 不执行任何操作; 若否, 则恢复执 行该恢复指令所指向的操作记录,在恢复操作记录空间中删除该恢复 指令所指向的操作记录, 并在撤销操作记录空间中添加上述操作记 录, 从而完成一次恢复执行操作。  Specifically, the record management module 2041 is configured to allocate and initialize the undo operation record space and the resume operation record space; when each edit operation is added to the undo operation record space, it is determined whether the undo operation record space is saturated: if yes, Performing a saturation management policy (for example, clearing the oldest operation record and pressing the new operation record, etc.); if not, pushing the edit operation to the undo operation record space; and determining that the received user's edit instruction is Whether to cancel the instruction or resume the instruction: If it is the undo instruction, it is judged whether the undo operation record space is empty: If yes, the undo function cannot be used, and no operation is performed; if not, the cancellation instruction is deleted in the undo operation record space. The operation record is added to the recovery operation record space to complete the above operation record, thereby completing a revocation operation; if it is a recovery instruction, it is judged whether the recovery operation record space is empty: If yes, the resume execution function cannot be used, and no operation is performed. If not, Then, the operation record pointed to by the recovery instruction is resumed, the operation record pointed to by the recovery instruction is deleted in the recovery operation record space, and the operation record is added in the undo operation record space, thereby completing a resume execution operation.
应当说明的是, 本示例方案中记录管理模块 2041 对记录空间的 数据管理方式仅仅是示范性的,在实际应用中不应限定于上述的堆栈 技术, 还可以是其他的方式, 例如数据队列、 数据表等。  It should be noted that the data management mode of the record management module 2041 for the record space in the example solution is merely exemplary, and should not be limited to the above stack technology in practical applications, and may also be other methods, such as data queue, Data sheets, etc.
( 2 )文本框处理模块 2042用于在所截取图片中添加活动文本框。 具体来说,文本框处理模块 2042用于根据用户截图编辑指令,在所 截图片中添加一个文本框, 接收用户在所添加文本框中添加的文字, 在完成编辑前, 根据用户的请求移动文本框, 并将文字的位置进行记 录, 从而在编辑过程中移动和改变文字位置, 使文本框中的文字随着 文本框的移动而改变位置。 该活动文本框的可活动性, 文本框处理模 块 2042是这样实现的: ①当文本框显示时, 记录文本框的大小 S; ② 当用户在文本框内点下鼠标左键, 记录鼠标的坐标 PA; ③当用户按 住鼠标左键开始移动, 根据鼠标移动后的坐标 PB与 PA之差, 移动 文本框; ④移动的同时调用截图单元 103 , 获取所选区域内各点的坐 标 PX1 (左上) 、 PX2 (左下;) 、 PX3 (右上) 、 PX4 (右下) ; ⑤ 在执行④的同时, 判断移动后的文本框是否在屏幕选区的框选范围 内; ⑥如果⑤是, 则执行移动效果; ⑦如果⑤否, 则将选框的边界调 整到框选范围内, 再执行移动。 (2) The text box processing module 2042 is configured to add an active text box to the captured picture. Specifically, the text box processing module 2042 is configured to add a text box to the cut picture according to the user screenshot editing instruction, receive the text added by the user in the added text box, and move the text according to the user's request before completing the editing. The box, and the position of the text is recorded, so as to move and change the position of the text during the editing process, so that the text in the text box changes position as the text box moves. The activity of the active text box, the text box processing module 2042 is implemented as follows: 1 when the text box is displayed, the size of the text box is recorded S; When the user clicks the left mouse button in the text box, the coordinates of the mouse PA are recorded; 3 when the user presses the left mouse button to start moving, according to the difference between the coordinates PB and PA after the mouse movement, the text box is moved; The screenshot unit 103 obtains coordinates PX1 (upper left), PX2 (bottom left;), PX3 (upper right), and PX4 (bottom right) of each point in the selected area; 5, while executing 4, determines whether the moved text box is Within the frame selection range of the screen selection; 6 If 5 is, the movement effect is executed; 7 If 5 is not, the boundary of the selection frame is adjusted to the frame selection range, and then the movement is performed.
文本框处理模块 2042还可以用于在所截取图片中添加透明显示 的文本框。  The text box processing module 2042 can also be used to add a transparently displayed text box to the captured picture.
具体来说,文本框处理模块 2042用于根据用户截图编辑指令,在所 截图片中添加一个文本框, 接收用户在所添加文本框中添加的文字, 并调用截图单元 103获取当前屏幕图像,并将其粘贴到上述文本框中, 实现文本框与 IM截图编辑的背景无缝的保持一致, 这样用户在编辑 过程中则可预览到编辑后效果, 时刻清楚当前编辑对最终效果的影 响。 其具体实现过程如下: 文本框处理模块 2042从消息队列里获取 一条消息; 判断该消息是否为 WM_ERASEBKGND消息; 如果是, 则调用截图单元 103获取当前屏幕图像,并将当前屏幕图像贴到文本 框背景中。 其中, WM_ERASEBKGND消息是一种 Windows窗口刷 新的消息, 当窗口需要刷新时, 文本框处理模块 2042将从系统的消息 队列中收到这种消息。  Specifically, the text box processing module 2042 is configured to add a text box to the cut picture according to the user screenshot editing instruction, receive the text added by the user in the added text box, and call the screenshot unit 103 to obtain the current screen image, and Paste it into the above text box, and realize that the text box is consistent with the background of the IM screenshot editing, so that the user can preview the effect after editing in the editing process, and the effect of the current editing on the final effect is clear. The specific implementation process is as follows: The text box processing module 2042 obtains a message from the message queue; determines whether the message is a WM_ERASEBKGND message; if yes, the screenshot unit 103 is called to acquire the current screen image, and paste the current screen image to the text box background. in. The WM_ERASEBKGND message is a Windows window refresh message. When the window needs to be refreshed, the text box processing module 2042 will receive such a message from the system's message queue.
应当说明的是, 本示例方案中文本框处理模块 2042 实现添加活 动文本框或透明显示文本框的方式仅仅是示范性的,在实际应用中还 可以是其他的方式。  It should be noted that the manner in which the text box processing module 2042 in this example solution implements the addition of an active text box or a transparent display text box is merely exemplary, and may be other methods in practical applications.
( 3 )图像处理模块 2043用于对所截取的图片进行数据处理改善 图像质量。 具体来说, 图像处理模块 2043对所截取的图片采用极坐标转换 平面坐标的相关理论进行坐标变换, 以改善图像质量, 提高某些特殊 图形如箭头的显示效果。 其机制是: 根据一个三角形顶点的坐标及角 度, 算出三角形另外两点的坐标, 从而基于计算结果将空缺的象素点 补齐。 (3) The image processing module 2043 is configured to perform data processing on the captured picture to improve image quality. Specifically, the image processing module 2043 performs coordinate transformation on the captured picture using a correlation theory of polar coordinate plane coordinates to improve image quality and improve the display effect of some special graphics such as arrows. The mechanism is: Calculate the coordinates of the other two points of the triangle according to the coordinates and angle of a triangle vertex, and then fill the missing pixel points based on the calculation result.
应当说明的是, 本示例方案中图像处理模块 2043 实现改善图像 质量的方式仅仅是示范性的, 在实际应用中还可以是其他的方式。  It should be noted that the manner in which the image processing module 2043 in the present exemplary embodiment achieves improved image quality is merely exemplary, and may be other methods in practical applications.
( 4 ) 连续编辑模块 2044用于对相同图片进行连续编辑。  (4) The continuous editing module 2044 is used to continuously edit the same picture.
具体来说, 连续编辑模块 2044 为每一种图形编辑操作确定一种 类型, 例如 DS_RECTANGLE对应绘制矩形操作、 DS_CIRLCE对应 绘制橢圓操作、 DS_TEXT对应绘制文本框操作等。 当用户需要进行 某种图形编辑时, 例如用户需要在所截取的图片上绘制矩形, 连续编 辑模块 2044将图形编辑命令设成对应类型, 则当前的编辑操作就对 应绘制某一种图形,直到用户取消编辑操作时,则连续编辑模块 2044 将图形编辑命令的类型设为空, 使其不处于编辑状态, 例如 DS—NO亂  Specifically, the continuous editing module 2044 determines a type for each type of graphics editing operation, such as DS_RECTANGLE corresponding to drawing rectangle operation, DS_CIRLCE corresponding drawing ellipse operation, DS_TEXT corresponding drawing text box operation, and the like. When the user needs to perform some kind of graphic editing, for example, the user needs to draw a rectangle on the captured picture, and the continuous editing module 2044 sets the graphic editing command to the corresponding type, the current editing operation correspondingly draws a certain graphic until the user When the editing operation is canceled, the continuous editing module 2044 sets the type of the graphic editing command to be empty, so that it is not in the editing state, for example, DS-NO
应当说明的是, 本示例方案中连续编辑模块 2044 实现连续编辑 相同图片的方式仅仅是示范性的, 在实际应用中还可以是其他的方 式。  It should be noted that the manner in which the continuous editing module 2044 in the exemplary embodiment implements continuous editing of the same picture is merely exemplary, and may be other methods in practical applications.
还应当说明的是, 上述模块仅为本发明中的几个典型的编辑模 块, 但是在实际应用中并不限定于此, 该截图编辑单元 204具有充分 的扩展性, 可根据用户的各种个性化需求扩展与新的模块。  It should also be noted that the foregoing modules are only a few typical editing modules in the present invention, but are not limited thereto in practical applications. The screenshot editing unit 204 has sufficient scalability and can be based on various personalities of users. Demand expansion and new modules.
参见图 11 , 图 11为本发明实施例六中 IM截图方法的流程示意 图。 如图 11所示, 该方法包括:  Referring to FIG. 11, FIG. 11 is a schematic flow chart of an IM screenshot method according to Embodiment 6 of the present invention. As shown in Figure 11, the method includes:
步骤 1101、在接收到用户发起的截图请求后, 隐藏用户界面上的 当前 IM聊天窗口。 Step 1101: After receiving the screenshot request initiated by the user, hiding the user interface Current IM chat window.
步骤 1102、根据用户的选择,在用户界面中截取相应区域的图片。 步骤 1103、 根据用户的指令, 对所截取的上述图片进行编辑。 截图编辑单元 204接收用户发送的截图编辑指令, 并判断该截图 编辑指令的内容; 根据截图编辑指令的内容, 对所截取的图片执行相 应的编辑操作。 本实施例中, 截图编辑操作可以包括以下各种操作的 一种或多种, 例如: 逐步撤销或恢复执行用户在编辑所截取图片过程 中的已执行操作、 在所截取图片中添加活动文本框、 在所截取图片中 添加透明显示的文本框、 对所截取的图片进行数据处理改善图像质 量、 对相同图片进行连续编辑等等。  Step 1102: According to the user's selection, the picture of the corresponding area is intercepted in the user interface. Step 1103: Edit the captured picture according to a user instruction. The screenshot editing unit 204 receives the screenshot editing instruction sent by the user, and determines the content of the screenshot editing instruction; and performs a corresponding editing operation on the intercepted image according to the content of the screenshot editing instruction. In this embodiment, the screenshot editing operation may include one or more of the following various operations, for example: gradually undoing or restoring the executed operation of the user during the editing of the captured image, and adding the active text box to the captured image. Adding a transparently displayed text box to the captured image, performing data processing on the captured image, improving image quality, continuously editing the same image, and the like.
( 1 ) 在上述步骤的一个示例方案中, 关于逐步 ·ί敦销 (undo ) 或 恢复执行( redo )用户在编辑所截取图片过程中的已执行操作: 记录 管理模块 2041采取堆栈技术管理记录空间。该记录管理模块 2041负 责执行以下各种操作: 初始化记录空间、 压入记录、 弹出记录、 移动 记录、 剩余空间管理、 已使用空间管理、 当前记录指针管理、 分配记 录空间、 回收记录空间、 记录空间饱和管理等。  (1) In an exemplary scenario of the above steps, regarding the step-by-step undo or redo execution of the performed operation by the user in editing the captured picture: the record management module 2041 adopts a stacking technique to manage the recording space. . The record management module 2041 is responsible for performing the following operations: initializing the recording space, pressing the record, popping the record, moving the record, remaining space management, used space management, current record pointer management, allocating the recording space, reclaiming the recording space, and recording the space. Saturated management, etc.
参见图 12, 图 12为本发明实施例六中逐步 ^销或恢复执行用户 已执行操作方法的流程示意图。如图 12所示,利用记录管理模块 2041 逐步撤销或恢复执行用户的已执行操作的具体步骤包括:  Referring to FIG. 12, FIG. 12 is a schematic flowchart of a step-by-step or resume execution method performed by a user in the sixth embodiment of the present invention. As shown in FIG. 12, the specific steps of using the record management module 2041 to gradually cancel or resume the executed operation of the user include:
步骤 1201、 分配和初始化撤销操作记录空间和恢复操作记录空 间。  Step 1201: Allocate and initialize the undo operation record space and the resume operation record space.
步骤 1202、 向撤销操作记录空间中每添加一个编辑操作, 则判断 该撤销操作记录空间是否已饱和: 若是, 则执行饱和管理策略(例如 清除时间最早的操作记录并压入上述新的操作记录等); 若否, 则向 该撤销操作记录空间压入上述编辑操作。 步骤 1203、判断所接收到的用户的编辑指令是撤销指令还是恢复 指令: 如果是撤销指令, 则执行步骤 1204; 如果是恢复指令, 则执 行步骤 1205。 Step 1202: Add an editing operation to the undo operation recording space, and determine whether the undo operation recording space is saturated: if yes, execute a saturation management policy (for example, clearing the oldest operation record and pressing the new operation record, etc.) If no, the above edit operation is pushed to the undo operation record space. Step 1203: Determine whether the received editing instruction of the user is an undo instruction or a resume instruction: if it is an undo instruction, execute step 1204; if it is a resume instruction, execute step 1205.
步骤 1204、 若所接收到的用户的编辑指令是撤销指令, 则判断该 撤销操作记录空间是否已空: 若是, 则撤销功能无法使用, 不执行任 何操作; 若否, 在撤销操作记录空间中删除该撤销指令所指向的操作 记录并在恢复操作记录空间中添加上述操作记录,从而完成一次 4款销 操作。  Step 1204: If the received editing instruction of the user is an undo instruction, determine whether the undo operation recording space is empty: if yes, the undo function cannot be used, and no operation is performed; if not, deleting in the undo operation recording space The operation record pointed to by the revocation instruction is added to the operation record space of the recovery operation, thereby completing one 4-pin operation.
步骤 1205、 若所接收到的用户的编辑指令是恢复指令, 则判断该 恢复操作记录空间是否已空: 若是, 则恢复执行功能无法使用, 不执 行任何操作; 若否, 则恢复执行该恢复指令所指向的操作记录, 在恢 复操作记录空间中删除该恢复操作指令所指向的操作记录,并在撤销 操作记录空间中添加上述操作记录, 从而完成一次恢复执行操作。  Step 1205: If the received editing instruction of the user is a recovery instruction, determine whether the recovery operation recording space is empty: if yes, the resume execution function cannot be used, and no operation is performed; if not, the recovery instruction is resumed. The operation record pointed to, deletes the operation record pointed to by the recovery operation instruction in the recovery operation record space, and adds the above operation record in the undo operation record space, thereby completing a resume execution operation.
这样, 用户在对所截取图片进行编辑的过程中, 就可以对已执行 的编辑操作实现逐步撤销或者恢复执行。 应当说明的是, 本示例方案 中对记录空间的数据管理方式仅仅是示范性的,在实际应用中不应限 定于上述的堆栈技术, 还可以是其他的方式, 例如数据队列、 数据表 等。  In this way, the user can gradually cancel or resume the executed editing operation during the editing of the captured picture. It should be noted that the data management manner of the recording space in the exemplary solution is merely exemplary, and should not be limited to the above stacking technology in practical applications, and may also be other methods, such as data queues, data tables, and the like.
( 2 ) 在上述步骤的一个示例方案中, 关于在所截取图片中添加 活动文本框: 文本框处理模块 2042根据用户截图编辑指令, 在所截图 片中添加文本框, 并根据用户的指令移动该文本框, 从而实现了在可视 化的编辑过程中, 移动和改变文字位置。 这样, 用户就可以在截图背景 上添加一个可活动文本框, 并可以在文本框里面添加文字, 在完成编辑 前, 文字可以随着文本框的移动而改变位置。  (2) In an example scenario of the above steps, regarding adding an active text box to the captured picture: the text box processing module 2042 adds a text box to the cut picture according to the user screenshot editing instruction, and moves the according to the user's instruction. The text box, which enables the movement and change of the text position during the visual editing process. This allows the user to add an active text box to the background of the screenshot and add text to the text box. The text can change position as the text box moves before editing.
参见图 13 , 图 13为本发明实施例六中添加活动文本框方法的流 程示意图。 如图 13所示, 利用文本框处理模块 2042实现活动文本框 的具体步骤包括: Referring to FIG. 13, FIG. 13 is a flowchart of adding an active text box method according to Embodiment 6 of the present invention. Schematic diagram. As shown in FIG. 13, the specific steps of implementing the active text box by using the text box processing module 2042 include:
步骤 1301、 根据用户的请求, 在所截图片中添加指定大小的文本 框, 并记录文本框的大小 S。  Step 1301: Add a text box of a specified size to the cut picture according to the user's request, and record the size S of the text box.
步骤 1302、如果用户在文本框内点下鼠标左键, 记录鼠标的坐标 Step 1302: If the user clicks the left mouse button in the text box, the coordinates of the mouse are recorded.
PA。 PA.
步骤 1303、如果用户按住鼠标左键开始移动, 根据鼠标移动后的 坐标 PB与 PA之差, 移动文本才匡。  Step 1303: If the user presses the left mouse button to start moving, the text is moved according to the difference between the coordinates PB and PA after the mouse is moved.
步骤 1304、 移动的同时调用截图单元 103 , 获取所选区域内各点 的坐标 PX1 (左上) 、 PX2 (左下) 、 PX3 (右上) 、 PX4 (右下) 。 同时, 判断移动后的文本框是否在屏幕选区的框选范围内: 如果是, 执行移动效果; 如果否, 则将文本框的边界调整到框选范围内, 再执 行移动。  In step 1304, the screenshot unit 103 is called while moving, and the coordinates PX1 (upper left), PX2 (bottom left), PX3 (upper right), and PX4 (bottom right) of each point in the selected area are obtained. At the same time, it is judged whether the moved text box is within the frame selection range of the screen selection area: If yes, the movement effect is performed; if not, the boundary of the text box is adjusted to the frame selection range, and then the movement is performed.
这样, 用户在对所截取图片进行编辑的过程中, 可在添加文本框 并在其中添加文字, 在完成编辑前, 用户可以拖动文本框移动到所需 位置, 并且文字可以随着文本框的移动而改变位置。 应当说明的是, 本示例方案中添加活动文本框的实现方式仅仅是示范性的,在实际应 用中不应限定于上述方法。  In this way, the user can add a text box and add text in the process of editing the captured picture. Before completing the editing, the user can drag the text box to move to the desired position, and the text can follow the text box. Move to change position. It should be noted that the implementation of adding the active text box in this example scenario is merely exemplary, and should not be limited to the above method in practical applications.
( 3 ) 在上述步骤的一个示例方案中, 关于在所截取图片中添加 透明显示的文本框: 文本框处理模块 2042根据用户截图编辑指令, 在 所截图片中添加一个文本框,接收用户在所添加文本框中添加的文字, 并调用截图单元 103获取当前屏幕图像后,将其粘贴到上述文本框中, 实现文本框与 IM截图编辑的背景无缝的保持一致。  (3) In an example scenario of the above steps, regarding adding a transparently displayed text box to the captured picture: the text box processing module 2042 adds a text box to the cut picture according to the user screenshot editing instruction, and receives the user in the After adding the text added in the text box, and calling the screenshot unit 103 to obtain the current screen image, paste it into the above text box, and the text box is seamlessly aligned with the background of the IM screenshot editing.
参见图 14, 图 14为本发明实施例六中添加透明显示文本框方法 的流程示意图。 如图 14所示, 利用文本框处理模块 2042实现透明显 示文本框的具体步骤包括: Referring to FIG. 14, FIG. 14 is a schematic flowchart of a method for adding a transparent display text box according to Embodiment 6 of the present invention. As shown in FIG. 14, the transparent display is implemented by the text box processing module 2042. The specific steps of the text box include:
步骤 1401、 从系统的消息队列里获取消息。  Step 1401: Obtain a message from a message queue of the system.
步骤 1402、 判断该消息是否是 WM_ERASEBKGND消息; 如果 是, 则调用截图单元 103获取当前屏幕图像, 并将当前屏幕图像贴到 文本框背景中; 否则, 不做任何操作。 其中, WM_ERASEBKGND 消息是一种 Windows窗口刷新的消息, 当窗口需要刷新时, 文本框处 理模块 2042将从系统的消息队列中收到这种消息。  Step 1402: Determine whether the message is a WM_ERASEBKGND message; if yes, call the screenshot unit 103 to obtain the current screen image, and paste the current screen image into the text box background; otherwise, do nothing. The WM_ERASEBKGND message is a Windows window refresh message. When the window needs to be refreshed, the text box processing module 2042 will receive such a message from the system's message queue.
这样, 用户在对所截取图片进行编辑的过程中, 具体来说, 在对 文本框中添加文字时, 可预览到编辑后效果, 时刻清楚当前编辑对最 终效果的影响。 应当说明的是, 本示例方案中实现该文本框透明显示 的方式仅仅是示范性的, 在实际应用中不应限定于上述方法。  In this way, when the user edits the captured picture, specifically, when adding text to the text box, the effect after editing can be previewed, and the influence of the current editing on the final effect is known at all times. It should be noted that the manner in which the transparent display of the text box is implemented in the exemplary embodiment is merely exemplary, and should not be limited to the above method in practical applications.
( 4 ) 在上述步骤的一个示例方案中, 关于改善图像质量: 图像 处理模块 2043对所截取的图片进行数据处理, 包括例如进行极坐标变 换, 以改善图像质量。  (4) In an exemplary aspect of the above steps, with regard to improving image quality: The image processing module 2043 performs data processing on the captured picture, including, for example, performing polar coordinate transformation to improve image quality.
此处以改善箭头质量为例, 对本过程进行详细说明。 由于箭头由 三角形和直线构成, 在生成箭头过程中, 其中的三角形部分容易产生 畸变, 图形质量比较差。 为了解决上述问题, 在本实施例中, 图像处 理模块 2043根据一个三角形顶点的坐标及角度, 算出三角形另外两 点的坐标, 从而基于计算结果将空缺的象素点补齐, 提高了三角形的 图形质量。  This process is described in detail by taking the improvement of the arrow quality as an example. Since the arrow is composed of a triangle and a straight line, the triangle portion is prone to distortion during the generation of the arrow, and the quality of the figure is relatively poor. In order to solve the above problem, in the embodiment, the image processing module 2043 calculates the coordinates of the other two points of the triangle according to the coordinates and the angle of a triangle vertex, thereby filling the missing pixel points based on the calculation result, and improving the triangle graphic. quality.
这样, 用户在对所截取图片进行编辑的过程中, 可以得到较佳的 图形质量, 提高了用户体验。 应当说明的是, 本示例方案中改善图像 质量的实现方式仅仅是示范性的, 在实际应用中不应限定于上述方 法。  In this way, the user can obtain better graphics quality and improve the user experience in the process of editing the captured picture. It should be noted that the implementation of improving the image quality in the present exemplary embodiment is merely exemplary, and should not be limited to the above method in practical applications.
( 5 ) 在上述步骤的一个示例方案中, 关于对相同图片进行连续 编辑: 连续编辑模块 2044为每一种图形编辑操作确定一种类型, 例 如 DS_RECTANGLE对应绘制矩形操作、 DS_CIRLCE对应绘制橢圓 操作、 DS_TEXT对应绘制文本框操作等。 当用户需要进行某种图形 编辑时, 例如用户需要在所截取的图片上绘制矩形, 连续编辑模块 2044 将图形编辑命令设成对应类型, 则当前的编辑操作就对应绘制 某一种图形, 直到用户取消编辑操作时, 则连续编辑模块 2044将图 形编辑命令的类型设为空, 使其不处于编辑状态, 例如 DS_NONE。 (5) In an example scenario of the above steps, regarding continuous execution of the same picture Edit: The continuous editing module 2044 determines a type for each type of graphics editing operation, such as DS_RECTANGLE corresponding drawing rectangle operation, DS_CIRLCE corresponding drawing ellipse operation, DS_TEXT corresponding drawing text box operation, and the like. When the user needs to perform some kind of graphic editing, for example, the user needs to draw a rectangle on the captured picture, and the continuous editing module 2044 sets the graphic editing command to the corresponding type, the current editing operation correspondingly draws a certain graphic until the user When the editing operation is canceled, the continuous editing module 2044 sets the type of the graphic editing command to be empty so that it is not in an editing state, such as DS_NONE.
这样, 用户在对所截取图片进行编辑的过程中, 就可以连续绘制 多个所需图形, 例如用户选择 "橢圓 "图形后进入橢圓的编辑状态。 这 时, 用户可以连续画任意多个橢圓, 而不需要每画一个, 选择一次。 应当说明的是,本示例方案中连续编辑相同图片的实现方式仅仅是示 范性的, 在实际应用中不应限定于上述方法。  In this way, the user can continuously draw a plurality of desired graphics during the editing of the captured image, for example, the user selects the "ellipse" graphic and enters the editing state of the ellipse. At this time, the user can draw any number of ellipses continuously without having to draw one for each. It should be noted that the implementation of continuously editing the same picture in the present exemplary embodiment is merely exemplary, and should not be limited to the above method in practical applications.
当然, 本领域的技术人员可以意识到上述示例方案仅为本发明中 的几个典型应用, 步骤 1103 中的编辑操作具有充分的扩展性, 可以 根据用户的各种个性化需求而增加新的编辑操作。  Of course, those skilled in the art can appreciate that the above exemplary solutions are only a few typical applications in the present invention, and the editing operation in step 1103 is sufficiently scalable, and new editing can be added according to various personalized needs of users. operating.
步骤 1104、 将上述 IM聊天窗口恢复显示到用户界面上。  Step 1104: Restore the IM chat window to the user interface.
应用本实施例提出的 IM截图装置、 方法, 可以在根据用户的选 择截取图片后, 进一步对上述图片进行编辑, 例如: 在编辑所截取图 片的过程中逐步撤销或恢复执行用户的已执行操作、在所截取图片中 添加活动文本框、 实现该文本框的透明显示、 改善图像质量、 对相同 图片进行连续编辑等等。 这样, 用户在希望对所截取的图片进行编辑 时, 就不必将其保存为文件, 再利用图形处理软件进行编辑, 再执行 二次截图。 因此, 本实施例在解决了现有技术在进行 IM截图时容易 受到聊天窗口影响的基础上, 满足用户的截图编辑需求, 提高截图编 辑的全面性和便利性。 实施例七 Applying the IM screenshot device and method provided in this embodiment, after the image is intercepted according to the user's selection, the image may be further edited, for example: gradually canceling or restoring the executed user's executed operation during the process of editing the captured image, Add an active text box to the captured image, enable transparent display of the text box, improve image quality, continuously edit the same image, and more. In this way, when the user wants to edit the captured picture, it is not necessary to save it as a file, and then use the graphics processing software to edit, and then perform the second screenshot. Therefore, the embodiment solves the problem that the prior art is easily affected by the chat window when performing IM screenshots, satisfies the user's screenshot editing requirements, and improves the comprehensiveness and convenience of the screenshot editing. Example 7
在前述实施例中, UI单元在接收到用户发起的截图请求后, 隐藏 当前 IM聊天窗口, 并根据用户的选择, 在用户界面中截取相应区域 的图片。 截取到的上述图片可立即传递给对方 IM聊天用户, 当然用户 也可以选择自己保存所截取的上述图片。 然而, 现有技术中用户不得不 首先退出 IM截图,将图片粘贴到 IM聊天窗口或其他绘图软件中,再基 于 IM聊天窗口或其他绘图软件进行保存。 这样, 用户的保存操作比较 繁瑣, 无法满足用户对即时性的要求。  In the foregoing embodiment, after receiving the screenshot request initiated by the user, the UI unit hides the current IM chat window, and intercepts the picture of the corresponding area in the user interface according to the user's selection. The captured picture can be immediately delivered to the other party's IM chat user. Of course, the user can also choose to save the captured picture. However, in the prior art, the user has to first exit the IM screenshot, paste the picture into the IM chat window or other drawing software, and save it based on the IM chat window or other drawing software. In this way, the user's save operation is cumbersome and cannot meet the user's requirement for immediacy.
因此, 本实施例在前述实施例的基础上, 在根据用户的选择截取 图片后, 进一步对上述图片进行保存, 以提高对 IM截图进行保存的 效率和便利性。  Therefore, on the basis of the foregoing embodiment, the present embodiment further saves the above picture after the picture is intercepted according to the user's selection, so as to improve the efficiency and convenience of saving the IM screenshot.
参见图 15 , 图 15为本发明实施例七中 IM截图装置的结构示意 图。 如图 15所示, 该装置包括: UI单元 101、 对话框控制单元 102、 截图单元 103、 即时保存单元 305。 其中:  Referring to FIG. 15, FIG. 15 is a schematic structural diagram of an IM screenshot device according to Embodiment 7 of the present invention. As shown in FIG. 15, the apparatus includes: a UI unit 101, a dialog control unit 102, a screenshot unit 103, and an instant save unit 305. among them:
( 1 ) UI单元 101用于接收用户发起的截图请求, 执行对话框控 制单元 102发送的隐藏指令或显示指令, 隐藏当前 IM聊天窗口或者 恢复显示上述 IM聊天窗口, 并接收用户的截图保存指令。  (1) The UI unit 101 is configured to receive a user-initiated screenshot request, execute a hidden instruction or a display instruction sent by the dialog control unit 102, hide the current IM chat window or resume displaying the IM chat window, and receive a screenshot save instruction of the user.
( 2 )对话框控制单元 102用于生成并向 UI单元 101发送上述隐藏 指令或显示指令。  (2) The dialog control unit 102 is configured to generate and transmit the above hidden instruction or display instruction to the UI unit 101.
( 3 )截图单元 103用于当对话框控制单元发送隐藏指令给 UI单元 101控制上述 IM聊天窗口隐藏后, 根据用户的选择, 在用户界面中截 取相应区域的图片, 并在截取操作完成的同时, 向即时保存单元 305转 发截图保存指令。 在本实施例中, 截图单元 103是通过发送一个触发消 息而使得即时保存单元 305启动。 本发明中触发消息具有多种可能的形 式, 例如, 为一个截图成功消息, 或者通过用户操作而产生的一个保存 指令等。 具体来说, (3) The screenshot unit 103 is configured to: when the dialog control unit sends a hidden instruction to the UI unit 101 to control the hiding of the IM chat window, according to the user's selection, the picture of the corresponding area is intercepted in the user interface, and the interception operation is completed. The screenshot save instruction is forwarded to the instant save unit 305. In the present embodiment, the screenshot unit 103 causes the instant save unit 305 to be started by transmitting a trigger message. The trigger message in the present invention has many possible forms, for example, a success message for a screenshot, or a save generated by a user operation. Instructions, etc. Specifically,
在一个示例方案中, 截图单元 103发送一个截图成功消息给即时保 存单元 305, 从而触发后者启动, 并产生一个属性对话框显示到用户界 面上。  In an exemplary scenario, the screenshot unit 103 sends a screenshot success message to the instant save unit 305 to trigger the latter to launch and generate a properties dialog to display to the user interface.
在另一示例方案中, 截图单元 103 在截图背景中提供一个具有 "保 存"按钮的工具栏,用户点击工具栏上的 "保存 "按钮则发送一个相应的保 存指令给即时保存单元 305, 从而触发后者启动, 并产生一个属性对话 框显示到用户界面上。  In another example scenario, the screenshot unit 103 provides a toolbar with a "save" button in the background of the screenshot, and the user clicks the "save" button on the toolbar to send a corresponding save command to the instant save unit 305, thereby triggering The latter starts and produces a properties dialog that is displayed to the user interface.
( 4 )即时保存单元 305用于根据截图保存指令,对所截取的图片执 行相应保存操作。  (4) The instant save unit 305 is configured to perform a corresponding save operation on the captured image according to the screenshot save instruction.
参见图 16, 图 16为本发明实施例七中即时保存单元的结构示意 图。 如图 16所示, 该即时保存单元 305包括: 属性录入模块 3051、 格式转换模块 3052和存储模块 3053 , 其中:  Referring to FIG. 16, FIG. 16 is a schematic structural diagram of an instant save unit according to Embodiment 7 of the present invention. As shown in FIG. 16, the instant save unit 305 includes: an attribute entry module 3051, a format conversion module 3052, and a storage module 3053, wherein:
( 1 )属性录入模块 3051用于根据截图单元 103发送的触发消息, 即截图保存指令, 生成属性对话框, 并将其显示到用户界面上, 接收 用户基于该属性对话框录入的存储属性。所称的存储属性包括存储名 称、 存储格式 (例如, gif, jpg, tif、 png、 bmp等) 等。  (1) The attribute entry module 3051 is configured to generate a property dialog box according to the trigger message sent by the screenshot unit 103, that is, the screenshot save instruction, and display the attribute dialog box to the user interface, and receive the storage attribute entered by the user based on the attribute dialog box. The so-called storage attributes include the storage name, storage format (for example, gif, jpg, tif, png, bmp, etc.).
( 2 )格式转换模块 3052用于判断属性录入模块 3051接收到的 存储格式是否与所截图片的原始格式一致,若不一致则将上述图片的 原始格式转换为存储格式。  (2) The format conversion module 3052 is configured to determine whether the storage format received by the attribute entry module 3051 is consistent with the original format of the cut picture, and if not, convert the original format of the picture into a storage format.
在本实施例中, 截图单元 103所获取的 IM截图具有一个原始格 式, 其为系统默认(例如, gif格式等) , 或者用户设定(例如, jpg 格式等) 。 格式转换模块 3052首先判断截图的原始格式是否与存储 格式一致: 若是, 则直接将 IM截图发送给存储模块 3053进行保存; 若否, 则将截图的原始格式转换为用户期望的存储格式, 然后再将其 发送给存储模块 3053进行保存。 In this embodiment, the IM screenshot acquired by the screenshot unit 103 has an original format, which is a system default (for example, a gif format, etc.), or a user setting (for example, a jpg format, etc.). The format conversion module 3052 first determines whether the original format of the screenshot is consistent with the storage format: if yes, the IM screenshot is directly sent to the storage module 3053 for saving; if not, the original format of the screenshot is converted to the storage format desired by the user, and then Put it It is sent to the storage module 3053 for saving.
本实施例中, 格式转换模块 3052可采取多种方式进行格式转换, 一个的典型方式是: 首先从截图单元 103所获取的 IM截图中提取出 图像数据, 这些图像数据是不包含格式信息的; 然后在图像数据中添 加与存储格式相应的格式信息, 并合成新的 IM截图。  In this embodiment, the format conversion module 3052 can perform format conversion in multiple manners. One typical manner is: first, extracting image data from the IM screenshot acquired by the screenshot unit 103, and the image data does not include format information; Then, format information corresponding to the storage format is added to the image data, and a new IM screenshot is synthesized.
( 3 )存储模块 3053用于保存截图单元 103发送的上述所截图片。 参见图 17, 图 17为本发明实施例七中 IM截图方法的流程示意 图。 如图 17所示, 该方法包括:  (3) The storage module 3053 is configured to save the above-mentioned cut picture sent by the screenshot unit 103. Referring to FIG. 17, FIG. 17 is a schematic flow chart of an IM screenshot method according to Embodiment 7 of the present invention. As shown in Figure 17, the method includes:
步骤 1701、在接收到用户发起的截图请求后, 隐藏用户界面上的 当前 IM聊天窗口。  Step 1701: After receiving the screenshot request initiated by the user, the current IM chat window on the user interface is hidden.
步骤 1702、根据用户的选择,在用户界面中截取相应区域的图片。 步骤 1703、 根据用户的指令, 对所截取的上述图片进行保存。 即时保存单元 305接收 UI单元 101转发的用户发送的截图保存 指令, 并接收用户期望的存储属性, 根据存储属性将所截取的图片保 存在客户端中。  Step 1702: According to the user's selection, the picture of the corresponding area is intercepted in the user interface. Step 1703: Save the captured picture according to a user instruction. The instant save unit 305 receives the screenshot save instruction sent by the user forwarded by the UI unit 101, and receives the storage attribute desired by the user, and saves the intercepted picture in the client according to the storage attribute.
子步骤 1、 根据用户的指令, 生成属性对话框并显示到用户界面 上, 接收用户录入的存储属性。  Sub-step 1. According to the user's instruction, a property dialog box is generated and displayed on the user interface to receive the storage attributes entered by the user.
截图单元 103根据用户的选择,在用户界面中截取相应区域的图片 后, 并接收 UI单元 101转发的用户发送的截图保存指令后, 发送触 发消息启动即时保存单元 305。 该即时保存单元 305 利用其属性录入 模块 3051生成一个属性对话框并显示到用户界面上, 接收用户录入 的存储属性。其中,本实施例中的上述触发消息具有多种可能的形式, 例如, 可以为一个截图成功消息, 或者可以为通过用户操作而产生的 一个保存指令等。 具体来说:  The screenshot unit 103, after intercepting the picture of the corresponding area in the user interface according to the user's selection, and receiving the screenshot save instruction sent by the user forwarded by the UI unit 101, sends a trigger message to start the instant save unit 305. The instant save unit 305 uses its attribute entry module 3051 to generate a properties dialog and display it to the user interface to receive the storage attributes entered by the user. The trigger message in this embodiment has multiple possible forms, for example, may be a screenshot success message, or may be a save instruction generated by a user operation. Specifically:
在上述子步骤的一个示例方案中, 截图单元 103发送一个截图成 功消息给即时保存单元 305 , 从而触发后者启动, 并利用其属性录入 模块 3051产生一个属性对话框显示到用户界面上。 In an exemplary scenario of the above sub-steps, the screenshot unit 103 sends a screenshot into The work message is sent to the instant save unit 305, thereby triggering the latter to start, and using its attribute entry module 3051 to generate an attribute dialog box for display to the user interface.
在上述子步骤的另一示例方案中, 截图单元 103在截图背景中提 供一个具有"保存"按钮的工具栏, 用户点击工具栏上的"保存"按钮则 发送一个相应的保存指令给即时保存单元 305 , 从而触发后者启动, 并利用其属性录入模块 3051 产生一个属性对话框显示到用户界面 上。  In another example scenario of the above sub-steps, the screenshot unit 103 provides a toolbar with a "save" button in the background of the screenshot, and the user clicks the "save" button on the toolbar to send a corresponding save command to the instant save unit. 305, thereby triggering the latter to start, and using its attribute entry module 3051 to generate a property dialog to display to the user interface.
属性对话框生成后, 即时保存单元 305 再利用其属性录入模块 3051 接收用户在属性对话框中录入的存储属性。 其中, 所称的存储 属性包括存储名称、 存储格式 (例如, gif、 jpg、 tif、 png、 bmp等) 等。  After the property dialog is generated, the instant save unit 305 uses its attribute entry module 3051 to receive the storage attributes entered by the user in the properties dialog. Among them, the so-called storage attributes include storage name, storage format (for example, gif, jpg, tif, png, bmp, etc.).
子步骤 2、 根据用户录入的存储属性, 存储所截取到的图片。 在一个示例方案中, 上述步骤的具体过程包括:  Sub-step 2. Store the captured image according to the storage attributes entered by the user. In an example scenario, the specific process of the above steps includes:
( 1 )即时保存单元 305利用其格式转换模块 3052判断所获取的 IM 截图的原始格式与用户录入的存储格式是否一致: 若否, 则转步 骤 (2 ) ; 若是, 则转步骤 (3 ) 。  (1) The instant save unit 305 uses its format conversion module 3052 to determine whether the original format of the acquired IM screenshot is consistent with the storage format entered by the user: If not, then go to step (2); if yes, go to step (3).
( 2 ) 若所获取的 IM截图的原始格式与用户录入的存储格式不一 致, 则对 IM截图进行格式转换。  (2) If the original format of the acquired IM screenshot is not consistent with the storage format entered by the user, the IM screenshot is formatted.
在本示例中格式转换模块 3052可采取多种方式进行格式转换, 其中一个典型的处理方式是: 首先从截图单元 103所获取的 IM截图 中提取出图像数据, 这些图像数据是不包含格式信息的, 然后在图像 数据中添加与存储格式相应的格式信息, 并合成新的 IM截图, 再转 步骤 ( 3 ) 。  In this example, the format conversion module 3052 can perform format conversion in various manners. One typical processing method is: first, image data is extracted from the IM screenshot acquired by the screenshot unit 103, and the image data does not contain format information. , then add the format information corresponding to the storage format in the image data, and synthesize the new IM screenshot, and then go to step (3).
( 3 )即时保存单元 305利用其存储模块 3053保存上述 IM截图。 至此, 所截取的图片存储成功, 上述过程中不需退出 IM截图, 也不 需将所截图片粘贴到聊天窗口中再进行保存, 筒化了操作流程, 提高 了效率, 从而方便了用户的使用。 用户可基于所存储的图片执行各种 操作, 例如与好友共享, 或者编辑等。 (3) The instant save unit 305 saves the above IM screenshot with its storage module 3053. At this point, the captured image is stored successfully, and there is no need to exit the IM screenshot in the above process, nor It is necessary to paste the cut image into the chat window and save it, which streamlines the operation flow and improves the efficiency, thus facilitating the user's use. The user can perform various operations based on the stored pictures, such as sharing with friends, or editing, and the like.
步骤 1704、 将上述 IM聊天窗口恢复显示到用户界面上。  Step 1704: Resume displaying the IM chat window to the user interface.
应用本实施例提出的 IM截图装置、 方法, 可以在根据用户的选 择截取图片后, 进一步对上述图片进行保存。 因此, 本实施例在解决 了现有技术在进行 IM截图时容易受到聊天窗口影响的基础上, 在完 成图片截取操作的同时针对该图片触发保存机制, 并根据用户录入的存 储属性将所截图片保存到客户端中, 提高了对 IM截图进行保存的效率 和便利性。  Applying the IM screenshot device and method proposed in this embodiment, the image may be further saved after the image is intercepted according to the user's selection. Therefore, the embodiment solves the problem that the prior art is susceptible to the chat window when performing the IM screenshot, and triggers the saving mechanism for the image while completing the image interception operation, and the cut image according to the storage attribute entered by the user. Save to the client, improving the efficiency and convenience of saving IM screenshots.
下面通过实施例来具体说明本发明提供的 IM系统。  The IM system provided by the present invention will be specifically described below by way of embodiments.
实施例八 Example eight
本实施例在前述实施例的基础上, 进一步提出一种 IM系统。 参见图 18 , 图 18为本发明实施例八中 IM系统的结构示意图。 如图 18所示, 该 IM系统包括: 服务器 100, 以及与其相连的多个客户 端 (客户端 200、 客户端 300 客户端 N )。 应当说明的是, 本发明所 有图示中各装置之间的连接关系是为了清楚阐释其信息交互及控制过 程的需要, 因此应当视为逻辑上的连接关系, 而不应仅限于物理连接。  This embodiment further proposes an IM system based on the foregoing embodiments. Referring to FIG. 18, FIG. 18 is a schematic structural diagram of an IM system according to Embodiment 8 of the present invention. As shown in FIG. 18, the IM system includes: a server 100, and a plurality of clients (client 200, client 300 client N) connected thereto. It should be noted that the connection relationship between the devices in all the embodiments of the present invention is for the purpose of clearly explaining the information interaction and control process thereof, and therefore should be regarded as a logical connection relationship, and should not be limited to physical connections.
服务器 100用于与各客户端(客户端 200、客户端 300......客户端 N ) 之间交互信息,并转发各客户端之间的聊天信息。其典型的可为一个 IM 服务器等, 本发明的保护范围不应限定为某种特定类型的服务器。  The server 100 is configured to exchange information with each client (the client 200, the client 300, the client N), and forward the chat information between the clients. It may typically be an IM server or the like, and the scope of protection of the present invention should not be limited to a particular type of server.
各客户端(客户端 200、客户端 300......客户端 N )典型的可为各种 能够进行即时通信的终端装置, 例如个人计算机(Personal Computer, PC )、个人数字助理( Personal Digital Assistant, PDA )、移动电话( Mobile Phone, MP )等, 因此本发明的保护范围不应限定为某种特定类型的客 户端。 Each client (client 200, client 300 ... client N) typically can be a variety of terminal devices capable of instant communication, such as a personal computer (PC), personal digital assistant (Personal Digital Assistant, PDA), mobile phone (MP), etc., so the scope of protection of the present invention should not be limited to a particular type of guest. Account.
其中, 以客户端 200为例, 该客户端 200可以采用上述实施例中 的任一种 IM截图装置实现。  The client 200 is taken as an example, and the client 200 can be implemented by using any one of the above embodiments.
参见图 19, 图 19为本发明实施例八中 IM截图装置的结构示意 图。 如图 19所示, 在本发明的一个较佳实施例中, 该客户端 200包 括: UI单元 101、 对话框控制单元 102、 截图单元 103、 截图编辑单元 204、 即时保存单元 305。 其中:  Referring to Fig. 19, Fig. 19 is a schematic structural view of an IM screenshot device in an eighth embodiment of the present invention. As shown in FIG. 19, in a preferred embodiment of the present invention, the client 200 includes: a UI unit 101, a dialog control unit 102, a screenshot unit 103, a screenshot editing unit 204, and an instant save unit 305. among them:
( 1 ) UI单元 101用于接收用户发起的截图请求, 执行对话框控 制单元 102发送的隐藏指令或显示指令, 隐藏当前 IM聊天窗口或者 恢复显示上述 IM聊天窗口。  (1) The UI unit 101 is configured to receive a user-initiated screenshot request, execute a hidden instruction or a display instruction sent by the dialog control unit 102, hide the current IM chat window, or resume displaying the IM chat window.
UI单元 101又用于向用户发送是否隐藏当前 IM聊天窗口的选择 信息, 根据用户的选择, 执行对话框控制单元 102发送的隐藏指令或 显示指令, 隐藏当前 IM聊天窗口或者恢复显示上述 IM聊天窗口。  The UI unit 101 is further configured to send to the user whether to hide the selection information of the current IM chat window, execute a hidden instruction or a display instruction sent by the dialog control unit 102 according to the user's selection, hide the current IM chat window, or resume displaying the IM chat window. .
UI单元 101进一步包括: 定时器(未在图 19中示出), 用于提供一 段时间,以刷新与要隐藏的 IM聊天窗口重叠的周围窗口上的残留图像。  The UI unit 101 further includes: a timer (not shown in Fig. 19) for providing a period of time to refresh the residual image on the surrounding window overlapping the IM chat window to be hidden.
UI单元 101进一步用于接收截图单元 103所截取的图片,恢复显示 IM聊天窗口后, 将上述图片粘贴到上述 IM聊天窗口中。  The UI unit 101 is further configured to receive the picture captured by the screenshot unit 103, and resume the display of the IM chat window, and then paste the picture into the IM chat window.
UI单元 101还用于接收用户的截图编辑指令和截图保存指令。 ( 2 )对话框控制单元 102用于生成并向 UI单元 101发送上述隐藏 指令或显示指令。 该对话框控制单元 102包括: 窗口保存模块 1021、 窗口信息提取模块 1022、 判断模块 1023及指令生成模块 1024 (以上模 块未在图 19中示出)。  The UI unit 101 is further configured to receive a screenshot editing instruction and a screenshot saving instruction of the user. (2) The dialog control unit 102 is configured to generate and transmit the above hidden instruction or display instruction to the UI unit 101. The dialog control unit 102 includes: a window saving module 1021, a window information extracting module 1022, a judging module 1023, and an instruction generating module 1024 (the above modules are not shown in Fig. 19).
其中, 窗口保存模块 1021用于获取并保存当前窗口的属性信息。 窗口信息提取模块 1022用于提取并保存当前窗口的特征信息。 判断模块 1023用于根据上述特征信息判断当前窗口是否是一个 IM 聊天窗口, 并将判断结果发送给指令生成模块 1024。 The window saving module 1021 is configured to acquire and save attribute information of the current window. The window information extraction module 1022 is configured to extract and save feature information of the current window. The determining module 1023 is configured to determine, according to the feature information, whether the current window is an IM The chat window is sent to the instruction generation module 1024.
指令生成模块 1024用于在判断得知当前窗口是一个 IM聊天窗口 时,发送一个隐藏指令给 UI单元 101 , 以及在截图单元 103完成截图之 后, 根据所保存的上述属性信息和特征信息, 发送一个显示指令给 UI 单元 101。 如果在判断得知当前窗口不是 IM聊天窗口时, 指令生成模 块 1024不做任何操作。  The instruction generating module 1024 is configured to send a hidden instruction to the UI unit 101 when determining that the current window is an IM chat window, and send a screenshot according to the saved attribute information and feature information after the screenshot unit 103 completes the screenshot. The instruction is displayed to the UI unit 101. If it is judged that the current window is not an IM chat window, the instruction generation module 1024 does nothing.
( 3 )截图单元 103用于当对话框控制单元发送隐藏指令给 UI单元 101控制上述 IM聊天窗口隐藏后, 根据用户的选择, 在用户界面中截 取相应区域的图片。  (3) The screenshot unit 103 is configured to: when the dialog control unit sends a hidden instruction to the UI unit 101 to control the hiding of the IM chat window, according to the user's selection, the picture of the corresponding area is intercepted in the user interface.
截图单元 103进一步用于将所截取的图片传送至 UI单元 101 ,待 UI单元 101将 IM聊天窗口恢复显示后再粘贴到当前聊天窗口中。  The screenshot unit 103 is further configured to transmit the intercepted picture to the UI unit 101, and the UI unit 101 restores the IM chat window to display and pastes it into the current chat window.
截图单元 103又用于利用 UI单元 101在截图背景中提供具有插入 各种图形或者文字的工具栏, 并根据用户在上述工具栏中的点击请求, 向截图编辑单元 204转发截图编辑指令。  The screenshot unit 103 is further configured to use the UI unit 101 to provide a toolbar with various graphics or texts inserted in the background of the screenshot, and forward the screenshot editing instruction to the screenshot editing unit 204 according to the user's click request in the toolbar.
截图单元 103还用于根据用户在上述工具栏中的点击请求,向即时 保存单元 305转发截图保存指令。  The screenshot unit 103 is further configured to forward the screenshot save instruction to the instant save unit 305 according to the user's click request in the toolbar.
( 4 )截图编辑单元 204用于根据用户的截图编辑指令,对所截取的 图片执行相应编辑操作。该截图编辑单元 204包括:记录管理模块 2041、 文本框处理模块 2042、 图像处理模块 2043 , 连续编辑模块 2044 (以 上模块未在图 19中示出) 。  (4) The screenshot editing unit 204 is configured to perform a corresponding editing operation on the captured image according to the screenshot editing instruction of the user. The screenshot editing unit 204 includes a recording management module 2041, a text box processing module 2042, an image processing module 2043, and a continuous editing module 2044 (the above modules are not shown in Fig. 19).
其中, 记录管理模块 2041 用于在编辑所截取图片的过程中逐步 撤销或恢复执行用户的已执行操作。  The record management module 2041 is configured to gradually cancel or resume the executed operation of the execution user during the process of editing the captured image.
文本框处理模块 2042用于在所截取图片中添加活动文本框。 文本框处理模块 2042进一步用于将上述文本框透明显示。  The text box processing module 2042 is for adding an active text box to the captured picture. The text box processing module 2042 is further configured to transparently display the above text box.
图像处理模块 2043 用于对所截取的图片进行数据处理改善图像 质量。 The image processing module 2043 is configured to perform data processing on the captured image to improve the image. Quality.
连续编辑模块 2044用于对相同图片进行连续编辑。  The continuous editing module 2044 is for continuous editing of the same picture.
( 5 )即时保存单元 305用于根据用户的截图保存指令,对所截取的 图片执行相应保存操作。该即时保存单元 305包括:属性录入模块 3051、 格式转换模块 3052和存储模块 3053 (以上模块未在图 19中示出) 。  (5) The instant save unit 305 is configured to perform a corresponding save operation on the captured image according to the screenshot save instruction of the user. The instant save unit 305 includes: an attribute entry module 3051, a format conversion module 3052, and a storage module 3053 (the above modules are not shown in FIG. 19).
其中,属性录入模块 3051用于根据用户的截图保存指令生成属性 对话框, 并将其显示到用户界面上, 接收用户基于该属性对话框录入 的存储属性。  The attribute entry module 3051 is configured to generate an attribute dialog box according to the user's screenshot save instruction, and display it on the user interface, and receive the storage attribute entered by the user based on the attribute dialog box.
格式转换模块 3052用于判断属性录入模块 3051接收到的存储格 式是否与所截图片的原始格式一致,若不一致则将上述图片的原始格 式转换为存储格式。  The format conversion module 3052 is configured to determine whether the storage format received by the attribute entry module 3051 is consistent with the original format of the truncated picture. If not, the original format of the picture is converted into a storage format.
存储模块 3053用于保存截图单元 103截取到的图片。  The storage module 3053 is configured to save the picture captured by the screenshot unit 103.
参见图 20, 图 20为本发明实施例八中 IM截图方法的流程示意 图。 如图 20所示, 该方法包括:  Referring to FIG. 20, FIG. 20 is a schematic flow chart of an IM screenshot method according to Embodiment 8 of the present invention. As shown in Figure 20, the method includes:
在执行所有步骤之前, 用户利用其 IM帐号登录到客户端 200所运 行的 IM软件中, 并打开聊天窗口以及其他各种窗口。  Before performing all the steps, the user uses his IM account to log in to the IM software running on the client 200, and opens the chat window and various other windows.
步骤 2001、在接收到用户发起的截图请求后, 获取并保存当前窗 口的属性信息。  Step 2001: After receiving the screenshot request initiated by the user, obtain and save the attribute information of the current window.
用户通过客户端 200中的 UI单元 101发起截图请求。 UI单元 101 将该请求转发至对话框控制单元 102中, 后者接收到该请求后利用其窗 口保存模块 1021获取并保存当前窗口的属性信息。  The user initiates a screenshot request through the UI unit 101 in the client 200. The UI unit 101 forwards the request to the dialog control unit 102, and after receiving the request, the latter uses its window save module 1021 to acquire and save the attribute information of the current window.
步骤 2002、 提取上述当前窗口的特征信息并保存。  Step 2002: Extract feature information of the current window and save it.
对话框控制单元 102进一步利用其窗口信息提取模块 1022提取当前 窗口的特征信息并保存。 具体来说包括: 窗口信息提取模块 1022通过 用于获取当前窗口句柄的 API ,而获取到该当前窗口的句柄信息并保存, 再从该句柄信息中提取与当前窗口对应一致的窗口特征值。 The dialog control unit 102 further extracts the feature information of the current window and saves it using its window information extraction module 1022. Specifically, the window information extraction module 1022 obtains the handle information of the current window and saves it by using an API for acquiring the current window handle. The window feature value corresponding to the current window is extracted from the handle information.
步骤 2003、 根据上述特征信息, 判断上述当前窗口是否是 IM聊 天窗口: 如果是, 继续执行步骤 2004及后续步骤; 否则, 执行步骤 2006至步骤 2008以及步骤 2010后本流程结束。  Step 2003: Determine, according to the foregoing feature information, whether the current window is an IM chat window: If yes, continue to perform step 2004 and subsequent steps; otherwise, the process ends after performing steps 2006 to 2008 and step 2010.
对话框控制单元 102进一步利用其判断模块 1023根据上述特征信 息,判断当前窗口是否是一个 IM聊天窗口:若是,则继续执行步骤 2004 即向用户发送是否隐藏当前 IM聊天窗口的选择信息,以及后续步骤; 若否, 则执行步骤 2006至步骤 2008以及步骤 2010后本流程结束。  The dialog control unit 102 further uses the determining module 1023 to determine whether the current window is an IM chat window according to the feature information: if yes, proceed to step 2004 to send the user the option to hide the current IM chat window, and the subsequent steps. If no, the process ends after step 2006 to step 2008 and step 2010.
步骤 2004、 向用户发送是否隐藏当前 IM聊天窗口的选择信息, 如果用户选择隐藏, 则生成并执行隐藏指令, 隐藏用户界面上的上述 当前 IM聊天窗口, 并在隐藏的同时启动定时器; 如果用户选择不隐 藏, 则执行步骤 2006至步骤 2008以及步骤 2010后本流程结束。  Step 2004: Sending to the user whether to hide the selection information of the current IM chat window, if the user selects to hide, generating and executing a hidden instruction, hiding the current IM chat window on the user interface, and starting the timer while hiding; If the selection is not hidden, the process ends after performing steps 2006 to 2008 and step 2010.
对话框控制单元 102在判断出当前窗口是 IM聊天窗口后, UI单 元 101进一步向用户发送是否隐藏当前 IM聊天窗口的选择信息。  After the dialog control unit 102 determines that the current window is the IM chat window, the UI unit 101 further sends a selection information to the user whether to hide the current IM chat window.
如果用户选择隐藏当前 IM聊天窗口,则对话框控制单元 102利用 其指令生成模块 1024生成隐藏指令, 并将该指令发送给 UI单元 101。 UI单元 101在收到上述隐藏指令后, 执行该指令, 将用户界面上的 上述 IM聊天窗口隐藏, 并且在隐藏的同时, UI单元 101启动其内部 的定时器。 这是考虑到, 若要隐藏的 IM聊天窗口与周围窗口有重叠, 当其隐藏之后, 周围窗口会留下一些该 IM聊天窗口的残留图像, 因此 需要利用定时器提供一段时间, 供周围窗口刷新, 把残留图像刷新掉。  If the user chooses to hide the current IM chat window, the dialog control unit 102 uses its instruction generation module 1024 to generate a hidden instruction and transmits the instruction to the UI unit 101. After receiving the above hidden instruction, the UI unit 101 executes the instruction to hide the IM chat window on the user interface, and while being hidden, the UI unit 101 starts its internal timer. This is to consider that the IM chat window to be hidden overlaps with the surrounding window. When it is hidden, the surrounding window will leave some residual images of the IM chat window, so it is necessary to use the timer to provide a period of time for the surrounding window to refresh. , refresh the residual image.
如果用户选择不隐藏, 则执行步骤 2006 至步骤 2008 以及步骤 2010后本流程结束。  If the user chooses not to hide, the process ends after steps 2006 through 2008 and step 2010.
步骤 2005、 在时间周期 T内, 刷新与 IM聊天窗口重叠的周围窗 口。 在时间周期 T内, UI单元 101刷新与 IM聊天窗口重叠的周围窗 口。 当定时器超时, 则代表 UI单元 101 已经完成刷新, 此时, 异步进 入到截图单元 103开始截图操作。 Step 2005: In the time period T, the surrounding window overlapping with the IM chat window is refreshed. During the time period T, the UI unit 101 refreshes the surrounding window that overlaps with the IM chat window. When the timer expires, it means that the UI unit 101 has completed the refresh. At this time, the asynchronous entry to the screenshot unit 103 starts the screenshot operation.
步骤 2006、根据用户的选择,在用户界面中截取相应区域的图片。 截图单元 103根据用户的选择,在用户界面中截取相应区域的图片。 步骤 2007、 根据用户的指令, 对所截取的上述图片进行编辑。 截图单元 103可以进一步利用 UI单元 101在截图背景中提供一个 具有插入各种图形或者文字的工具栏。 参见图 21 , 图 21为本发明实施 例八中 IM截图编辑工具栏的示意图。 如图 21所示, 该工具栏上的 按钮依次为: 插入矩形、 插入橢圓、 插入文字、 插入箭头、 _撤销用户 的已执行操作和保存截图。 当然, 在实际应用中, 该工具栏还可以包 括其他编辑功能按钮, 例如恢复执行用户撤销的已执行操作等。  Step 2006: According to the user's selection, the picture of the corresponding area is intercepted in the user interface. The screenshot unit 103 intercepts the picture of the corresponding area in the user interface according to the user's selection. Step 2007: Edit the captured picture according to the user's instruction. The screenshot unit 103 can further utilize the UI unit 101 to provide a toolbar with a variety of graphics or text inserted in the background of the screenshot. Referring to FIG. 21, FIG. 21 is a schematic diagram of an IM screenshot editing toolbar in the eighth embodiment of the present invention. As shown in Figure 21, the buttons on the toolbar are: Insert Rectangle, Insert Ellipse, Insert Text, Insert Arrow, _ Undo User's Performed Action, and Save Screenshot. Of course, in practical applications, the toolbar can also include other editing function buttons, such as restoring the executed operations of the user revocation.
截图编辑单元 204接收用户点击上述工具栏而发送的截图编辑指 令, 并判断该截图编辑指令的内容; 根据截图编辑指令的内容, 对所 截取的图片执行相应的编辑操作。 在此, 假如用户在 UI单元 101提 供的工具栏中点击插入箭头, 则截图单元 103转发用户的上述指令。 截图编辑单元 204根据用户需求在 IM截图上插入箭头。  The screenshot editing unit 204 receives the screenshot editing instruction sent by the user to click the toolbar, and determines the content of the screenshot editing instruction; and performs a corresponding editing operation on the captured image according to the content of the screenshot editing instruction. Here, if the user clicks the insertion arrow in the toolbar provided by the UI unit 101, the screenshot unit 103 forwards the above instruction of the user. The screenshot editing unit 204 inserts an arrow on the IM screenshot according to the user's needs.
截图编辑单元 204中的图像处理模块 2043还可以进一步对上述 箭头质量提供改进。 参见图 22, 图 22为本发明实施例八中改善箭头 质量的效果示意图。 如图 22所示, 由于箭头由三角形和直线构成, 在生成箭头过程中, 其中的三角形部分容易产生畸变, 如图中箭头 2201 所示, 图形质量比较差。 为了解决上述问题, 在本实施例中, 图像处理模块 2043根据一个三角形顶点的坐标及角度,算出三角形另 外两点的坐标, 从而基于计算结果将空缺的象素点补齐, 如图中箭头 2202所示, 提高了三角形的图形质量。 步骤 2008、 根据用户的指令, 对所截取的上述图片进行保存。 如图 20所示,截图单元 103利用 UI单元 101在截图背景中提供了 具有"保存"按钮的上述工具栏。 用户点击该工具栏上的"保存"按钮后, 截图单元 103转发相应的保存指令给即时保存单元 305, 从而触发后者 启动, 并利用其属性录入模块 3051产生一个属性对话框显示到用户界 面上。 The image processing module 2043 in the screenshot editing unit 204 can further provide improvements to the above arrow quality. Referring to Figure 22, Figure 22 is a schematic diagram showing the effect of improving the quality of the arrow in the eighth embodiment of the present invention. As shown in Fig. 22, since the arrow is composed of a triangle and a straight line, the triangle portion is prone to distortion during the generation of the arrow, and the image quality is relatively poor as indicated by the arrow 2201 in the figure. In order to solve the above problem, in the embodiment, the image processing module 2043 calculates the coordinates of the other two points of the triangle according to the coordinates and the angle of a triangle vertex, thereby filling the vacant pixel points based on the calculation result, as shown by the arrow 2202 in the figure. As shown, the graphics quality of the triangle is improved. Step 2008: Save the captured image according to the instruction of the user. As shown in FIG. 20, the screenshot unit 103 provides the above-described toolbar having a "save" button in the background of the screenshot using the UI unit 101. After the user clicks the "Save" button on the toolbar, the screenshot unit 103 forwards the corresponding save command to the instant save unit 305, thereby triggering the latter to start, and uses its attribute entry module 3051 to generate an attribute dialog box to display on the user interface. .
参见图 23 , 图 23为本发明实施例八中属性对话框的示意图。 如 图 23所示, 属性对话框生成后, 即时保存单元 305再利用其属性录 入模块 3051接收用户在属性对话框中录入的存储属性。 其中, 所称 的存储属性包括存储名称、 存储格式(例如, gif、 jpg、 tif、 png、 bmp 等) 等。  Referring to FIG. 23, FIG. 23 is a schematic diagram of a property dialog box according to Embodiment 8 of the present invention. As shown in FIG. 23, after the attribute dialog is generated, the instant save unit 305 uses its attribute entry module 3051 to receive the storage attributes entered by the user in the attribute dialog box. Among them, the so-called storage attributes include storage names, storage formats (for example, gif, jpg, tif, png, bmp, etc.).
即时保存单元 305利用其格式转换模块 3052判断所获取的 IM截 图的原始格式与用户录入的存储格式是否一致: 若否, 则格式转换模 块 3052对 IM截图进行格式转换; 若是, 则即时保存单元 305利用 其存储模块 3053保存上述 IM截图。  The instant save unit 305 uses its format conversion module 3052 to determine whether the original format of the acquired IM screenshot is consistent with the storage format entered by the user: If not, the format conversion module 3052 formats the IM screenshot; if so, the instant save unit 305 The above IM screenshot is saved by its storage module 3053.
步骤 2009、 将上述 IM聊天窗口恢复显示到用户界面上。  Step 2009: Restore the above IM chat window to the user interface.
用户对图片截取完成后, 截图单元 103通知对话框控制单元 102截 图完成。 对话框控制单元 102根据所保存的上述属性信息和特征信息, 生成并发送一个显示指令给 UI单元 101。 UI单元 101接收到该显示指 令并执行, 从而将上述 IM聊天窗口恢复显示到用户界面上。  After the user completes the interception of the picture, the screenshot unit 103 notifies the dialog control unit 102 that the truncation is completed. The dialog control unit 102 generates and transmits a display instruction to the UI unit 101 based on the saved attribute information and feature information. The UI unit 101 receives the display instruction and executes, thereby restoring the above IM chat window to the user interface.
步骤 2010、 在上述 IM聊天窗口中粘贴所截取的上述图片。  Step 2010: Paste the captured picture in the IM chat window.
上述 IM聊天窗口被恢复显示后,截图单元 103进一步将所截取的 图片传送至 UI单元 101 , 待 UI单元 101进一步获取截图单元 103所 截取的上述图片, 并将其粘贴至当前聊天窗口中。  After the IM chat window is restored, the screenshot unit 103 further transmits the captured image to the UI unit 101, and the UI unit 101 further acquires the image captured by the screenshot unit 103 and pastes it into the current chat window.
当然, 在实际应用中, 对上述 IM截图的编辑操作和保存操作也可 以在步骤 2010中实现, 即先将所截取的图片粘贴至 IM聊天窗口中, 再 在该聊天窗口中对所截取的图片进行编辑和保存。 Of course, in the actual application, the editing operation and saving operation of the above IM screenshot can also be performed. In step 2010, the captured picture is first pasted into the IM chat window, and the captured picture is edited and saved in the chat window.
应当说明的是, 本发明典型的应用但不限于在即时通信软件中进行 截图, 在其他类似的场景中也可以应用本发明所阐述的方法。  It should be noted that the typical application of the present invention is not limited to screenshots in instant messaging software, and the methods set forth in the present invention may be applied in other similar scenarios.
以上所述仅为本发明的较佳实施例而已, 并不用以限制本发明, 凡 在本发明的精神和原则之内所作的任何修改、 等同替换和改进等, 均应 包含在本发明的保护范围之内。  The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. Within the scope.

Claims

权利要求书 Claim
1、 一种即时通信 IM截图装置, 其特征在于, 包括:  1. An instant communication IM screenshot device, comprising:
用户界面 UI单元, 用于在接收到截图请求后, 隐藏用户界面上 的当前 IM聊天窗口; 并在截图操作完成后, 显示所述 IM聊天窗口; 截图单元,用于当所述 UI单元隐藏所述 IM聊天窗口后,执行在 所述用户界面中的截图操作。  a UI unit for hiding a current IM chat window on the user interface after receiving the screenshot request; and displaying the IM chat window after the screenshot operation is completed; and a screenshot unit, configured to hide the UI unit After the IM chat window is described, a screenshot operation in the user interface is performed.
2、 根据权利要求 1 所述的装置, 其特征在于, 进一步包括对话 框控制单元, 用于在所述 UI单元收到所述截图请求后生成隐藏指令 并输出所述隐藏指令给所述 UI单元, 在所述截图单元完成截图后生 成显示指令并输出所述显示指令给所述 UI单元; 其中,  2. The device according to claim 1, further comprising a dialog control unit, configured to generate a hidden instruction after the UI unit receives the screenshot request, and output the hidden instruction to the UI unit After the screenshot unit completes the screenshot, generates a display instruction and outputs the display instruction to the UI unit;
所述 UI单元执行来自所述对话框控制单元的所述隐藏指令以隐 藏所述 IM聊天窗口, 执行来自所述对话框控制单元的所述显示指令 以显示所述 IM聊天窗口;  The UI unit executes the hidden instruction from the dialog control unit to hide the IM chat window, and execute the display instruction from the dialog control unit to display the IM chat window;
所述截图单元,用于当所述 UI单元隐藏所述 IM聊天窗口后,执 行在所述用户界面上的截图操作。  The screenshot unit is configured to perform a screenshot operation on the user interface after the UI unit hides the IM chat window.
3、 根据权利要求 2所述的装置, 其特征在于, 所述对话框控制 单元包括:  3. The device according to claim 2, wherein the dialog control unit comprises:
窗口保存模块, 用于获取并保存当前窗口的属性信息;  a window saving module, configured to acquire and save attribute information of the current window;
窗口信息提取模块, 用于提取并保存当前窗口的特征信息; 判断模块与窗口信息,用于根据所述特征信息判断当前窗口是否 是 IM聊天窗口;  a window information extraction module, configured to extract and save feature information of the current window; and a determination module and window information, configured to determine, according to the feature information, whether the current window is an IM chat window;
指令生成模块, 用于在判断得知当前窗口是 IM聊天窗口时, 发 送隐藏指令给所述 UI单元, 以及在所述截图单元完成截图之后根据 所述属性信息和特征信息, 发送显示指令给所述 UI单元; 如果在判断 得知当前窗口不是 IM聊天窗口时, 指令生成模块不做任何操作。 An instruction generating module, configured to send a hidden instruction to the UI unit when determining that the current window is an IM chat window, and send a display instruction to the UI according to the attribute information and the feature information after the screenshot unit completes the screenshot Said UI unit; if judged When the current window is not an IM chat window, the instruction generation module does nothing.
4、 根据权利要求 2所述的装置, 其特征在于, 所述 UI单元进一 步用于向用户发送是否隐藏当前 IM聊天窗口的选择信息, 根据用户 的选择, 隐藏用户界面上的当前 I M聊天窗口或者不执行隐藏操作。  The device according to claim 2, wherein the UI unit is further configured to send to the user whether to hide the selection information of the current IM chat window, and hide the current IM chat window on the user interface according to the user's selection or Do not perform hidden operations.
5、 根据权利要求 2所述的装置, 其特征在于, 所述 UI单元进一 步包括定时器, 所述定时器用于提供一段时间, 以刷新与所述 IM聊天 窗口重叠的周围窗口上的残留图像。  The apparatus according to claim 2, wherein the UI unit further comprises a timer, wherein the timer is configured to provide a period of time to refresh a residual image on a surrounding window overlapping the IM chat window.
6、 根据权利要求 2所述的装置, 其特征在于,  6. Apparatus according to claim 2 wherein:
所述 UI单元进一步用于接收截图单元所截取的图片, 在恢复显示 IM聊天窗口后, 将所述图片粘贴到所述 IM聊天窗口中;  The UI unit is further configured to receive a picture captured by the screenshot unit, and after the display of the IM chat window is resumed, paste the picture into the IM chat window;
所述截图单元进一步用于将所截取的图片传送至 UI单元。  The screenshot unit is further configured to transfer the intercepted picture to the UI unit.
7、 根据权利要求 2所述的装置, 其特征在于, 进一步包括: 截 图编辑单元, 用于根据用户的截图编辑指令, 对所截取的图片执行相应 编辑操作;  The device according to claim 2, further comprising: a screenshot editing unit, configured to perform a corresponding editing operation on the intercepted image according to the screenshot editing instruction of the user;
所述 UI单元进一步用于接收用户的截图编辑指令。  The UI unit is further configured to receive a screenshot edit instruction of the user.
8、 根据权利要求 7 所述的装置, 其特征在于, 所述截图编辑单 元包括以下至少一者:  8. The apparatus according to claim 7, wherein the screenshot editing unit comprises at least one of the following:
记录管理模块, 用于逐步撤销或恢复执行用户在编辑所截取图片 过程中的已执行操作;  a record management module for gradually canceling or restoring an executed operation performed by the user during editing of the captured image;
文本框处理模块, 用于在所截取图片中添加活动文本框; 文本框处理模块, 用于在所截取图片中添加透明显示的文本框; 图像处理模块, 用于对所截取的图片进行数据处理改善图像质 量;  a text box processing module, configured to add an active text box to the captured image; a text box processing module, configured to add a transparently displayed text box to the captured image; and an image processing module, configured to perform data processing on the captured image Improve image quality;
连续编辑模块, 用于对相同图片进行连续编辑。  Continuous editing module for continuous editing of the same picture.
9、 根据权利要求 2所述的装置, 其特征在于, 进一步包括: 截 图编辑单元, 用于根据截图保存指令, 对所截取的图片执行相应保存操 作; 9. The apparatus according to claim 2, further comprising: a picture editing unit, configured to perform a corresponding save operation on the intercepted picture according to the screenshot save instruction;
所述 UI单元进一步用于接收用户的截图保存指令;  The UI unit is further configured to receive a screenshot save instruction of the user;
所述截图单元进一步用于向即时保存单元转发截图保存指令。  The screenshot unit is further configured to forward the screenshot save instruction to the instant save unit.
10、 根据权利要求 9所述的装置, 其特征在于, 所述截图保存单 元包括:  10. The apparatus according to claim 9, wherein the screenshot save unit comprises:
属性录入模块, 用于根据截图单元发送的截图保存指令生成属性 对话框, 并将其显示到用户界面上, 接收用户基于该属性对话框录入 的存储属性, 所述存储属性包括: 名称及存储格式;  The attribute entry module is configured to generate an attribute dialog box according to the screenshot save instruction sent by the screenshot unit, and display the attribute dialog box to the user interface, and receive the storage attribute entered by the user based on the attribute dialog box, where the storage attribute includes: a name and a storage format. ;
格式转换模块, 用于判断属性录入模块接收到的存储格式是否与 所截图片的原始格式一致,若不一致则将所述图片的原始格式转换为 存储格式;  a format conversion module, configured to determine whether the storage format received by the attribute entry module is consistent with the original format of the cut image, and if not, convert the original format of the image into a storage format;
存储模块, 用于保存截图单元发送的所述所截图片。  a storage module, configured to save the cut picture sent by the screenshot unit.
11、 一种即时通信 IM截图方法, 其特征在于, 包括:  11. An instant communication IM screenshot method, characterized in that:
在接收到截图请求后, 隐藏用户界面上的当前 IM聊天窗口; 在用户界面中截取图片;  After receiving the screenshot request, hiding the current IM chat window on the user interface; intercepting the image in the user interface;
显示所述 IM聊天窗口。  The IM chat window is displayed.
12、 根据权利要求 11 所述的方法, 其特征在于, 所述隐藏用户 界面上的当前 IM聊天窗口包括:  12. The method according to claim 11, wherein the current IM chat window on the hidden user interface comprises:
获取并保存所述 IM聊天窗口的属性信息;  Obtaining and saving attribute information of the IM chat window;
提取所述当前窗口的特征信息并保存;  Extracting feature information of the current window and saving;
根据所述特征信息, 判断所述当前窗口是否是 IM聊天窗口, 如 果是, 生成并执行隐藏指令, 将所述 IM聊天窗口隐藏, 并继续执行 所述截取图片以及根据所述属性信息和特征信息生成并执行显示指 令, 恢复显示所述 IM聊天窗口; 否则, 执行所述截取图片后本流程 结束。 Determining, according to the feature information, whether the current window is an IM chat window, and if so, generating and executing a hidden instruction, hiding the IM chat window, and continuing to execute the intercepted picture and according to the attribute information and the feature information. Generating and executing a display instruction to resume displaying the IM chat window; otherwise, executing the intercepting the image after the process End.
13、 根据权利要求 11 所述的方法, 其特征在于, 所述隐藏用户 界面上的当前 IM聊天窗口包括:  13. The method according to claim 11, wherein the current IM chat window on the hidden user interface comprises:
向用户发送是否隐藏当前 IM聊天窗口的选择信息;  Sending to the user whether to hide the selection information of the current IM chat window;
如果用户选择隐藏,则隐藏用户界面上的所述当前 IM聊天窗口; 如果用户选择不隐藏, 则执行所述截取图片后本流程结束。  If the user selects to hide, the current IM chat window on the user interface is hidden; if the user chooses not to hide, the process ends after the interception of the image is performed.
14、 根据权利要求 11 所述的方法, 其特征在于, 所述隐藏用户 界面上的当前 IM聊天窗口包括:  14. The method according to claim 11, wherein the current IM chat window on the hidden user interface comprises:
隐藏用户界面上的当前 IM聊天窗口, 并启动定时器;  Hide the current IM chat window on the user interface and start the timer;
在定时器设定的时间周期 T内, 刷新与所述 IM聊天窗口重叠的 周围窗口。  During the time period T set by the timer, the surrounding window overlapping the IM chat window is refreshed.
15、 根据权利要求 11 所述的方法, 其特征在于, 所述显示所述 IM聊天窗口包括:  The method according to claim 11, wherein the displaying the IM chat window comprises:
将所述 IM聊天窗口恢复显示到用户界面上;  Resuming display of the IM chat window to the user interface;
在所述 IM聊天窗口中粘贴所截取的所述图片。  The captured picture is pasted in the IM chat window.
16、 根据权利要求 11 所述的方法, 其特征在于, 所述在用户界 面中截取图片包括:  16. The method according to claim 11, wherein the capturing a picture in the user interface comprises:
根据用户的选择, 在用户界面中截取相应区域的图片;  According to the user's selection, the picture of the corresponding area is intercepted in the user interface;
根据用户的指令, 对所截取的所述图片进行编辑。  The captured picture is edited according to a user's instruction.
17、 根据权利要求 11 所述的方法, 其特征在于, 所述对所截取 的所述图片进行编辑包括以下至少一者:  The method according to claim 11, wherein the editing the captured picture comprises at least one of the following:
逐步撤销或恢复执行用户在编辑所截取图片过程中的已执行操 作;  Gradually withdraw or resume the executed operations performed by the user during the editing of the captured image;
在所截取图片中添加活动文本框;  Add an active text box to the captured image;
在所截取图片中添加透明显示的文本框; 对所截取的图片进行数据处理改善图像质量; Add a transparently displayed text box to the captured image; Performing data processing on the captured image to improve image quality;
对相同图片进行连续编辑。  Continuous editing of the same picture.
18、 根据权利要求 11 所述的方法, 其特征在于, 所述在用户界 面中截取图片包括:  18. The method according to claim 11, wherein the capturing a picture in the user interface comprises:
根据用户的选择, 在用户界面中截取相应区域的图片; 根据用户的指令, 对所截取的所述图片进行保存。  According to the user's selection, the picture of the corresponding area is intercepted in the user interface; and the captured picture is saved according to the instruction of the user.
19、 根据权利要求 18所述的方法, 其特征在于, 所述对所截取 的所述图片进行保存包括:  The method according to claim 18, wherein the saving the captured picture comprises:
根据用户的指令, 生成属性对话框并显示到用户界面上, 接收用 户录入的存储属性;  According to the user's instruction, a property dialog box is generated and displayed on the user interface, and the storage attribute entered by the user is received;
根据用户录入的存储属性, 存储所截取到的图片。  The captured image is stored according to the storage attributes entered by the user.
PCT/CN2008/070895 2007-05-16 2008-05-07 An apparatus and method for instant messaging image capture WO2008138253A1 (en)

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
CN 200710074485 CN101079844A (en) 2007-05-16 2007-05-16 A method, system and device for editing IM picture cutting
CN200710074484.4 2007-05-16
CN200710074485.9 2007-05-16
CNB2007100744844A CN100566306C (en) 2007-05-16 2007-05-16 A kind of sectional drawing method and apparatus based on IM
CN200710074388.X 2007-05-21
CNA200710074388XA CN101079793A (en) 2007-05-21 2007-05-21 A method, system and device for saving IM cut picture

Publications (1)

Publication Number Publication Date
WO2008138253A1 true WO2008138253A1 (en) 2008-11-20

Family

ID=40001696

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/070895 WO2008138253A1 (en) 2007-05-16 2008-05-07 An apparatus and method for instant messaging image capture

Country Status (1)

Country Link
WO (1) WO2008138253A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868654A (en) * 2016-03-25 2016-08-17 努比亚技术有限公司 A mobile terminal and a screen capture method thereof
CN108346126A (en) * 2017-01-24 2018-07-31 深圳博十强志科技有限公司 The method and device of picture of mobile telephone is drawn based on memory copying mode
CN112434328A (en) * 2019-08-26 2021-03-02 钉钉控股(开曼)有限公司 Message forwarding method, mail forwarding method and electronic equipment
CN118247574A (en) * 2024-04-12 2024-06-25 北京汉王影研科技有限公司 WeChat chat screenshot judging method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005010709A2 (en) * 2003-07-21 2005-02-03 America Online, Inc. Managing instant messages
US20060036739A1 (en) * 2004-08-12 2006-02-16 International Business Machines Corporation Method and system for removing messaging information in a messaging client
JP2006053864A (en) * 2004-08-16 2006-02-23 Hitachi Software Eng Co Ltd Method for capturing window image and program
CN1819648A (en) * 2005-02-02 2006-08-16 创新科技有限公司 Method and system to process video effects

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005010709A2 (en) * 2003-07-21 2005-02-03 America Online, Inc. Managing instant messages
US20060036739A1 (en) * 2004-08-12 2006-02-16 International Business Machines Corporation Method and system for removing messaging information in a messaging client
JP2006053864A (en) * 2004-08-16 2006-02-23 Hitachi Software Eng Co Ltd Method for capturing window image and program
CN1819648A (en) * 2005-02-02 2006-08-16 创新科技有限公司 Method and system to process video effects

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105868654A (en) * 2016-03-25 2016-08-17 努比亚技术有限公司 A mobile terminal and a screen capture method thereof
CN108346126A (en) * 2017-01-24 2018-07-31 深圳博十强志科技有限公司 The method and device of picture of mobile telephone is drawn based on memory copying mode
CN108346126B (en) * 2017-01-24 2023-01-06 深圳博十强志科技有限公司 Method and device for drawing mobile phone picture based on memory copy mode
CN112434328A (en) * 2019-08-26 2021-03-02 钉钉控股(开曼)有限公司 Message forwarding method, mail forwarding method and electronic equipment
CN112434328B (en) * 2019-08-26 2024-04-05 钉钉控股(开曼)有限公司 Message forwarding (transferring) mail forwarding method and electronic equipment
CN118247574A (en) * 2024-04-12 2024-06-25 北京汉王影研科技有限公司 WeChat chat screenshot judging method and system

Similar Documents

Publication Publication Date Title
CN109918345B (en) Document processing method, device, terminal and storage medium
CN100566306C (en) A kind of sectional drawing method and apparatus based on IM
CN100418055C (en) Method and system for user interface widget unit sharing
JP6186870B2 (en) Information processing apparatus, program, conference system, and content providing method
KR102058465B1 (en) Management system and method for remote controller of electronic device
WO2017167132A1 (en) Method and apparatus for implementing instant messaging
US10496354B2 (en) Terminal device, screen sharing method, and screen sharing system
EP2579588B1 (en) Collaborative meeting systems that enable parallel multi-user input to mark up screens
JP6064381B2 (en) Information sharing system
CN107864358B (en) Shared object operation method in video call
WO2016180260A1 (en) Method and apparatus for displaying instant messaging window and computer readable medium
TW201031149A (en) Instant data sharing system and machine readable medium thereof
WO2010102525A1 (en) Method for generating gif, and system and media player thereof
US20160162151A1 (en) Input method and device thereof, and auxiliary input method and system thereof
JP2009223521A (en) Information processor, document management system, and processing method and program of the processor
CN107005458B (en) Unscripted digital media message generation method, apparatus, electronic device, and readable medium
WO2016066147A2 (en) Method and device for processing image
US9467495B2 (en) Transferring assets via a server-based clipboard
WO2015085960A1 (en) Photo processing method and device
WO2019242274A1 (en) Content processing method and device
CN101252550A (en) Custom information management device, method and system
CN105224676A (en) The method of mobile terminal file migration and device
WO2023202721A1 (en) File transmission method and apparatus, and electronic device and storage medium
WO2018149210A1 (en) Method, device, and system for transmitting information
WO2008138253A1 (en) An apparatus and method for instant messaging image capture

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 08734250

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 6954/CHENP/2009

Country of ref document: IN

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 28.04.10)

122 Ep: pct application non-entry in european phase

Ref document number: 08734250

Country of ref document: EP

Kind code of ref document: A1