C# Class ScreenshotInject.DXHookD3D10

Direct3D 10 Hook - this hooks the SwapChain.Present method to capture images
Inheritance: BaseDXHook
ファイルを表示 Open project: stani/GScreensTool

Public Methods

Method Description
Cleanup ( ) : void
DXHookD3D10 ( ScreenshotInterface ssInterface ) : System
Hook ( ) : void

Private Methods

Method Description
DrawText ( Font font, System.Vector2 pos, string text, SlimDX.Color4 color ) : void
GetImageFileFormat ( String format ) : ImageFileFormat
PresentHook ( IntPtr swapChainPtr, int syncInterval, SlimDX flags ) : int

Our present hook that will grab a copy of the backbuffer when requested. Note: this supports multi-sampling (anti-aliasing)

ResizeTargetHook ( IntPtr swapChainPtr, DXGI &newTargetParameters ) : int

Hooked to allow resizing a texture/surface that is reused. Currently not in use as we create the texture for each request to support different sizes each time (as we use DirectX to copy only the region we are after rather than the entire backbuffer)

Method Details

Cleanup() public method

public Cleanup ( ) : void
return void

DXHookD3D10() public method

public DXHookD3D10 ( ScreenshotInterface ssInterface ) : System
ssInterface ScreenshotInterface
return System

Hook() public method

public Hook ( ) : void
return void