C# Class EmotionAPI_WPF_Samples.MainWindow

Interaction logic for MainWindow.xaml
Inheritance: System.Windows.Window
Mostra file Open project: Microsoft/ProjectOxford-ClientSDK

Public Methods

Method Description
DrawFaceRectangle ( Image image, BitmapImage bitmapSource, Emotion emotionResult ) : void
ListEmotionResult ( Uri imageUri, System.Windows.Controls.ListBox resultListBox, Emotion emotionResult ) : void
ListVideoEmotionResult ( System.Windows.Controls.ListBox resultListBox, VideoAggregateEvent aggregateEvent ) : void
Log ( string message ) : void
LogEmotionResult ( Emotion emotionResult ) : void
MainWindow ( ) : System

Private Methods

Method Description
CompareDisplayResults ( EmotionResultDisplay result1, EmotionResultDisplay result2 ) : int

Method Details

DrawFaceRectangle() public method

public DrawFaceRectangle ( Image image, BitmapImage bitmapSource, Emotion emotionResult ) : void
image Image
bitmapSource System.Windows.Media.Imaging.BitmapImage
emotionResult Microsoft.ProjectOxford.Emotion.Contract.Emotion
return void

ListEmotionResult() public method

public ListEmotionResult ( Uri imageUri, System.Windows.Controls.ListBox resultListBox, Emotion emotionResult ) : void
imageUri System.Uri
resultListBox System.Windows.Controls.ListBox
emotionResult Microsoft.ProjectOxford.Emotion.Contract.Emotion
return void

ListVideoEmotionResult() public method

public ListVideoEmotionResult ( System.Windows.Controls.ListBox resultListBox, VideoAggregateEvent aggregateEvent ) : void
resultListBox System.Windows.Controls.ListBox
aggregateEvent Microsoft.ProjectOxford.Emotion.Contract.VideoAggregateEvent
return void

Log() public method

public Log ( string message ) : void
message string
return void

LogEmotionResult() public method

public LogEmotionResult ( Emotion emotionResult ) : void
emotionResult Microsoft.ProjectOxford.Emotion.Contract.Emotion
return void

MainWindow() public method

public MainWindow ( ) : System
return System