Screen shot processing method and device, computing device, and readable storage medium

By displaying and combining images on the desktop of a computing device, the cumbersome screenshot combination operation in the prior art is solved, achieving efficient image combination and a simplified operation process, thus improving the user experience.

CN116126200BActive Publication Date: 2026-05-15UNIONTECH SOFTWARE TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
UNIONTECH SOFTWARE TECH CO LTD
Filing Date
2023-03-02
Publication Date
2026-05-15

AI Technical Summary

Technical Problem

Existing technology makes combining multiple screenshots into a single image cumbersome, requiring the images to be saved before editing, resulting in low efficiency.

Method used

The captured images are displayed on the desktop of the computing device. By performing a pre-defined operation, the combination mode is entered. The combination direction is determined according to the positional relationship of the images, and the images are automatically or dragged together into a single image, eliminating the need for saving and editing software.

Benefits of technology

It improves the efficiency of screenshot combination, simplifies the operation process, enhances the user experience, and reduces reliance on image editing tools.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116126200B_ABST
    Figure CN116126200B_ABST
Patent Text Reader

Abstract

The application discloses a screenshot processing method and device, a computing device and a readable storage medium. The method is executed in the computing device and includes the following steps. In response to a screenshot operation, a screenshot is displayed on the desktop of the computing device. When the number of screenshots displayed on the desktop is greater than one, in response to a predetermined operation, a combination mode is entered. In the combination mode, a combination direction of screenshots to be combined is determined. The screenshots to be combined are combined according to the determined combination direction, and a combined picture is generated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Internet technology, and in particular to a method, apparatus, computing device, and readable storage medium for processing screenshots. Background Technology

[0002] Currently, when it's necessary to send multiple pieces of content from different locations on an electronic device (e.g., multiple key sections from an electronic document) to someone else, the existing solution is to first take screenshots of the content to be sent, save the screenshots, and then send these images, repeating this process to achieve the desired result. Another solution is to save all the screenshots, then use specialized drawing or image editing software to combine them into a single image, and then send the combined image. However, the existing solutions still involve a rather cumbersome process.

[0003] Therefore, the present invention provides a screenshot processing solution to solve the problems in the prior art. Summary of the Invention

[0004] Therefore, the present invention provides a method, apparatus, computing device, and readable storage medium for processing screenshots, in order to solve or at least alleviate the problems mentioned above.

[0005] According to a first aspect of the present invention, a screenshot processing method is provided, executed in a computing device, the method comprising: in response to a screenshot operation, displaying a captured image on top of the desktop of the computing device; when the number of images displayed on the desktop is greater than one, entering a combination mode in response to a predetermined operation; in the combination mode, determining a direction for combining the images to be combined; and combining the images to be combined according to the determined combination direction to generate a combined image. Optionally, in the screenshot processing method according to the present invention, the predetermined operation includes moving a first image onto a second image or triggering a combination mode interface.

[0006] Optionally, in the screenshot processing method according to the present invention, the texture to be combined includes a first texture and a second texture, and determining the direction of combining the textures to be combined includes: determining the combination direction based on the positional relationship between the first texture and the second texture.

[0007] Optionally, in the screenshot processing method according to the present invention, determining the combination direction based on the positional relationship between the first texture and the second texture includes: when the number of vertices of the first texture in the second texture is one, obtaining a first ratio of the width of the overlapping area between the first texture and the second texture to the width of the second texture, and obtaining a second ratio of the height of the overlapping area to the height of the second texture; if the first ratio is greater than the second ratio, the combination direction is determined to be a horizontal combination; if the first ratio is less than the second ratio, the combination direction is determined to be a vertical combination.

[0008] Optionally, in the screenshot processing method according to the present invention, determining the combination direction based on the positional relationship between the first texture and the second texture includes: when the number of vertices of the first texture and the second texture is two, determining whether the horizontal coordinates of the two overlapping vertices of the first texture and the second texture are the same; if the horizontal coordinates are the same, then the combination direction is determined to be a horizontal combination; if the horizontal coordinates are different, determining whether the vertical coordinates of the two overlapping vertices of the first texture and the second texture are the same; if the vertical coordinates are the same, then the combination direction is determined to be a vertical combination.

[0009] Optionally, in the screenshot processing method according to the present invention, determining the combination direction based on the positional relationship between the first texture and the second texture includes: when the number of vertices of the first texture in the second texture is four, obtaining a first minimum distance between the left boundaries of the first texture and the second texture, a second minimum distance between the right boundaries, a third minimum distance between the upper boundaries, and a fourth minimum distance between the lower boundaries; obtaining a third ratio of the minimum value between the first minimum distance and the second minimum distance to the width of the second texture, and a fourth ratio of the minimum value between the third minimum distance and the fourth minimum distance to the height of the second texture; if the third ratio is greater than the fourth ratio, the combination direction is determined to be a vertical combination; otherwise, the combination direction is determined to be a horizontal combination.

