CN110838152A - Quick screenshot method and device after multi-layer mixing - Google Patents

Quick screenshot method and device after multi-layer mixing Download PDF

Info

Publication number
CN110838152A
CN110838152A CN201911002889.6A CN201911002889A CN110838152A CN 110838152 A CN110838152 A CN 110838152A CN 201911002889 A CN201911002889 A CN 201911002889A CN 110838152 A CN110838152 A CN 110838152A
Authority
CN
China
Prior art keywords
canvas
screenshot
mixing
pictures
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911002889.6A
Other languages
Chinese (zh)
Other versions
CN110838152B (en
Inventor
许�鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Manuscript (xiamen) Technology Co Ltd
Original Assignee
Manuscript (xiamen) Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Manuscript (xiamen) Technology Co Ltd filed Critical Manuscript (xiamen) Technology Co Ltd
Priority to CN201911002889.6A priority Critical patent/CN110838152B/en
Publication of CN110838152A publication Critical patent/CN110838152A/en
Application granted granted Critical
Publication of CN110838152B publication Critical patent/CN110838152B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention provides a quick screenshot method and a quick screenshot device after multi-layer mixing, wherein the method comprises the following steps: creating a canvas according to the width and height of a screenshot required by a user; drawing a plurality of pictures on the same level of the canvas; and overlapping the same picture on the canvas to obtain the screenshot required by the user. The method and the device for quickly capturing the image after the multi-layer mixing can effectively improve the image capturing efficiency of the multi-layer mixed view, can directly specify the width and the height of the captured view, and do not need secondary modification.

Description

Quick screenshot method and device after multi-layer mixing
Technical Field
The invention relates to the field of computer image processing, in particular to a quick screenshot method and device after multi-image layer mixing.
Background
The traditional multi-layer screenshot mode is as follows: firstly, loading a plurality of pictures on different levels of a same view container according to different mixed modes to enable the pictures to present expected effects, and then carrying out screenshot on the whole view by using a single-view screenshot mode (getDrawingCache ()) provided by an Android system.
The traditional scheme has low efficiency, and the width and the height of the picture generated after screenshot need to be secondarily modified and cannot be directly specified. The slow rate is that getDrawingCache () of the execution system firstly starts the cache of the view and then can acquire the currently displayed picture content from the view, and the acquired picture width and height are not necessarily the width and height required by the user as default.
Disclosure of Invention
In order to solve the problems that the efficiency is low when picture screenshot is carried out and the requirements of a user on the size are not met in the prior art, the invention provides a method and a device for quickly screenshot after multi-layer mixing.
In a first aspect, the present invention provides a method for quickly capturing a mixed multiple image layers, where the method includes:
creating a canvas according to the width and height of a screenshot required by a user;
drawing a plurality of pictures on the same level of the canvas;
and overlapping the same picture on the canvas to obtain the screenshot required by the user.
Further, drawing the plurality of pictures on the same level of the canvas comprises:
mixing a plurality of pictures according to a preset mode;
and drawing the multiple pictures subjected to the mixing processing on the same level of the canvas.
Further, according to the height and width of the screenshot required by the user, before creating the canvas, the method further comprises:
and acquiring the width and height of the required screenshot input by the user.
Further, the mixing the plurality of pictures according to the preset mode includes:
and mixing the plurality of pictures according to the mixing mode and the picture sequence.
In a second aspect, the present invention provides a device for quickly capturing a mixed multiple image layers, where the device includes:
the canvas creating module is used for creating canvas according to the width, the height and the size of a screenshot required by a user;
the canvas drawing module is used for drawing a plurality of pictures on the same level of the canvas;
and the superposition module is used for superposing the same picture on the canvas to obtain the screenshot required by the user.
Further, the canvas rendering module comprises:
the mixing processing unit is used for mixing a plurality of pictures according to a preset mode;
and the drawing unit is used for drawing the mixed pictures on the same level of the canvas.
Further, the canvas drawing module may be preceded by:
and the size obtaining module is used for obtaining the width and the height of the required screenshot input by the user.
Further, the mixing processing unit includes:
and the mixing unit is used for mixing the plurality of pictures according to the mixing mode and the picture sequence.
In a third aspect, the present invention provides an electronic device, which includes a memory, a processor, and a computer program that is stored in the memory and is executable on the processor, where the processor implements the steps of the quick screenshot method after multi-layer mixing provided in the first aspect when executing the program.
In a fourth aspect, the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the multi-layer mixed quick screenshot method provided in the first aspect.
The method and the device for quickly capturing the image after the multi-layer mixing can effectively improve the image capturing efficiency of the multi-layer mixed view, can directly specify the width and the height of the captured view, and do not need secondary modification.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a quick screenshot method after multi-layer mixing according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a quick screenshot method after multi-layer mixing according to another embodiment of the present invention;
fig. 3 is a block diagram of a fast screenshot device after multi-layer mixing according to an embodiment of the present invention;
fig. 4 is a block diagram of a fast screenshot apparatus after multi-layer mixing according to another embodiment of the present invention;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
The traditional multi-layer screenshot mode is a single-view screenshot mode (getDrawingCache ()) for screenshot, so that the efficiency is low, and the width and the height of a picture generated after screenshot are not necessarily the width and the height required by a user. In order to solve the above problem, an embodiment of the present invention provides a quick screenshot method after multiple image layers are mixed, where as shown in fig. 1, the method includes:
step S101, creating a canvas according to the width and height of a screenshot required by a user;
step S102, drawing a plurality of pictures on the same level of a canvas;
and step S103, superposing the same picture on the canvas to obtain the screenshot required by the user.
Specifically, according to the embodiment of the invention, firstly, a canvas is created according to the width and the height of a required screenshot input by a user; drawing a plurality of pictures on the same level of the established canvas; and (4) superposing the same picture on the same canvas to obtain the screenshot with the size specified by the user.
The quick screenshot method after multi-layer mixing can effectively improve the screenshot efficiency of the multi-layer mixed view, can directly specify the width and the height of the intercepted view, and does not need secondary modification.
Based on the content of the above embodiments, as an alternative embodiment: drawing the plurality of pictures on the same level of the canvas comprises:
mixing a plurality of pictures according to a preset mode;
and drawing the multiple pictures subjected to the mixing processing on the same level of the canvas.
Specifically, a plurality of pictures are mixed according to a preset mode, wherein the mode can automatically adjust mixing according to the pictures to be mixed, and then the pictures after mixing processing are drawn on the same level of a canvas.
Based on the content of the above embodiments, as an alternative embodiment: according to the required screenshot width and height size of the user, before creating the canvas, the method further comprises the following steps as shown in fig. 2:
and step S100, acquiring the width and height of the required screenshot input by the user.
Specifically, the computer server receives a screenshot width and height size input by a user and is used for creating a canvas according to the specified screenshot width and height size.
Based on the content of the above embodiments, as an alternative embodiment: the mixing processing of the plurality of pictures according to the preset mode comprises the following steps:
and mixing the plurality of pictures according to the mixing mode and the picture sequence.
Specifically, the mixing processing is performed according to a preset mixing mode and the front and back sequence of the plurality of pictures. Here, the blend mode is a technical term in image processing technology, and is not only used in Photoshop which is widely used, but also applied to software such as after effect, license, Dreamweaver, Fireworks, and the like, and has a main effect of blending the color of an object with the color of an underlying object in different ways.
According to another aspect of the present invention, an embodiment of the present invention provides a quick screenshot device after multiple layer mixing, referring to fig. 3, where fig. 3 is a block diagram of the quick screenshot device after multiple layer mixing according to the embodiment of the present invention. The device is used for completing the quick screenshot after the multi-layer mixing provided by the embodiment of the invention in the embodiments. Therefore, the description and definition in the quick screenshot method after the multiple image layers are mixed provided in the foregoing embodiments of the present invention may be used for understanding each execution module in the embodiments of the present invention.
The device includes:
a canvas creating module 301, configured to create a canvas according to the size of the screenshot width and the height required by the user;
a canvas drawing module 302 for drawing a plurality of pictures on the same level of the canvas;
and the overlapping module 303 is configured to overlap the same picture on the canvas to obtain the screenshot required by the user.
Specifically, according to the embodiment of the invention, firstly, a canvas is created according to the width and the height of a required screenshot input by a user; drawing a plurality of pictures on the same level of the established canvas; and (4) superposing the same picture on the same canvas to obtain the screenshot with the size specified by the user.
The method and the device for quickly capturing the image after the multi-layer mixing can effectively improve the image capturing efficiency of the multi-layer mixed view, can directly specify the width and the height of the captured view, and do not need secondary modification.
Based on the content of the above embodiments, as an alternative embodiment: the canvas drawing module comprises:
the mixing processing unit is used for mixing a plurality of pictures according to a preset mode;
and the drawing unit is used for drawing the mixed pictures on the same level of the canvas.
Specifically, a plurality of pictures are mixed according to a preset mode, wherein the mode can automatically adjust mixing according to the pictures to be mixed, and then the pictures after mixing processing are drawn on the same level of a canvas.
Based on the content of the above embodiments, as an alternative embodiment: the canvas drawing module also comprises, as shown in fig. 4:
and a size obtaining module 300, configured to obtain a required screenshot width and height size input by the user.
Specifically, the computer server receives a screenshot width and height size input by a user and is used for creating a canvas according to the specified screenshot width and height size.
Based on the content of the above embodiments, as an alternative embodiment: the mixing processing unit includes:
and the mixing unit is used for mixing the plurality of pictures according to the mixing mode and the picture sequence.
Specifically, the mixing processing is performed according to a preset mixing mode and the front and back sequence of the plurality of pictures. Here, the blend mode is a technical term in image processing technology, and is not only used in Photoshop which is widely used, but also applied to software such as after effect, license, Dreamweaver, Fireworks, and the like, and has a main effect of blending the color of an object with the color of an underlying object in different ways.
Fig. 5 is a block diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 5, the electronic device includes: a processor 501, a memory 502, and a bus 503;
the processor 501 and the memory 502 respectively complete communication with each other through a bus 503; the processor 501 is configured to call program instructions in the memory 502 to execute the method for quick screenshot after multi-layer blending provided by the foregoing embodiment, for example, including: creating a canvas according to the width and height of a screenshot required by a user; drawing a plurality of pictures on the same level of the canvas; and overlapping the same picture on the canvas to obtain the screenshot required by the user.
An embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of a quick screenshot method after multi-layer mixing. Examples include: creating a canvas according to the width and height of a screenshot required by a user; drawing a plurality of pictures on the same level of the canvas; and overlapping the same picture on the canvas to obtain the screenshot required by the user.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods of the various embodiments or some parts of the embodiments.
Finally, the principle and the implementation of the present invention are explained by applying the specific embodiments in the present invention, and the above description of the embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A quick screenshot method after multi-layer mixing is characterized by comprising the following steps:
creating a canvas according to the width and height of a screenshot required by a user;
drawing a plurality of pictures on the same level of the canvas;
and superposing the same picture on the canvas to obtain the screenshot required by the user.
2. The method of claim 1, wherein the drawing the plurality of pictures on the same level of the canvas comprises:
mixing a plurality of pictures according to a preset mode;
and drawing the mixed pictures on the same level of the canvas.
3. The method of claim 2, wherein the creating the canvas according to the screenshot width and height size required by the user further comprises:
and acquiring the width and height of the required screenshot input by the user.
4. The method according to claim 2, wherein the mixing the plurality of pictures according to the preset mode comprises:
and mixing the plurality of pictures according to the mixing mode and the picture sequence.
5. The utility model provides a quick screenshot device after many picture layers mix which characterized in that the device includes:
the canvas creating module is used for creating canvas according to the width, the height and the size of a screenshot required by a user;
the canvas drawing module is used for drawing a plurality of pictures on the same level of the canvas;
and the superposition module is used for superposing the same picture on the canvas to obtain the screenshot required by the user.
6. The apparatus of claim 5, wherein the canvas drawing module comprises:
the mixing processing unit is used for mixing a plurality of pictures according to a preset mode;
and the drawing unit is used for drawing the mixed pictures on the same level of the canvas.
7. The apparatus of claim 6, wherein the canvas rendering module further comprises, prior to:
and the size obtaining module is used for obtaining the width and the height of the required screenshot input by the user.
8. The apparatus of claim 6, wherein the hybrid processing unit comprises:
and the mixing unit is used for mixing the plurality of pictures according to the mixing mode and the picture sequence.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method for quick screenshot after multi-layer blending according to any one of claims 1 to 4 when executing the program.
10. A non-transitory computer readable storage medium, on which a computer program is stored, wherein the computer program, when being executed by a processor, implements the steps of the multi-layer blended quick screenshot method according to any one of claims 1 to 4.
CN201911002889.6A 2019-10-21 2019-10-21 Method and device for quickly capturing images after multi-layer mixing Active CN110838152B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911002889.6A CN110838152B (en) 2019-10-21 2019-10-21 Method and device for quickly capturing images after multi-layer mixing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911002889.6A CN110838152B (en) 2019-10-21 2019-10-21 Method and device for quickly capturing images after multi-layer mixing

Publications (2)

Publication Number Publication Date
CN110838152A true CN110838152A (en) 2020-02-25
CN110838152B CN110838152B (en) 2023-04-25

Family

ID=69575522

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911002889.6A Active CN110838152B (en) 2019-10-21 2019-10-21 Method and device for quickly capturing images after multi-layer mixing

Country Status (1)

Country Link
CN (1) CN110838152B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080206496A1 (en) * 2007-02-27 2008-08-28 Ricoh Company, Ltd. Coating material and method for producing the same
US20110016406A1 (en) * 2009-07-20 2011-01-20 Aryk Erwin Grosz Network-Based Collage Editor
CN106997348A (en) * 2016-01-22 2017-08-01 腾讯科技(深圳)有限公司 A kind of data method for drafting and device
CN108665520A (en) * 2018-04-24 2018-10-16 微梦创科网络科技(中国)有限公司 A kind of method and device that page animation renders
CN108876748A (en) * 2018-06-29 2018-11-23 掌阅科技股份有限公司 Picture display method calculates equipment and computer storage medium
CN109559322A (en) * 2018-11-30 2019-04-02 迈普通信技术股份有限公司 Image processing method, device, storage medium and electronic equipment
CN110347319A (en) * 2019-06-28 2019-10-18 浙江口碑网络技术有限公司 It is a kind of to apply interior screenshot method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080206496A1 (en) * 2007-02-27 2008-08-28 Ricoh Company, Ltd. Coating material and method for producing the same
US20110016406A1 (en) * 2009-07-20 2011-01-20 Aryk Erwin Grosz Network-Based Collage Editor
CN106997348A (en) * 2016-01-22 2017-08-01 腾讯科技(深圳)有限公司 A kind of data method for drafting and device
CN108665520A (en) * 2018-04-24 2018-10-16 微梦创科网络科技(中国)有限公司 A kind of method and device that page animation renders
CN108876748A (en) * 2018-06-29 2018-11-23 掌阅科技股份有限公司 Picture display method calculates equipment and computer storage medium
CN109559322A (en) * 2018-11-30 2019-04-02 迈普通信技术股份有限公司 Image processing method, device, storage medium and electronic equipment
CN110347319A (en) * 2019-06-28 2019-10-18 浙江口碑网络技术有限公司 It is a kind of to apply interior screenshot method and device

Also Published As

Publication number Publication date
CN110838152B (en) 2023-04-25

Similar Documents

Publication Publication Date Title
CN105630478B (en) A kind of method and apparatus for realizing page switching
CN108289234B (en) Virtual gift special effect animation display method, device and equipment
EP3627318B1 (en) Game rendering method and apparatus, terminal, and non-transitory computer-readable storage medium
US10679426B2 (en) Method and apparatus for processing display data
CN109302628B (en) Live broadcast-based face processing method, device, equipment and storage medium
CN106657757B (en) Image preview method and device for camera application and camera application system
CN103577207A (en) Loading method and loading device for interface components in custom interface system
CN106713968B (en) Live data display method and device
CN104793945A (en) Large-batch picture displaying method for preventing memory overflow and device thereof
CN110415324A (en) A method of it is rendered based on cloud
CN110784739A (en) Video synthesis method and device based on AE
CN110838152B (en) Method and device for quickly capturing images after multi-layer mixing
CN112288666A (en) Image processing method and device
CN106126102A (en) Mobile terminal many wallpapers data interactive method and device
CN112596748B (en) Desktop fusion use method, device, equipment and readable storage medium
CN104750691A (en) User-defined webpage generation method and user-defined webpage generation device
CN108521599A (en) A kind of methods of exhibiting of virtual present, device, terminal and storage medium
JP2022553251A (en) IMAGE PROCESSING METHOD, IMAGE PROCESSING APPARATUS, COMPUTER PROGRAM, AND ELECTRONIC DEVICE
CN113791857A (en) Application window background fuzzy processing method and device in Linux system
CN110852936B (en) Method and device for mixing pictures
CN112732958A (en) Image display method and device and electronic equipment
CN114565709A (en) Data storage management method, object rendering method and device
CN109145263B (en) Document processing method and device and computer readable storage medium
CN110287437A (en) Webpage capture method, apparatus, storage medium and terminal
CN111179400B (en) Rendering mode optimization method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant