CN106648634A - Screen shot method and screen shot device - Google Patents

Screen shot method and screen shot device Download PDF

Info

Publication number
CN106648634A
CN106648634A CN201611119490.2A CN201611119490A CN106648634A CN 106648634 A CN106648634 A CN 106648634A CN 201611119490 A CN201611119490 A CN 201611119490A CN 106648634 A CN106648634 A CN 106648634A
Authority
CN
China
Prior art keywords
interfaces
interface
image
acquisition
video card
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.)
Pending
Application number
CN201611119490.2A
Other languages
Chinese (zh)
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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201611119490.2A priority Critical patent/CN106648634A/en
Publication of CN106648634A publication Critical patent/CN106648634A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a screen shot method and a screen shot device. The method comprises the following steps: acquiring a graphics card interface of a Windows serial operating system; acquiring an image acquisition interface for image acquisition according to the graphics card interface; acquiring a texture image of a current window according to the image acquisition interface; copying the texture image through a graphic card; and acquiring the copied texture image and displaying the texture image on a desktop. The method and the device disclosed by the invention can solve the technical problem that the screen shot efficiency in a screen shot operation is low in the prior art.

Description

A kind of method and device of screen shot
Technical field
The application is related to communication technique field, more particularly to a kind of method and device of screen shot.
Background technology
In prior art, some common softwares with sectional drawing function such as QQ, monitoring software and live software etc., all Real-time screenshotss can be carried out to system desktop image.
However, in current screenshotss function, the image of the whole desktop of intercepting system is the very low operation of an efficiency, The number of times of average one second maximum energy screenshotss can only be in 20 frames or so.It is higher that such screenshotss efficiency cannot meet requirement of real-time Screenshotss demand, can also cause the picture interim card of transmission not smooth.
It can be seen that, in prior art when screenshotss operation is carried out, there is the low technical problem of screenshotss efficiency.
The content of the invention
The embodiment of the present application provide a kind of method and device of screen shot, for overcoming prior art in carrying out When screenshotss are operated, the low technical problem of existing screenshotss efficiency.
In a first aspect, the embodiment of the present application provides a kind of method of screen shot, methods described is applied to Windows systems Row operating system, the Windows sequence of maneuvers system includes Windows8 operating systems;Methods described includes:
Obtain the video card interface of the Windows sequence of maneuvers system;
The image acquisition interface for carrying out image acquisition is obtained according to the video card interface;
The texture image that interface obtains current window is obtained according to described image;
By the video card interface, the texture image is replicated;
The texture image that acquisition is replicated, and the texture image is included in desktop.
Optionally,
It is IDXGIOutputDuplication interfaces that described image obtains interface;
The texture image for obtaining interface acquisition current window according to described image also includes:
Obtain described current from the IDXGIOutputDuplication interfaces by AcquirenextFrame methods The texture image of window.
Optionally, the video card interface for obtaining the Windows8 operating systems includes:
IDXGIDevice interfaces are obtained according to the QueryIneterface methods of ID3D10Device interfaces;
The video card that GetAdapter methods obtain the Windows8 operating systems is carried out to the IDXGIDevice interfaces Interface;Wherein described video card interface is IDXGIAdapter interfaces.
Optionally, the image acquisition interface obtained for carrying out image acquisition according to the video card interface includes:
IDXGIOutput interfaces are obtained according to the IDXGIAdapter interfaces;
IDXGIOutput1 interfaces are obtained according to the IDXGIOutput interfaces;
Described image is obtained according to the IDXGIOutput1 interfaces and obtains interface.
Optionally, also include:
IDXGIOutput interfaces are obtained from the IDXGIAdapter interfaces by EnumOutpts methods;
Or,
IDXGIOutput1 interfaces are obtained from the IDXGIOutput interfaces by QueryInterface methods;
Or,
Obtained from the IDXGIOutput1 interfaces by DuplicateOutput methods IDXGIOutputDuplication interfaces.
Optionally, the Windows sequence of maneuvers system also includes that Windows8.1 operating systems or Windows10 are operated System.
Second aspect, the embodiment of the present application provides a kind of device of screen shot, and described device is applied to Windows systems Row operating system, the Windows sequence of maneuvers system includes Windows8 operating systems;Described device includes:
Video card interface acquisition module, is configured to obtain the video card interface of the Windows sequence of maneuvers system;
Image acquisition interface acquisition module, is configured to obtain the figure for carrying out image acquisition according to the video card interface As obtaining interface;
Texture image acquisition module, is configured to obtain the texture image that interface obtains current window according to described image;
Texture image replication module, is configured to the video card interface, replicates the texture image;
Texture image display module, is configured to obtain the texture image for being replicated, and the texture image is shown Show in desktop.
Optionally, it is IDXGIOutputDuplication interfaces that described image obtains interface;
The texture image acquisition module is additionally operable to:
Obtain described current from the IDXGIOutputDuplication interfaces by AcquirenextFrame methods The texture image of window.
Optionally, the video card interface acquisition module includes:
First acquisition submodule, is configured to be obtained according to the QueryIneterface methods of ID3D10Device interfaces IDXGIDevice interfaces;
Second acquisition submodule, is configured to carry out the IDXGIDevice interfaces GetAdapter methods acquisition institute State the video card interface of Windows8 operating systems;Wherein described video card interface is IDXGIAdapter interfaces.
Optionally, described image obtains interface acquisition module and includes:
3rd acquisition submodule, according to the IDXGIAdapter interfaces IDXGIOutput interfaces are obtained;
4th acquisition submodule, according to the IDXGIOutput interfaces IDXGIOutput1 interfaces are obtained;
5th acquisition submodule, obtains described image and obtains interface according to the IDXGIOutput1 interfaces.
Optionally,
3rd acquisition submodule is additionally operable to be obtained from the IDXGIAdapter interfaces by EnumOutpts methods IDXGIOutput interfaces;
Or,
4th acquisition submodule is additionally operable to be obtained from the IDXGIOutput interfaces by QueryInterface methods Obtain IDXGIOutput1 interfaces;
Or,
5th acquisition submodule is additionally operable to by DuplicateOutput methods from the IDXGIOutput1 interfaces Obtain IDXGIOutputDuplication interfaces.
Said one or multiple technical schemes in the embodiment of the present application, at least imitates with following one or more technology Really:
A kind of method and device of screen shot that the embodiment of the present application is provided, is being applied to Windows sequence of maneuvers system When uniting such as Windows8 operating systems, the video card interface of the operating system is obtained first, then obtained by the video card interface for being obtained The crucial image acquisition interface for carrying out image acquisition;So far can start after crucial image acquisition interface is obtained into Row screenshotss are operated, and are passed through obtained image acquisition interface and are obtained the texture image of current window and replicate the texture image; Finally the texture image for being replicated is included in desktop, this allows for the embodiment of the present application and does not need extra being pre-created Off-screen surfaces or memory device environment HDC etc. go to copy desktop picture, it is to avoid due to being pre-created off-screen surfaces or interior Deposit facility environment HDC to go to copy the time-consuming operation of desktop picture and caused impact screenshotss efficiency, greatly improve screenshotss effect Rate.
Described above is only the general introduction of technical scheme, in order to better understand the technological means of the application, And can be practiced according to the content of specification, and in order to allow above and other objects, features and advantages of the application can Become apparent, below especially exemplified by the specific embodiment of the application.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present application or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are this Shens Some embodiments please, for those of ordinary skill in the art, on the premise of not paying creative work, can be with root Other accompanying drawings are obtained according to these accompanying drawings.
The method flow schematic diagram of the screen shot that Fig. 1 is provided for the embodiment of the present application;And
The method flow schematic diagram of the acquisition video card interface that Fig. 2 is provided for the embodiment of the present application;And
The method flow schematic diagram of the acquisition image acquisition interface that Fig. 3 is provided for the embodiment of the present application;And
The apparatus structure block diagram of the screen shot that Fig. 4 is provided for the embodiment of the present application.
Specific embodiment
By providing a kind of method and device of screen shot, solve in prior art is carrying out cutting the embodiment of the present application During screen operation, the low technical problem of existing screenshotss efficiency.
Technical scheme in the embodiment of the present application, general thought is as follows:
Be applied to Windows sequence of maneuvers system carry out screenshotss operate when, the Windows sequence of maneuvers system is obtained first The video card interface of system;Then the image acquisition interface for carrying out image acquisition is obtained according to the video card interface;Subsequently root The texture image that interface obtains current window is obtained according to described image;Subsequently by the video card interface, the texture is replicated Image;The texture image for being replicated finally is obtained, and the texture image is included in desktop.
Said method obtains crucial for carrying out image acquisition by the video card interface of Windows sequence of maneuvers systems Image acquisition interface, by obtaining after the image acquisition interface into screenshotss operate.Effectively evaded in prior art When carrying out screenshotss and operating, due to needing to be pre-created off-screen surfaces or memory device environment HDC goes to copy desktop picture and leads The time-consuming operation of the impact screenshotss efficiency of cause.Just because the application has effectively evaded the step so that obtaining crucial figure Screenshotss efficiency can be greatly improved after as obtaining interface into screenshotss operation.
To make the purpose, technical scheme and advantage of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In accompanying drawing, the technical scheme in the embodiment of the present application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, rather than the embodiment of whole.Based on the embodiment in the application, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of the application protection.
Embodiment one
A kind of method of screen shot that the present embodiment is provided, is applied to Windows sequence of maneuvers systems, described Windows sequence of maneuvers system includes Windows8 operating systems;Fig. 1 is referred to, methods described includes:
Step S101, obtains the video card interface of the Windows sequence of maneuvers system;
Step S102, the image acquisition interface for carrying out image acquisition is obtained according to the video card interface;
Step S103, according to described image the texture image that interface obtains current window is obtained;
Step S104, by the video card interface, replicates the texture image;
Step S105, obtains the texture image for being replicated, and the texture image is included in desktop.
Specifically, in current screenshotss function, the image of intercepting system desktop is the very low operation of an efficiency, The number of times of average one second maximum energy screenshotss can only be in 20 frames or so.It is higher that such screenshotss efficiency cannot meet requirement of real-time Screenshotss demand, can also cause the picture interim card of transmission not smooth.D3D (Direct3D9) screenshotss are such as utilized, it is to set D3D Then standby front buffer image copy copies out the image pixel in the surface in an off-screen surfaces, that is, need Call CreateOffscreenPlainSurface methods to be pre-created an off-screen surfaces, then call equipment GetFrontBufferData methods, by the front buffer image of equipment, that is, the image copy of current desktop is to above-mentioned In the off-screen surfaces of establishment, the LockRect methods of off-screen surfaces are subsequently called, its pixel internal storage is copied in internal memory, after And complete to carry out screenshotss using D3D.For another example GDI screenshotss are utilized, it is to copy to the HDC (facility environment handle) of desktop window So as to realize intercepting the function of desktop picture, that is, it is also to need to be pre-created an internal memory HDC in one internal memory HDC, then obtains The facility environment HDC of desktop is taken, is recalled and is copied the HDC of desktop window in the internal memory HDC of the above-mentioned establishment of step to, it is then complete Into using GDI screenshotss.
Find according to inventor's research, above-mentioned screenshotss method, be to need extra to be pre-created off-screen surfaces or interior Facility environment HDC etc. is deposited, then created off-screen surfaces or internal memory desktop picture to is copied by calling system function Facility environment HDC etc., and the process is a very time-consuming operating process, greatly have impact on the efficiency of screenshotss.And this Shen The video card interface of Windows sequence of maneuvers systems please be exactly based on, the crucial image for carrying out image acquisition be obtained and is obtained Interface, operates by obtaining after the image acquisition interface into screenshotss.Effectively having evaded in prior art is carrying out screenshotss behaviour When making, due to needing to be pre-created off-screen surfaces or memory device environment HDC goes to copy desktop picture and caused impact cuts The time-consuming operation of plate power efficiency.Just because the application has effectively evaded the step so that obtaining crucial image acquisition interface Afterwards screenshotss efficiency can be greatly improved into screenshotss operation.
You need to add is that, the video card interface by Windows sequence of maneuvers systems that the application is provided obtains image and obtains Interface is taken, and is in initialized good D3D10 rings into screenshotss operation etc. after crucial image acquisition interface is obtained Carry out under border.
And the method for the screen shot of the application offer, it is to be applied to Windows sequence of maneuvers systems, but to being applied The concrete version of Windows sequence of maneuvers systems do not limit to, such as the application can be applied not only to Windows8 operations System, can also be applied to more than Windows8 operating systems, such as Windows8.1 operating systems, Windows10 operating systems Deng.In the embodiment of the present application, it is applied in this way be introduced as a example by Windows8 operating systems.
Below, the method for the screen shot for providing the application with reference to Fig. 1 describes in detail:
First, execution step S101, obtains the video card interface of the Windows sequence of maneuvers system;
Specifically, by taking Windows8 operating systems as an example, then the step can be understood as obtaining and create current The video card interface step of Windows8 operating systems, and the step be premised on initialized good D3D10 environment under enter OK.Obtain the video card interface for creating the D3D10 equipment in current Windows8 operating systems.
In order to obtain the video card interface of the D3D10 equipment, in specific implementation process, Fig. 2 is referred to, can be by such as Lower sub-step is obtained:Step 101a, obtains according to the QueryIneterface methods of ID3D10Device interfaces IDXGIDevice interfaces;Step 101b, GetAdapter methods is carried out to the IDXGIDevice interfaces and obtains described The video card interface of Windows8 operating systems, namely the video card interface of D3D10 equipment;Wherein described video card interface is IDXGIAdapter interfaces.That is, can be obtained by calling the QueryInterface methods of ID3D10Device interfaces IDXGIDevice interfaces, the GetAdapter methods acquisition for then calling the IDXGIDevice interfaces creates the D3D10 equipment Video card interface IDXGIAdapter.
Here, QueryInterface methods be QueryInterface (query interface) according to known interface, lead to Cross an interface ID (GUID Global Unique Identifier globally unique identifiers) to obtain another interface In procedure.IDXGIDevice interfaces are based on DXGI (Microsoft DirectX Graphics Infrastructure) the equipment interface in framework.
Next, execution step S102, connects according to the image acquisition that the video card interface is obtained for carrying out image acquisition Mouthful;
Specifically, in the method that image acquisition interface is obtained by video card interface, obtained based on above-mentioned IDXGIAdapter interfaces, refer to Fig. 3, can by the following method obtain the image acquisition interface:Step 102a, according to institute State IDXGIAdapter interfaces and obtain IDXGIOutput interfaces;Step 102b, obtains according to the IDXGIOutput interfaces IDXGIOutput1 interfaces;Step 102c, obtains described image and obtains interface according to the IDXGIOutput1 interfaces.
And then, execution step S103, according to described image the texture image that interface obtains current window is obtained;
It should be noted that it is IDXGIOutputDuplication that in the embodiment of the present application described image obtains interface Interface.That is, being in DXGI (Microsoft DirectX in the embodiment of the present application when the texture image of current window is obtained Graphics Infrastructure) under framework, call IDXGIOutputDuplication interfaces AcquireNextFrame methods are realizing screenshotss.Certainly, those skilled in the art are it is also to be understood that pass through execution step S103 The texture image of acquired current window, can be the interface image of a certain specific application program, such as QQ chat interfaces, net Page boundary face, interface etc., or whole screen interface, the present invention does not limit to.
Here, IDXGIOutputDuplication interfaces can be understood as one to IDXGIOutput1 interfaces Copy, can be used to obtain the image of display.AcquireNextFrame methods are the present image methods for obtaining display, By calling the AcquireNextFrame methods, it is possible to achieve obtain the function of display image.
Subsequently, execution step S104, replicates the texture image;
With execution step S105 obtains the texture image for being replicated, and the texture image is included in desktop.
Specifically, just because of by DXGI (Microsoft DirectX Graphics in the embodiment of the present application The AcquireNextFrame methods of IDXGIOutputDuplication interfaces Infrastructure) realizing screenshotss, So that being got after image acquisition interface by step S103, you can carry out screenshotss operation, namely above-mentioned step S104 and S105.Also Just because of this so that the embodiment of the present application carry out screenshotss operate when and need not be pre-created off-screen surfaces or Person memory device environment HDC etc. go copy desktop picture, and it is obvious to one skilled in the art that by be pre-created from Screen surfaces or memory device environment HDC, then call function copy desktop picture to off-screen surfaces or memory device ring In the HDC of border, it is clear that be a very time-consuming operating process, greatly have impact on screenshotss efficiency.
Experimental data shows, by being pre-created off-screen surfaces, then call function copies desktop picture to off screen table Face, it is average 20 times per second when completing to carry out the process of screenshotss using D3D.By being pre-created memory device environment HDC, then Call function copies desktop picture in memory device environment HDC to, average 20 times per second when completing to carry out screenshotss using GDI.
And the application is being obtained by DuplicateOutput methods from the IDXGIOutput1 interfaces After IDXGIOutputDuplication interfaces, screenshotss operation just can be entered into, sequentially carry out step S104, S105, effectively Evade quite time-consuming screenshotss operating procedure existing when above-mentioned utilization D3D carries out screenshotss or carries out screenshotss using GDI, Also therefore screenshotss efficiency is greatly improved.Likewise, experimental data shows, the application is first by obtaining D3D10 equipment Video card interface;Then IDXGIOutput interfaces are obtained according to the video card interface;Obtain further according to the IDXGIOutput interfaces IDXGIOutput1 interfaces;Crucial IDXGIOutputDuplication is obtained further according to the IDXGIOutput1 interfaces to connect Mouthful;It is average 60 times per second when carrying out screenshotss finally according to the IDXGIOutputDuplication interfaces.Its screenshotss efficiency is remote Higher than prior art, with screenshotss it is efficient the characteristics of.
In addition, in step S105, for the texture image is shown on the table, it can be directly displayed at screen Certain region of desktop, it is also possible to be displayed in the display box that desktop screen is jumped out, display inframe is displayed in then, can also show Show in the window of a certain application opened on the table etc.;This embodiment of the present invention is not limited to.
Finally, in the embodiment of the present application, can pass through for the preparation method of IDXGIOutput interfaces EnumOutpts methods obtain IDXGIOutput interfaces from the IDXGIAdapter interfaces;For IDXGIOutput1 interfaces Preparation method, can be that IDXGIOutput1 is obtained from the IDXGIOutput interfaces by QueryInterface methods Interface;And can be by DuplicateOutput side for the preparation method of IDXGIOutputDuplication interfaces Method obtains IDXGIOutputDuplication interfaces from the IDXGIOutput1 interfaces.
Based on same inventive concept, the embodiment of the present application additionally provides the corresponding device of method in embodiment one, sees enforcement Example two.
Embodiment two
A kind of device of screen shot is present embodiments provided, Fig. 4 is refer to, it is serial that described device is applied to Windows Operating system, the Windows sequence of maneuvers system includes Windows8 operating systems;Described device includes:
Video card interface acquisition module 101, is configured to obtain the video card interface of the Windows sequence of maneuvers system;
Image acquisition interface acquisition module 102, is configured to be obtained for carrying out image acquisition according to the video card interface Image acquisition interface;
Texture image acquisition module 103, is configured to obtain the texture maps that interface obtains current window according to described image Picture;
Texture image replication module 104, is configured to the video card interface, replicates the texture image;
Texture image display module 105, is configured to obtain the texture image that replicated, and by the texture image It is displayed in desktop.
In the embodiment of the present application, it is IDXGIOutputDuplication interfaces that described image obtains interface;
The texture image acquisition module is additionally operable to:By AcquirenextFrame methods from described IDXGIOutputDuplication interfaces obtain the texture image of the current window.
In the embodiment of the present application, the video card interface acquisition module includes:
First acquisition submodule, is configured to be obtained according to the QueryIneterface methods of ID3D10Device interfaces IDXGIDevice interfaces;
Second acquisition submodule, is configured to carry out the IDXGIDevice interfaces GetAdapter methods acquisition institute State the video card interface of Windows8 operating systems;Wherein described video card interface is IDXGIAdapter interfaces.
In the embodiment of the present application, described image obtains interface acquisition module and includes:
3rd acquisition submodule, according to the IDXGIAdapter interfaces IDXGIOutput interfaces are obtained;
4th acquisition submodule, according to the IDXGIOutput interfaces IDXGIOutput1 interfaces are obtained;
5th acquisition submodule, obtains described image and obtains interface according to the IDXGIOutput1 interfaces.
In the embodiment of the present application, the 3rd acquisition submodule is additionally operable to by EnumOutpts methods from described IDXGIAdapter interfaces obtain IDXGIOutput interfaces;Or, the 4th acquisition submodule is additionally operable to pass through QueryInterface methods obtain IDXGIOutput1 interfaces from the IDXGIOutput interfaces;Or, the described 5th obtains Submodule is additionally operable to be obtained from the IDXGIOutput1 interfaces by DuplicateOutput methods IDXGIOutputDuplication interfaces.
Due to the device that the embodiment of the present invention two is introduced, adopted by the screen shot method for implementing the embodiment of the present invention one Device, so the method introduced based on the embodiment of the present invention one, the affiliated personnel in this area will appreciate that the tool of the device Body structure and deformation, so will not be described here.The device that the method for every embodiment of the present invention one is adopted belongs to this The bright scope to be protected.
The technical scheme provided in the embodiment of the present application, at least has the following technical effect that or advantage:
A kind of method and device of screen shot that the embodiment of the present application is provided, is being applied to Windows sequence of maneuvers system When uniting such as Windows8 operating systems, the video card interface of the operating system is obtained first, then obtained by the video card interface for being obtained The crucial image acquisition interface for carrying out image acquisition;So far can start after crucial image acquisition interface is obtained into Row screenshotss are operated, and are passed through obtained image acquisition interface and are obtained the texture image of current window and replicate the texture image; Finally the texture image for being replicated is included in desktop, this allows for the embodiment of the present application and does not need extra being pre-created Off-screen surfaces or memory device environment HDC etc. go to copy desktop picture, it is to avoid due to being pre-created off-screen surfaces or interior Deposit facility environment HDC to go to copy the time-consuming operation of desktop picture and caused impact screenshotss efficiency, greatly improve screenshotss effect Rate.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can be using complete hardware embodiment, complete software embodiment or with reference to the reality in terms of software and hardware Apply the form of example.And, the present invention can be adopted and wherein include the computer of computer usable program code at one or more The computer program implemented in usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) is produced The form of product.
The present invention is the flow process with reference to method according to embodiments of the present invention, equipment (system) and computer program Figure and/or block diagram are describing.It should be understood that can be by computer program instructions flowchart and/or each stream in block diagram The combination of journey and/or square frame and flow chart and/or the flow process in block diagram and/or square frame.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices The device of the function of specifying in present one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy In determining the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory is produced to be included referring to Make the manufacture of device, the command device realize in one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or The function of specifying in multiple square frames.
These computer program instructions also can be loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented process, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow process of flow chart or multiple flow processs and/or block diagram one The step of function of specifying in individual square frame or multiple square frames.
, but those skilled in the art once know basic creation although preferred embodiments of the present invention have been described Property concept, then can make other change and modification to these embodiments.So, claims are intended to be construed to include excellent Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification without deviating from this to the embodiment of the present invention The spirit and scope of bright embodiment.So, if these modifications of the embodiment of the present invention and modification belong to the claims in the present invention And its within the scope of equivalent technologies, then the present invention is also intended to comprising these changes and modification.