[0010] Optionally, in the screenshot processing method according to the present invention, combining the textures to be combined according to a determined combination direction includes: if the combination direction is horizontal, then: creating first image data, the width of the first image data being the sum of the widths of the first texture and the second texture, and the height of the first image data being the maximum height of the first texture and the second texture; copying the first texture and the second texture into the first image data; if the combination direction is vertical, then: creating second image data, the width of the second image data being the maximum width of the first texture and the second texture, and the height of the second image data being the sum of the heights of the first texture and the second texture; copying the first texture and the second texture into the second image data.

[0011] Optionally, the screenshot processing method according to the present invention further includes: in combination mode, in response to the movement of any one of the textures, moving the texture following the mouse.

[0012] Optionally, in the screenshot processing method according to the present invention, the texture to be combined includes multiple captured textures, and determining the direction of combining the textures to be combined includes: in response to the triggering of the horizontal combination interface, determining the combination direction as horizontal combination; in response to the triggering of the vertical combination interface, determining the combination direction as vertical combination.

[0013] Optionally, in the screenshot processing method according to the present invention, combining the textures to be combined according to a determined combination direction includes: if the combination direction is horizontal, then: creating third image data, the width of the third image data being the sum of the widths of the multiple cropped textures, and the height of the third image data being the maximum height of the multiple cropped textures; and sequentially copying the multiple cropped textures into the third image data; if the combination direction is vertical, then: creating fourth image data, the width of the fourth image data being the maximum width of the multiple cropped textures, and the height of the fourth image data being the sum of the heights of the multiple cropped textures; and sequentially copying the multiple cropped textures into the fourth image data.

[0014] Optionally, the screenshot processing method according to the present invention further includes: storing the combined image.

[0015] According to a second aspect of the present invention, a screenshot processing apparatus residing in a computing device is provided. The apparatus includes: a texture capture module adapted to display captured textures on top of the desktop of the computing device in response to a screenshot operation; a mode entry module adapted to enter a combination mode in response to a predetermined operation when the number of textures displayed on the desktop is greater than one; a direction determination module adapted to determine the direction for combining the textures to be combined in the combination mode; and a texture combination module adapted to combine the textures to be combined according to the determined combination direction to generate a combined image.

[0016] According to a third aspect of the present invention, a computing device is provided, comprising: at least one processor; and a memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, the program instructions including instructions for performing the methods described above.

[0017] According to a fourth aspect of the present invention, a readable storage medium storing program instructions is provided, which, when read and executed by a computing device, causes the computing device to perform the method described above.

[0018] The present invention provides a screenshot processing method that, in response to a screenshot operation, displays the captured image on top of the desktop, eliminating the need to save the image before combining it, thus simplifying the process and improving the efficiency of image combination. The present invention adds an image combination mode to the screenshot processing. After entering the combination mode through a predetermined operation, the images to be combined are combined according to a determined combination direction, improving the efficiency of image combination and enhancing the user experience.

[0019] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and in order to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description

[0020] To achieve the foregoing and related objectives, certain illustrative aspects are described herein in conjunction with the following description and accompanying drawings. These aspects indicate various ways in which the principles disclosed herein may be practiced, and all aspects and their equivalents are intended to fall within the scope of the claimed subject matter. The foregoing and other objectives, features, and advantages of this disclosure will become more apparent from the following detailed description, taken in conjunction with the accompanying drawings. Throughout this disclosure, the same reference numerals generally refer to the same parts or elements.

[0021] Figure 1 A schematic diagram of a method for combining multiple images in an existing scheme is shown;

[0022] Figure 2 A block diagram of the physical components (i.e., hardware) of the computing device 200 is shown;

[0023] Figure 3 A flowchart illustrating a screenshot processing method according to an embodiment of the present invention is shown;

[0024] Figure 4 A flowchart of a screenshot processing method 400 according to another embodiment of the present invention is shown;

[0025] Figure 5 A schematic diagram of a texture combination method according to an embodiment of the present invention is shown;

[0026] Figure 6 A schematic diagram showing the overlap of a first texture and a second texture according to an embodiment of the present invention is shown;

[0027] Figure 7 A schematic diagram showing the overlap of a first texture and a second texture according to another embodiment of the present invention is shown;

[0028] Figure 8 A schematic diagram showing the overlap of a first texture and a second texture according to yet another embodiment of the present invention is shown;

[0029] Figure 9 A schematic diagram of a processing apparatus 900 according to an embodiment of the present invention is shown. Detailed Implementation

[0030] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.

[0031] Figure 1 This diagram illustrates a method for combining multiple images in existing solutions. For example... Figure 1 As shown in the example of the existing solution, after capturing images A, B, and C, users need to save each image separately to its corresponding storage path. After saving the images, they open image editing software, open images A, B, and C stored in the specified path, combine them into image D, and finally save image D. However, the existing solution still requires saving the captured images and then opening another image editing software to stitch them together, which is redundant, inconvenient, and inefficient.

[0032] This invention provides a screenshot processing method that eliminates the need to save each screenshot individually, allowing them to be displayed as stickers on the desktop without requiring the use of other image editing software for merging. Building upon the sticker functionality, a new sticker combination function is added, allowing multiple captured stickers to be combined according to a selected combination method.

[0033] The stickers involved in this invention differ from ordinary images; they are generated through a screenshot operation. After a screenshot, the generated sticker is placed on the top layer of the desktop. If other applications are open on the desktop, the sticker will appear on top of all applications and will not be obscured, facilitating temporary reference for the user. The sticker function is typically used when a screenshot application does not need to save the sticker after taking a screenshot; it simply places the generated sticker on the top layer of the desktop for temporary use.

[0034] The screenshot processing method provided by this invention will be described below.

[0035] Figure 2A block diagram of the physical components (i.e., hardware) of a computing device 200 is shown. In a basic configuration, the computing device 200 includes at least one processing unit 202 and system memory 204. According to one aspect, depending on the configuration and type of the computing device, the processing unit 202 may be implemented as a processor. The system memory 204 includes, but is not limited to, volatile memory (e.g., random access memory), non-volatile memory (e.g., read-only memory), flash memory, or any combination of such memory. According to one aspect, the system memory 204 includes an operating system 205 and a program module 206, the program module 206 including a screenshot processing device 900 configured to execute the screenshot processing method 400 of the present invention.

[0036] According to one aspect, operating system 205 is, for example, suitable for controlling the operation of computing device 200. Furthermore, examples are practiced in conjunction with graphics libraries, other operating systems, or any other applications, and are not limited to any particular application or system. Figure 2 The basic configuration is illustrated by the components within the dashed lines 208. According to one aspect, the computing device 200 has additional features or functions. For example, according to one aspect, the computing device 200 includes additional data storage devices (removable and / or non-removable), such as disks, optical discs, or magnetic tapes. This additional storage... Figure 2 The middle part is shown by removable storage device 209 and non-removable storage device 210.

[0037] As stated above, according to one aspect, a program module is stored in system memory 204. According to one aspect, the program module may include one or more applications. The present invention does not limit the type of application; for example, applications may include: email and contact applications, word processing applications, spreadsheet applications, database applications, slideshow applications, drawing or computer-aided applications, web browser applications, etc.

[0038] According to one aspect, examples can be practiced on circuits including discrete electronic components, packaged or integrated electronic chips containing logic gates, circuits utilizing microprocessors, or on a single chip containing electronic components or a microprocessor. For example, it can be practiced via... Figure 2Each or many of the components shown can be implemented as an example by integrating a System-on-a-Chip (SOC) on a single integrated circuit. According to one aspect, such an SOC device may include one or more processing units, graphics units, communication units, system virtualization units, and various application functions, all integrated (or “burned in”) as a single integrated circuit onto a chip substrate. When operating via the SOC, the functions described herein can be operated via dedicated logic integrated on a single integrated circuit (chip) with other components of the computing device 200. Embodiments of the invention can also be implemented using other techniques capable of performing logical operations (e.g., AND, OR, and NOT), including but not limited to mechanical, optical, fluid, and quantum technologies. Additionally, embodiments of the invention can be implemented within a general-purpose computer or in any other circuit or system.

[0039] According to one aspect, computing device 200 may also have one or more input devices 212, such as a keyboard, mouse, pen, voice input device, touch input device, etc. It may also include output devices 214, such as a display, speaker, printer, etc. The foregoing devices are examples and other devices may also be used. Computing device 200 may include one or more communication connections 216 that allow communication with other computing devices 218. Examples of suitable communication connections 216 include, but are not limited to: RF transmitter, receiver and / or transceiver circuitry; Universal Serial Bus (USB), parallel and / or serial ports.

[0040] As used herein, the term computer-readable medium includes computer storage medium. Computer storage medium can include volatile and non-volatile, removable and non-removable media implemented using any method or technology for storing information (e.g., computer-readable instructions, data structures, or program modules). System memory 204, removable storage device 209, and non-removable storage device 210 are examples of computer storage media (i.e., memory storage). Computer storage media can include random access memory (RAM), read-only memory (ROM), electrically erasable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical storage, magnetic tape, magnetic tape, disk storage or other magnetic storage devices, or any other article of manufacture that can be used to store information and is accessible by computer device 200. According to one aspect, any such computer storage medium can be part of computing device 200. Computer storage media does not include carrier waves or other transmitted data signals.

[0041] According to one aspect, a communication medium is implemented by computer-readable instructions, data structures, program modules, or other data in a modulated data signal (e.g., a carrier wave or other transmission mechanism), and includes any information transmission medium. According to one aspect, the term "modulated data signal" describes a signal having one or more sets of characteristics or altered in a manner that encodes information in the signal. By way of example and not limitation, a communication medium includes wired media such as wired networks or direct wired connections, and wireless media such as acoustic, radio frequency (RF), infrared, and other wireless media.

[0042] In some embodiments of the present invention, the computing device 200 includes one or more processors and one or more readable storage media storing program instructions. When the program instructions are configured to be executed by one or more processors, the computing device causes the computing device to perform the screenshot processing method in the embodiments of the present invention.

[0043] Figure 3 A flowchart illustrating a screenshot processing method according to an embodiment of the present invention is shown. Figure 3 As shown, after taking a screenshot, textures A, B, and C are generated separately. These three textures are then combined into a single image D, which is finally saved. This avoids the cumbersome process of saving the image and opening and stitching it using another image editing software. It eliminates the need to save the screenshot while simultaneously stitching the textures, significantly improving the efficiency of texture combination and stitching.

