C# Class ScreenToGif.Windows.Webcam

Interaction logic for Webcam.xaml
Show file Open project: dbremner/ScreenToGif Class Usage Examples

Public Properties

Property Type Description
ExitArg ExitAction
ListFrames List
StageProperty System.Windows.DependencyProperty

Public Methods

Method Description
Webcam ( bool hideBackButton = false ) : System

Default constructor.

Private Methods

Method Description
AddFrames ( string filename, Bitmap bitmap ) : void
AddRenderFrames ( string filename, System.Windows.Media.Imaging.RenderTargetBitmap bitmap ) : void
BackButton_OnClick ( object sender, RoutedEventArgs e ) : void
CallBack ( IAsyncResult r ) : void
CheckVideoDevices_Executed ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
Discard ( ) : void
DiscardButton_Click ( object sender, RoutedEventArgs e ) : void
DiscardCallback ( IAsyncResult ar ) : void
KeyHookTarget ( object sender, CustomKeyEventArgs e ) : void

KeyHook event method. This fires when the user press a key.

LoadCallBack ( IAsyncResult r ) : void
LoadVideoDevices ( ) : List

Loads the list of video devices.

Normal_Elapsed ( object sender, EventArgs e ) : void
NotRecording_CanExecute ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
Options_Executed ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
RecordPauseButton_Click ( object sender, RoutedEventArgs e ) : void
Stop_CanExecute ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void
Stop_Executed ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void
System_PowerModeChanged ( object sender, PowerModeChangedEventArgs e ) : void
VideoDevicesComboBox_SelectionChanged ( object sender, System.Windows.Controls.SelectionChangedEventArgs e ) : void
Window_Closing ( object sender, System e ) : void
Window_Loaded ( object sender, RoutedEventArgs e ) : void

Method Details

Webcam() public method

Default constructor.
public Webcam ( bool hideBackButton = false ) : System
hideBackButton bool
return System

Property Details

ExitArg public property

The action to be executed after closing this Window.
public ExitAction ExitArg
return ExitAction

ListFrames public property

Lists of cursors.
public List ListFrames
return List

StageProperty public static property

public static DependencyProperty,System.Windows StageProperty
return System.Windows.DependencyProperty