C# Class Protogame.ThreadedColorInImageDetection

An implementation of IColorInImageDetection that uses a background thread for performing analysis.
Inheritance: IColorInImageDetection
ファイルを表示 Open project: RedpointGames/Protogame

Public Methods

Method Description
Dispose ( ) : void
GetNameForColor ( ISelectedColorHandle handle ) : string
GetSensitivityForColor ( ISelectedColorHandle handle ) : float
GetTotalDetectedForColor ( ISelectedColorHandle handle ) : int
GetUnlockedResultsForColor ( ISelectedColorHandle handle ) : ].int[
GetValueForColor ( ISelectedColorHandle handle ) : Color
RegisterColorForAnalysis ( Color color, string name ) : ISelectedColorHandle
Start ( ) : void
ThreadedColorInImageDetection ( IImageSource source ) : System

Private Methods

Method Description
ProcessorThread ( ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

GetNameForColor() public method

public GetNameForColor ( ISelectedColorHandle handle ) : string
handle ISelectedColorHandle
return string

GetSensitivityForColor() public method

public GetSensitivityForColor ( ISelectedColorHandle handle ) : float
handle ISelectedColorHandle
return float

GetTotalDetectedForColor() public method

public GetTotalDetectedForColor ( ISelectedColorHandle handle ) : int
handle ISelectedColorHandle
return int

GetUnlockedResultsForColor() public method

public GetUnlockedResultsForColor ( ISelectedColorHandle handle ) : ].int[
handle ISelectedColorHandle
return ].int[

GetValueForColor() public method

public GetValueForColor ( ISelectedColorHandle handle ) : Color
handle ISelectedColorHandle
return Color

RegisterColorForAnalysis() public method

public RegisterColorForAnalysis ( Color color, string name ) : ISelectedColorHandle
color Color
name string
return ISelectedColorHandle

Start() public method

public Start ( ) : void
return void

ThreadedColorInImageDetection() public method

public ThreadedColorInImageDetection ( IImageSource source ) : System
source IImageSource
return System