[0044] The following is a detailed explanation of how to process screenshots.

[0045] Figure 4 A flowchart of a screenshot processing method 400 according to another embodiment of the present invention is shown. Method 400 is adapted to be executed in a computing device (e.g., the aforementioned computing device 200). Figure 4 As shown, method 400 begins with step 410.

[0046] In step 410, in response to the screenshot operation, the captured image is displayed on top of the desktop of the computing device.

[0047] In step 420, when the number of stickers displayed on the desktop is greater than one, the system enters the combination mode in response to a predetermined operation.

[0048] The predetermined operation includes moving any one of the multiple textures displayed on the desktop onto another texture. At this time, there is an overlap between the two textures. Here, the one texture is referred to as the first texture, and the other texture is referred to as the second texture. That is, the predetermined operation includes moving the first texture onto the second texture.

[0049] Additionally, the scheduled operation may include triggering the combo mode interface. The combo mode interface can be implemented as a single button, such as an item in the Start menu or a button in the toolbar, but it is not limited to these; it can also be implemented as a shortcut key or a combination of shortcut keys.

[0050] In step 430, in combination mode, the direction for combining the textures to be combined is determined.

[0051] According to an embodiment of the present invention, after entering the combination mode, there are two ways to combine textures: one is to drag and combine textures by dragging any texture onto another texture; the other is to automatically combine textures by selecting the horizontal or vertical combination interface for a one-click quick combination method. Figure 5 A schematic diagram of a texture combination method according to an embodiment of the present invention is shown. Figure 5 As shown, after entering the combination mode, textures can be combined by dragging and dropping or by automatic combination. In the drag-and-drop method, dragging one texture onto another triggers the combination of the two textures. For example, clicking and holding the mouse on one texture, dragging it to another texture, and releasing the mouse will automatically combine the two textures. In the automatic combination method, by setting the merging rules, such as horizontal or vertical combination, users can trigger the corresponding horizontal or vertical combination interface to combine multiple captured textures on the desktop horizontally or vertically.

[0052] In some embodiments, when dragging and combining textures, the relative positions of the two textures after movement and mouse release determine whether the combination is horizontal or vertical, and then the two textures are combined in the corresponding direction. If the first texture is moved onto the second texture, it means that the first and second textures are combined into one image. The textures to be combined include the first and second textures, and the combination direction can be determined based on the positional relationship between the first and second textures.

[0053] Here, for the convenience of explanation, the global coordinates of the desktop are introduced. The coordinates of the upper left corner of the desktop coordinates are (0, 0), and the texture coordinates are introduced. A texture T can be represented as T(x, y, w, h), where x represents the abscissa, y represents the ordinate, w represents the width of the texture T, and h represents the height of the texture T. The four vertices p1 - p4 of the texture can be represented as p1(x, y), p2(x, y + h), p3(x + w, y), p4(x + w, y + h). When determining whether the vertices of another image are within the range of the texture T, it can be determined whether the vertices fall within the quadrilateral range enclosed by p1 - p4. If so, the vertices are within the range of the texture T. For example: To determine whether a vertex (x1, y1) is within the quadrilateral range where the texture T is located, it is judged whether x1 satisfies x < x1 < x + w, that is, whether x1 is greater than x and less than x + w, and whether y1 satisfies y < y1 < y + h, that is, whether y1 is greater than y and less than y + h. If the above conditions are met, the vertex (x1, y1) is within the range where the texture T is located.

[0054] According to the number of vertices of the first texture within the range of the second texture, the combination direction of the first texture and the second texture can be determined. The number of vertices of the first texture within the range of the second texture can be divided into four different cases: 0, 1, 2, and 4.

[0055] When the first texture overlaps with the second texture and the number of vertices of the first texture within the range of the second texture is zero, obtain the overlapping edge of the first texture with the second texture and the center point of the second texture, and judge the positional relationship between the overlapping edge of the first texture with the second texture and the center point of the second texture. If the overlapping edge is on the left or right side of the center point of the second texture, the combination direction is horizontal combination. If the overlapping edge is on the upper or lower side of the center point of the second texture, the combination direction is vertical combination.

[0056] If the first texture and the second texture do not overlap and there is no overlapping part, the splicing is not triggered.

[0057] When the number of vertices of the first texture in the second texture is one, obtain the first ratio of the width of the overlapping area between the first texture and the second texture to the width of the second texture, and obtain the second ratio of the height of the overlapping area to the height of the second texture. If the first ratio is greater than the second ratio, the combination direction is determined as horizontal combination. If the first ratio is less than the second ratio, the combination direction is determined as vertical combination. Specifically, by comparing the ratio of the horizontal overlapping ratio to the vertical overlapping ratio of the first texture and the second texture, the combination direction of the two textures in the case where the number of vertices is one is judged. Figure 6 Shows a schematic diagram of the overlap of the first texture and the second texture according to an embodiment of the present invention. As Figure 6As shown, 610 represents the first texture, and 620 represents the second texture. One vertex of the first texture is located within the area of ​​the second texture. The coordinates of the top-left vertex of the second texture are denoted as (x1, y1), its width is w1, and its height is h1. The coordinates of the top-left vertex of the first texture are denoted as (x2, y2). The width of the overlapping area between the first and second textures is x1 + w1 - x2, and the first ratio is (x1 + w1 - x2) / w1. The height of the overlapping area is y1 + h1 - y2, and the second ratio is (y1 + h1 - y2) / h1. If ((x1+w1-x2) / w1)>((y1+h1-y2) / h1), then the combination direction is horizontal splicing; if ((x1+w1-x2) / w1)<((y1+h1-y2) / h1), then the combination direction is vertical splicing.

