C# Class ImgProc.ImageProcessor

Exibir arquivo Open project: EFanZh/EFanZh

Public Methods

Method Description
ImageProcessor ( ) : System
ProcessAsync ( string>.KeyValuePair task, IEnumerable processingPlugins, IOutputPlugin outputPlugin, object userState ) : void

异步处理图像。

ProcessAsyncCancel ( object userState ) : void

取消异步处理。

Protected Methods

Method Description
OnProcessCompleted ( AsyncCompletedEventArgs e ) : void

引发 ProcessCompleted 事件。

OnProcessProgressChanged ( ProgressChangedEventArgs e ) : void

引发 ProcessProgressChanged 事件。

Private Methods

Method Description
IsTaskCancelled ( object userState ) : bool
ProcessAsyncCompleted ( object arg ) : void

异步引发 ProcessCompleted 事件。

ProcessAsyncProgressChanged ( object arg ) : void

异步引发 ProcessProgressChanged 事件。

ProcessWorker ( string>.KeyValuePair task, IEnumerable processingPlugins, IOutputPlugin outputPlugin, AsyncOperation asyncOp ) : void

异步工作线程。

getBitmapCompleted ( object sender, GetBitmapCompletedEventArgs e ) : void
processingPlugin_ProcessProgressChanged ( object sender, ProgressChangedEventArgs e ) : void

Method Details

ImageProcessor() public method

public ImageProcessor ( ) : System
return System

OnProcessCompleted() protected method

引发 ProcessCompleted 事件。
protected OnProcessCompleted ( AsyncCompletedEventArgs e ) : void
e System.ComponentModel.AsyncCompletedEventArgs 为 ProcessCompleted 事件提供数据。
return void

OnProcessProgressChanged() protected method

引发 ProcessProgressChanged 事件。
protected OnProcessProgressChanged ( ProgressChangedEventArgs e ) : void
e System.ComponentModel.ProgressChangedEventArgs 为 ProcessProgressChanged 事件提供数据。
return void

ProcessAsync() public method

异步处理图像。
public ProcessAsync ( string>.KeyValuePair task, IEnumerable processingPlugins, IOutputPlugin outputPlugin, object userState ) : void
task string>.KeyValuePair
processingPlugins IEnumerable
outputPlugin IOutputPlugin
userState object 用户状态
return void

ProcessAsyncCancel() public method

取消异步处理。
public ProcessAsyncCancel ( object userState ) : void
userState object 用户状态
return void