Claims (10)

1. a kind of method of screen shot, it is characterised in that methods described is applied to Windows sequence of maneuvers systems, described Windows sequence of maneuvers system includes Windows8 operating systems;Methods described includes:
Obtain the video card interface of the Windows sequence of maneuvers system;
The image acquisition interface for carrying out image acquisition is obtained according to the video card interface;
The texture image that interface obtains current window is obtained according to described image;
By the video card interface, the texture image is replicated;
The texture image that acquisition is replicated, and the texture image is included in desktop.
2. the method for screen shot as claimed in claim 1, it is characterised in that
It is IDXGIOutputDuplication interfaces that described image obtains interface;
The texture image for obtaining interface acquisition current window according to described image also includes:
The current window is obtained from the IDXGIOutputDuplication interfaces by AcquirenextFrame methods Texture image.
3. the method for screen shot as claimed in claim 1, it is characterised in that the acquisition Windows8 operating systems Video card interface include:
IDXGIDevice interfaces are obtained according to the QueryIneterface methods of ID3D10Device interfaces;
The video card that the GetAdapter methods acquisition Windows8 operating systems are carried out to the IDXGIDevice interfaces connects Mouthful;Wherein described video card interface is IDXGIAdapter interfaces.
4. the method for screen shot as claimed in claim 3, it is characterised in that described to be used for according to the video card interface Carrying out the image acquisition interface of image acquisition includes:
IDXGIOutput interfaces are obtained according to the IDXGIAdapter interfaces;
IDXGIOutput1 interfaces are obtained according to the IDXGIOutput interfaces;
Described image is obtained according to the IDXGIOutput1 interfaces and obtains interface.
5. the method for screen shot as claimed in claim 4, it is characterised in that also include:
IDXGIOutput interfaces are obtained from the IDXGIAdapter interfaces by EnumOutpts methods;
Or,
IDXGIOutput1 interfaces are obtained from the IDXGIOutput interfaces by QueryInterface methods;
Or,
IDXGIOutputDuplication is obtained by DuplicateOutput methods from the IDXGIOutput1 interfaces to connect Mouthful.
6. a kind of device of screen shot, it is characterised in that described device is applied to Windows sequence of maneuvers systems, described Windows sequence of maneuvers system includes Windows8 operating systems;Described device includes:
Video card interface acquisition module, is configured to obtain the video card interface of the Windows sequence of maneuvers system;
Image acquisition interface acquisition module, the image for being configured to be obtained for carrying out image acquisition according to the video card interface is obtained Take interface;
Texture image acquisition module, is configured to obtain the texture image that interface obtains current window according to described image;
Texture image replication module, is configured to the video card interface, replicates the texture image;
Texture image display module, is configured to obtain the texture image for being replicated, and the texture image is included Desktop.
7. device as claimed in claim 6, it is characterised in that
It is IDXGIOutputDuplication interfaces that described image obtains interface;
The texture image acquisition module is additionally operable to:
The current window is obtained from the IDXGIOutputDuplication interfaces by AcquirenextFrame methods Texture image.
8. device as claimed in claim 6, it is characterised in that the video card interface acquisition module includes:
First acquisition submodule, is configured to be obtained according to the QueryIneterface methods of ID3D10Device interfaces IDXGIDevice interfaces;
Second acquisition submodule, is configured to carry out the IDXGIDevice interfaces described in the acquisition of GetAdapter methods The video card interface of Windows8 operating systems;Wherein described video card interface is IDXGIAdapter interfaces.
9. the device of screen shot as claimed in claim 6, it is characterised in that described image obtains interface acquisition module bag Include:
3rd acquisition submodule, according to the IDXGIAdapter interfaces IDXGIOutput interfaces are obtained;
4th acquisition submodule, according to the IDXGIOutput interfaces IDXGIOutput1 interfaces are obtained;
5th acquisition submodule, obtains described image and obtains interface according to the IDXGIOutput1 interfaces.
10. the device of screen shot as claimed in claim 9, it is characterised in that
3rd acquisition submodule is additionally operable to be obtained from the IDXGIAdapter interfaces by EnumOutpts methods IDXGIOutput interfaces;
Or,
4th acquisition submodule is additionally operable to be obtained from the IDXGIOutput interfaces by QueryInterface methods IDXGIOutput1 interfaces;
Or,
5th acquisition submodule is additionally operable to be obtained from the IDXGIOutput1 interfaces by DuplicateOutput methods IDXGIOutputDuplication interfaces.
CN201611119490.2A 2016-12-08 2016-12-08 Screen shot method and screen shot device Pending CN106648634A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611119490.2A CN106648634A (en) 2016-12-08 2016-12-08 Screen shot method and screen shot device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611119490.2A CN106648634A (en) 2016-12-08 2016-12-08 Screen shot method and screen shot device