[0058] When the number of vertices in the first texture that overlap with the number in the second texture is two, determine if the x-coordinates of the two overlapping vertices are the same. If they are the same, the combination direction is determined to be horizontal. If the x-coordinates are different, determine if the y-coordinates of the two overlapping vertices are the same. If they are the same, the combination direction is determined to be vertical. Alternatively, you can first determine if the y-coordinates of the two overlapping vertices are the same. If they are the same, the combination direction is determined to be vertical. If the y-coordinates are different, then determine if the x-coordinates of the two overlapping vertices are the same. If they are the same, the combination direction is determined to be horizontal. Figure 7 A schematic diagram illustrating the overlap of a first texture and a second texture according to another embodiment of the present invention is shown. Figure 7 As shown, 710 represents the first texture, and 720 represents the second texture. Two vertices of the first texture are located within the area of ​​the second texture. The coordinates of the top-left vertex of the second texture are denoted as (x1, y1), the width of the second texture is w1, and the height of the second texture is h1. The coordinates of the top-left vertex of the first texture are denoted as (x2, y2). The two vertices of the first texture within the area of ​​the second texture are denoted as P1 and P2. If the x-coordinates of these two vertices P1 and P2 are equal, the combination direction is horizontal splicing, triggering horizontal splicing. If the y-coordinates of these two vertices P1 and P2 are equal, the combination direction is vertical splicing, triggering vertical splicing.

[0059] When the number of vertices of the first texture map in the second texture map is four, obtain the first minimum distance between the left boundaries of the first texture map and the second texture map, the second minimum distance between the right boundaries of the first texture map and the second texture map, the third minimum distance between the upper boundaries of the first texture map and the second texture map, and the fourth minimum distance between the lower boundaries of the first texture map and the second texture map. Obtain the third ratio of the minimum value between the first minimum distance and the second minimum distance to the width of the second texture map, and the fourth ratio of the minimum value between the third minimum distance and the fourth minimum distance to the height of the second texture map. If the third ratio is greater than the fourth ratio, determine the combination direction as vertical combination; otherwise, determine the combination direction as horizontal combination. Figure 8 shows a schematic diagram of the overlap between the first texture map and the second texture map according to another embodiment of the present invention. As Figure 8 shown, 810 represents the first texture map, 820 represents the second texture map, and all four vertices of the first texture map are within the range of the second texture map. Represent the coordinates of the upper left corner vertex of the second texture map as (x1, y1), the width of the second texture map as w1, the height of the second texture map as h1, the first minimum distance between the left side boundary of the first texture map and the second texture map can be expressed as wL, the second minimum distance between the right side boundary of the first texture map and the second texture map can be expressed as wR, the third minimum distance between the upper side boundary of the first texture map and the second texture map can be expressed as hU, and the fourth minimum distance between the lower side boundary of the first texture map and the second texture map can be expressed as hD. The third ratio of the minimum value between the first minimum distance and the second minimum distance to the width of the second texture map can be expressed as Min(wL, wR) / w1, and the fourth ratio of the minimum value between the third minimum distance and the fourth minimum distance to the height of the second texture map can be expressed as Min(hU, hD) / h1. If Min(wL, wR) / w1 < Min(hU, hD) / h1, the combination direction is horizontal combination. If Min(wL, wR) / w1 > Min(hU, hD) / h1, the combination direction is vertical combination.

[0060] Optionally, in the combination mode, in response to the movement of any texture map, move the texture map following the mouse. For example: when the mouse long-presses and moves any texture map, the texture map moves following the mouse position. When the mouse is released, if the texture map overlaps with another texture map, determine the combination direction of the two texture maps and perform combination through the foregoing method. If the texture map does not overlap with any other texture maps, when the mouse is released, the texture map will move to the position where the mouse is released.

[0061] In some embodiments, horizontal and vertical combination interfaces are added to the automatic combination of textures. Optionally, an interface for diagonal combination or an interface for combining textures according to a template may also be added. The template can be composed of various combination styles, such as combining a limited number or unlimited number of cropped textures into circles, rhombuses, hearts, etc., or combining them onto a background image, but is not limited to these.

[0062] By triggering the horizontal combination interface, the combination direction is determined to be horizontal; by triggering the vertical combination interface, the combination direction is determined to be vertical. The horizontal and vertical combination interfaces can be triggered by mouse, touchpad, or keyboard clicks, or by shortcut keys or combinations of shortcut keys, or by remote control, but are not limited to these methods.

[0063] By triggering the horizontal or vertical interface, multiple captured images generated from screenshot operations that are displayed on the desktop of the computing device can be combined together. At this time, the images to be combined include all the images displayed on the desktop.

[0064] In step 440, the textures to be combined are combined according to the determined combination direction to generate the combined image.

