C# Class ScreenshotInject.BaseDXHook

Inheritance: IDXHook
显示文件 Open project: stani/GScreensTool

Protected Properties

Property Type Description
bitmap Bitmap

Public Methods

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

Protected Methods

Method Description
CheckAuto ( ) : void
CopyStream ( Stream input, Stream output ) : void
DebugMessage ( string message ) : void
DrawOverlay ( Object dev ) : void
DrawText ( Object device, String text, String text2 = null, int alpha ) : void
GetImageFormat ( String format ) : ImageFormat
GetVTblAddresses ( IntPtr pointer, int numberOfMethods ) : System.IntPtr[]
PrepareFile ( String fileName ) : string
ReadFullStream ( Stream stream ) : byte[]

Reads data from a stream until the end is reached. The data is returned as a byte array. An IOException is thrown if any of the underlying IO calls fail.

SaveFile ( ) : void
SendResponse ( Stream stream, System.Guid requestId ) : void
SendResponse ( byte bitmapData, System.Guid requestId ) : void
UpdateFPS ( ) : int

Private Methods

Method Description
CopyMemory ( IntPtr Destination, IntPtr Source, uint Length ) : void
SaveFileInt ( object param ) : void

Method Details

BaseDXHook() public method

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

CheckAuto() protected method

protected CheckAuto ( ) : void
return void

Cleanup() public abstract method

public abstract Cleanup ( ) : void
return void

CopyStream() protected static method

protected static CopyStream ( Stream input, Stream output ) : void
input Stream
output Stream
return void

DebugMessage() protected method

protected DebugMessage ( string message ) : void
message string
return void

DrawOverlay() protected method

protected DrawOverlay ( Object dev ) : void
dev Object
return void

DrawText() protected method

protected DrawText ( Object device, String text, String text2 = null, int alpha ) : void
device Object
text String
text2 String
alpha int
return void

GetImageFormat() protected method

protected GetImageFormat ( String format ) : ImageFormat
format String
return ImageFormat

GetVTblAddresses() protected method

protected GetVTblAddresses ( IntPtr pointer, int numberOfMethods ) : System.IntPtr[]
pointer System.IntPtr
numberOfMethods int
return System.IntPtr[]

Hook() public abstract method

public abstract Hook ( ) : void
return void

PrepareFile() protected method

protected PrepareFile ( String fileName ) : string
fileName String
return string

ReadFullStream() protected static method

Reads data from a stream until the end is reached. The data is returned as a byte array. An IOException is thrown if any of the underlying IO calls fail.
protected static ReadFullStream ( Stream stream ) : byte[]
stream Stream The stream to read data from
return byte[]

SaveFile() protected method

protected SaveFile ( ) : void
return void

SendResponse() protected method

protected SendResponse ( Stream stream, System.Guid requestId ) : void
stream Stream
requestId System.Guid
return void

SendResponse() protected method

protected SendResponse ( byte bitmapData, System.Guid requestId ) : void
bitmapData byte
requestId System.Guid
return void

UpdateFPS() protected method

protected UpdateFPS ( ) : int
return int

Property Details

bitmap protected_oe property

protected Bitmap bitmap
return Bitmap