Publications (1)

Publication Number Publication Date
CN106648634A true CN106648634A (en) 2017-05-10

Family

ID=58818707

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611119490.2A Pending CN106648634A (en) 2016-12-08 2016-12-08 Screen shot method and screen shot device

Country Status (1)

Country Link
CN (1) CN106648634A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110012003A (en) * 2019-03-22 2019-07-12 厦门网宿有限公司 A kind of cloud application grabs screen method and apparatus
CN117237545A (en) * 2023-11-13 2023-12-15 武汉泽塔云科技股份有限公司 Method, system and storage medium for carrying out 3D stereograph based on cloud desktop environment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955688A (en) * 2016-05-04 2016-09-21 广州视睿电子科技有限公司 Play PPT (Microsoft Office PowerPoint) frame loss processing method and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955688A (en) * 2016-05-04 2016-09-21 广州视睿电子科技有限公司 Play PPT (Microsoft Office PowerPoint) frame loss processing method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MICROSOFT: "DXGI desktop duplication sample", 《HTTPS://CODE.MSDN.MICROSOFT.COM/DESKTOP-DUPLICATION-SAMPLE-DA4C696A/SOURCECODE?FILEID=42782&PATHID=2015238389》 *
张龙光: "投影系统中屏幕共享技术的应用研究", 《中国优秀硕士学士论文全文数据库信息科技辑》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110012003A (en) * 2019-03-22 2019-07-12 厦门网宿有限公司 A kind of cloud application grabs screen method and apparatus
CN110012003B (en) * 2019-03-22 2022-04-22 厦门网宿有限公司 Cloud application screen capturing method and device
CN117237545A (en) * 2023-11-13 2023-12-15 武汉泽塔云科技股份有限公司 Method, system and storage medium for carrying out 3D stereograph based on cloud desktop environment
CN117237545B (en) * 2023-11-13 2024-02-09 武汉泽塔云科技股份有限公司 Method, system and storage medium for carrying out 3D stereograph based on cloud desktop environment