[0065] In some embodiments, when dragging and combining textures, the textures to be combined are a first texture and a second texture. If the combination direction is horizontal, then: a first image data is created, the width of which is the sum of the widths of the first and second textures, and the height of which is the maximum height of the first and second textures. The first and second textures are copied into the first image data. If the combination direction is vertical, then: a second image data is created, the width of which is the maximum width of the first and second textures, and the height of which is the sum of the heights of the first and second textures. The first and second textures are copied into the second image data.

[0066] In some embodiments, in the automatic texture combination, the textures to be combined are all the textures on the desktop, that is, the desktop of the computing device displays multiple cropped textures generated by the screenshot operation. If the combination direction is horizontal, then: a third image data is created, the width of the third image data is the sum of the widths of the multiple cropped textures, the height of the third image data is the maximum height of the multiple cropped textures, and the multiple cropped textures are sequentially copied into the third image data. If the combination direction is vertical, then: a fourth image data is created, the width of the fourth image data is the maximum width of the multiple cropped textures, the height of the fourth image data is the sum of the heights of the multiple cropped textures, and the multiple cropped textures are sequentially copied into the fourth image data.

[0067] Specifically, the texture is represented by T, w represents the width of the texture, and h represents the height of the texture. A texture can be represented as T(w, h), for example, there are T1(w1, h1), T2(w2, h2), T3(w3, h3)...Tn(wn, hn), and n textures (n is a natural number) need to be combined.

[0068] In automatic texture combination, if the combination direction is horizontal, the width w and height h0 of the image T0 after combining n textures are calculated.

[0069] w0 = w1 + w2 + w3... + wn

[0070] h0=Max(h1, h2, h3,..., hn)

[0071] All textures are combined using the image description class in the Qt library to create image data T0, with a width of w0 and a height of h0. Texture T1 is copied onto image data T0 at coordinates (0, 0), texture T2 is copied to T0 at coordinates (w1, 0), texture T3 is copied to T0 at coordinates (w1+w2, 0), and so on. All textures are copied onto image data T0 in this way, resulting in image data T0, which is the combined image of textures T1, T2…Tn.

[0072] If the combination direction is vertical, the width w and height h0 of the combined image T0 are:

[0073] h0 = h1 + h2 + h3... + hn

[0074] w0=Max(w1,w2,w3,...,wn)

[0075] All textures are combined using the image description class in the Qt library to create image data T0, with a width of w0 and a height of h0. Texture T1 is copied onto image data T0 at coordinates (0, 0), texture T2 is copied to T0 at coordinates (0, h1), texture T3 is copied to T0 at coordinates (0, h1+h2), and so on, copying all textures onto image data T0 in this way. The resulting image data T0 is the combined image of textures T1, T2…Tn.

[0076] Optionally, the combined images can be stored.

[0077] In some embodiments, the two textures can also be combined based on their relative positions. If the combination direction of the first and second textures is determined to be horizontal, then if the first texture is to the left of the second texture, the first texture is placed to the left of the second texture during combination. If the first texture is to the right of the second texture, the first texture is placed to the right of the second texture during combination. If the combination direction of the first and second textures is determined to be vertical, then if the first texture is above the second texture, the first texture is placed above the second texture during combination. If the first texture is below the second texture, the first texture is placed below the second texture during combination. Specifically, this can be determined by the positions of the center points of the first and second textures.

[0078] The present invention also provides a screenshot processing device. Figure 9 A schematic diagram of a processing apparatus 900 according to an embodiment of the present invention is shown. The apparatus 900 resides in a computing device. Figure 9 As shown, the screenshot processing device 900 includes a texture capture module 910, a mode entry module 920, a direction determination module 930, and a texture combination module 940.

[0079] The image capture module 910 is adapted to display the captured image on top of the desktop of the computing device in response to a screenshot operation. The mode entry module 920 is adapted to perform the content involved in step 410 of the aforementioned method 400.

[0080] The mode entry module 920 is adapted to enter a combined mode in response to a predetermined operation when the number of stickers displayed on the desktop is greater than one. The mode entry module 920 is adapted to perform the content involved in step 420 of the aforementioned method 400.

[0081] The direction determination module 930 is adapted to determine the direction for combining textures to be combined in combination mode. The direction determination module 930 is adapted to perform the content involved in step 430 of the aforementioned method 400.

[0082] The texture combination module 940 is adapted to combine textures to be combined according to a determined combination direction to generate a combined image. The texture combination module 940 is adapted to perform the content involved in step 440 of the aforementioned method 400.

[0083] It should be noted that the working principle and process of the device 900 provided in this embodiment are similar to those of the method 400 described above. For relevant details, please refer to the description of the method 400 described above, which will not be repeated here.

[0084] The technical solution of this invention provides a screenshot processing method. In response to a screenshot operation, the captured image is displayed prominently on the desktop, eliminating the need to save the image before combining it, thus simplifying the process and improving the efficiency of image combination. This invention adds an image combination mode to the screenshot processing. After entering the combination mode through a predetermined operation, the images to be combined are combined according to a determined combination direction, further improving the efficiency of image combination and enhancing the user experience.

[0085] Furthermore, the technical solution of this invention adds a method for combining stickers after screenshotting, enabling users to quickly combine all stickers displayed on the desktop automatically, or to arrange stickers by dragging and dropping. This allows for rapid combination of multiple stickers after capture, facilitating the sending of the combined image, reducing operation steps, improving user experience, and successfully reducing reliance on image editing tools. This technical solution of the invention has low dependency, strong versatility, and can be used in image editing tools on any operating system for combining multiple stickers after capture.

[0086] The various techniques described herein can be implemented in combination with hardware or software, or a combination thereof. Thus, the methods and apparatus of the present invention, or certain aspects or portions thereof, can take the form of program code (i.e., instructions) embedded in a tangible medium, such as a removable hard disk, USB flash drive, floppy disk, CD-ROM, or any other machine-readable storage medium, wherein when the program is loaded into and executed by a machine such as a computer, the machine becomes an apparatus for practicing the present invention.

[0087] When the program code is executed on a programmable computer, the mobile terminal generally includes a processor, a processor-readable storage medium (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device. The memory is configured to store program code; the processor is configured to execute the screenshot processing method of the present invention according to instructions in the program code stored in the memory.

[0088] By way of example, and not limitation, readable media include readable storage media and communication media. Readable storage media stores information such as computer-readable instructions, data structures, program modules, or other data. Communication media generally embodies computer-readable instructions, data structures, program modules, or other data in the form of modulated data signals such as carrier waves or other transmission mechanisms, and includes any information delivery medium. Any combination of the above is also included within the scope of readable media.

[0089] In the specification provided herein, the algorithms and displays are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used with the examples of this invention. The required structure for constructing such systems is apparent from the above description. Furthermore, this invention is not directed to any particular programming language. It should be understood that the contents of the invention described herein can be implemented using various programming languages, and the above description of specific languages ​​is for the purpose of disclosing the best mode of implementation of the invention.

[0090] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.

[0091] Similarly, it should be understood that, in order to streamline this disclosure and aid in understanding one or more of the various aspects of the invention, in the above description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof.

[0092] Those skilled in the art will understand that modules, units, or components of the devices disclosed in the examples herein can be arranged in the devices described in this embodiment, or alternatively, can be located in one or more devices different from the devices in this example. The modules in the foregoing examples can be combined into a single module or, in addition, can be divided into multiple sub-modules.

[0093] Those skilled in the art will understand that modules in the device of the embodiments can be adaptively changed and placed in one or more devices different from that embodiment. Modules, units, or components in the embodiments can be combined into a single module, unit, or component, and further, they can be divided into multiple sub-modules, sub-units, or sub-components. Except where at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all features disclosed herein and all processes or units of any method or device so disclosed. Unless expressly stated otherwise, each feature disclosed herein may be replaced by an alternative feature that serves the same, equivalent, or similar purpose.

[0094] Furthermore, those skilled in the art will understand that although some embodiments described herein include certain features included in other embodiments but not others, combinations of features from different embodiments are meant to be within the scope of the invention and form different embodiments.

[0095] Furthermore, some of the embodiments described herein are methods or combinations of method elements that can be implemented by a processor of a computer system or by other means of performing the functions. Therefore, a processor having the necessary instructions for implementing the methods or method elements forms means for implementing the methods or method elements. Furthermore, the elements described herein in the apparatus embodiments are examples of means for implementing the functions performed by elements for the purposes of carrying out the invention.

[0096] As used herein, unless otherwise specified, the use of ordinal numbers such as “first,” “second,” “third,” etc., to describe ordinary objects merely indicates different instances of similar objects and is not intended to imply that the objects being described must have a given order in time, space, ordering, or any other manner.

[0097] Although the invention has been described with respect to a limited number of embodiments, those skilled in the art will understand from the foregoing description that other embodiments are conceivable within the scope of the invention described herein. Furthermore, it should be noted that the language used in this specification has been chosen primarily for readability and edibility purposes, and not for the purpose of explaining or limiting the subject matter of the invention.

Claims

1. A screenshot processing method, executed in a computing device, the method comprising: In response to a screenshot operation, the captured image is displayed on top of the desktop of the computing device; When the number of stickers displayed on the desktop is greater than one, the system enters combination mode in response to a pre-defined operation. In the combined mode, in response to the movement of any texture, the texture moves with the mouse. Determine the direction in which the textures to be combined are grouped; The textures to be combined are combined according to the determined combination direction to generate the combined image; In the combination mode, textures are combined by dragging and dropping them. In the dragging and dropping method, the combination of the two textures is triggered by dragging the first texture and placing it on the second texture. Determining the direction of combining the textures to be combined includes: determining the combination direction of the first texture and the second texture based on the number of vertices of the first texture within the range of the second texture. The step of determining the combination direction of the first and second textures based on the number of vertices of the first texture within the range of the second texture includes: When the number of vertices of the first texture in the second texture is one, obtain a first ratio of the width of the overlapping area between the first texture and the second texture to the width of the second texture, and obtain a second ratio of the height of the overlapping area to the height of the second texture; if the first ratio is greater than the second ratio, the combination direction is determined to be a horizontal combination; if the first ratio is less than the second ratio, the combination direction is determined to be a vertical combination. When the number of vertices of the first texture in the second texture is two, determine whether the x-coordinates of the two vertices overlapping the first texture and the second texture are the same; if the x-coordinates are the same, then the combination direction is determined to be a horizontal combination; if the x-coordinates are different, determine whether the y-coordinates of the two vertices overlapping the first texture and the second texture are the same; if the y-coordinates are the same, then the combination direction is determined to be a vertical combination. When the number of vertices of the first texture in the second texture is four, obtain the first minimum distance between the left boundary of the first texture and the second texture, the second minimum distance between the right boundary, the third minimum distance between the top boundary, and the fourth minimum distance between the bottom boundary; obtain the third ratio of the minimum value between the first minimum distance and the second minimum distance to the width of the second texture, and the fourth ratio of the minimum value between the third minimum distance and the fourth minimum distance to the height of the second texture; if the third ratio is greater than the fourth ratio, the combination direction is determined to be a vertical combination; otherwise, the combination direction is determined to be a horizontal combination.

2. The method according to claim 1, wherein, The predetermined operations include moving the first texture onto the second texture or triggering the combo mode interface.

3. The method according to claim 1, wherein, The step of combining the textures to be combined according to the determined combination direction includes: If the combination direction is a horizontal combination, then: Create a first image data, the width of which is the sum of the widths of the first texture and the second texture, and the height of which is the maximum height of the first texture and the second texture; Copy the first texture and the second texture into the first image data; If the combination direction is vertical, then: Create a second image data, the width of which is the maximum width of the first texture and the second texture, and the height of which is the sum of the heights of the first texture and the second texture; Copy the first texture and the second texture into the second image data.

4. The method according to claim 1, wherein, The textures to be combined include multiple cropped textures, and determining the direction for combining the textures to be combined includes: In response to the triggering of the horizontal composition interface, the composition direction is determined to be horizontal composition; In response to the triggering of the vertical composition interface, the composition direction is determined to be vertical composition.

5. The method according to claim 4, wherein, The step of combining the textures to be combined according to the determined combination direction includes: If the combination direction is a horizontal combination, then: Create a third image data, wherein the width of the third image data is the sum of the widths of the multiple cropped textures, and the height of the third image data is the maximum height of the multiple cropped textures; The multiple captured images are sequentially copied into the third image data; If the combination direction is vertical, then: Create a fourth image data, the width of which is the maximum width of the multiple cropped textures, and the height of which is the sum of the heights of the multiple cropped textures; The multiple captured images are sequentially copied into the fourth image data.

6. The method according to claim 1 or 2, further comprising: The combined image is stored.

7. A screenshot processing apparatus residing in a computing device, the apparatus comprising: The image capture module is adapted to respond to a screenshot operation and display the captured image on top of the desktop of the computing device; The mode entry module is suitable for entering the combination mode in response to a predetermined operation when the number of stickers displayed on the desktop is greater than one. The orientation determination module is adapted to determine the orientation for combining textures to be combined in the combined mode; The texture combination module is suitable for combining the textures to be combined according to a determined combination direction to generate a combined image; In the combination mode, textures are combined by dragging and dropping them. In this dragging and dropping method, the combination of the two textures is triggered by dragging the first texture and placing it on the second texture. The direction determination module is also adapted to determine the combination direction of the first and second textures based on the number of vertices of the first texture within the range of the second texture. The device is also adapted to move the texture following the mouse in response to the movement of any texture in the combined mode. The step of determining the combination direction of the first and second textures based on the number of vertices of the first texture within the range of the second texture includes: When the number of vertices of the first texture in the second texture is one, obtain a first ratio of the width of the overlapping area between the first texture and the second texture to the width of the second texture, and obtain a second ratio of the height of the overlapping area to the height of the second texture; if the first ratio is greater than the second ratio, the combination direction is determined to be a horizontal combination; if the first ratio is less than the second ratio, the combination direction is determined to be a vertical combination. When the number of vertices of the first texture in the second texture is two, determine whether the x-coordinates of the two vertices overlapping the first texture and the second texture are the same; if the x-coordinates are the same, then the combination direction is determined to be a horizontal combination; if the x-coordinates are different, determine whether the y-coordinates of the two vertices overlapping the first texture and the second texture are the same; if the y-coordinates are the same, then the combination direction is determined to be a vertical combination. When the number of vertices of the first texture in the second texture is four, obtain the first minimum distance between the left boundary of the first texture and the second texture, the second minimum distance between the right boundary, the third minimum distance between the top boundary, and the fourth minimum distance between the bottom boundary; obtain the third ratio of the minimum value between the first minimum distance and the second minimum distance to the width of the second texture, and the fourth ratio of the minimum value between the third minimum distance and the fourth minimum distance to the height of the second texture; if the third ratio is greater than the fourth ratio, the combination direction is determined to be a vertical combination; otherwise, the combination direction is determined to be a horizontal combination.

8. A computing device, comprising: At least one processor; as well as A memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, the program instructions including instructions for performing the method as claimed in any one of claims 1 to 6.

9. A readable storage medium storing program instructions that, when read and executed by a computing device, cause the computing device to perform the method as described in any one of claims 1 to 6.