Similar Documents

Publication Publication Date Title
US7342588B2 (en) Single logical screen system and method for rendering graphical data
US7102653B2 (en) Systems and methods for rendering graphical data
CN108108140B (en) Multi-screen cooperative display method, storage device and equipment supporting 3D display
US6882346B1 (en) System and method for efficiently rendering graphical data
CN101236485A (en) Multi-screen 3-D in-phase display process, device and system
US8436851B2 (en) Systems and methods for rendering three-dimensional graphics in a multi-node rendering system
CN102622979A (en) LCD (Liquid Crystal Display) controller and display control method thereof
CN105955935A (en) Text control realization method and apparatus
CN104281426A (en) Image display method and device
CN106528030B (en) A kind of combination display methods, apparatus and system
CN105844581B (en) A kind of image drawing method, device and equipment
CN109389558A (en) A kind of method and device for eliminating image border sawtooth
CN111932663A (en) Parallel drawing method based on multi-level asymmetric communication management
US6680739B1 (en) Systems and methods for compositing graphical data
CN106648634A (en) Screen shot method and screen shot device
CN106845477A (en) Area-of-interest method for building up and its device based on multiple reconstruction images
CN113269856A (en) Data parallel visualization graph rendering method and system based on distributed cloud storage
JP2005055573A (en) High-speed display processor
CN102087465B (en) Method for directly assigning and displaying true three-dimensional simulation regions
CN114428573B (en) Special effect image processing method and device, electronic equipment and storage medium
CN104317586B (en) Multi-screen renders processing method, processor, equipment and system
CN113253965B (en) Mass data multi-view-port visual interaction method, system, equipment and storage medium
US6791553B1 (en) System and method for efficiently rendering a jitter enhanced graphical image
US6870539B1 (en) Systems for compositing graphical data
CN103309444A (en) Kinect-based intelligent panoramic display method

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170510

RJ01 Rejection of invention patent application after publication