C# Class ScreenToGif.Windows.Recorder

显示文件 Open project: dbremner/ScreenToGif Class Usage Examples

Public Properties

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

Public Methods

Method Description
Recorder ( bool hideBackButton = false ) : System

Default constructor.

Private Methods

Method Description
AddFrames ( string filename, Bitmap bitmap ) : void

Saves the Bitmap to the disk.

AdjustToSize ( ) : void
AutoFitButtons ( ) : void

Changes the way that the Record and Stop buttons are shown.

ChangeTrayIconVisibility ( bool isTrayIconEnabled ) : void
Cursor_Elapsed ( object sender, EventArgs e ) : void
Discard ( ) : void
DiscardButton_Click ( object sender, RoutedEventArgs e ) : void
DiscardCallback ( IAsyncResult ar ) : void
EnableSnapshot_CanExecute ( object sender, CanExecuteRoutedEventArgs e ) : void
EnableSnapshot_Executed ( object sender, ExecutedRoutedEventArgs e ) : void
FullCursor_Elapsed ( object sender, EventArgs e ) : void
Full_Elapsed ( object sender, EventArgs e ) : void
GarbageTimer_Tick ( object sender, EventArgs e ) : void
HeightTextBox_LostFocus ( object sender, RoutedEventArgs e ) : void
HideWindowAndShowTrayIcon ( ) : void
KeyHookTarget ( object sender, CustomKeyEventArgs e ) : void

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

LightWindow_SizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void
MouseHookTarget ( object sender, CustomMouseEventArgs keyEventArgs ) : void

MouseHook event method, detects the mouse clicks.

Normal_Elapsed ( object sender, EventArgs e ) : void
NotifyIconClicked ( object sender, EventArgs eventArgs ) : void
Options_CanExecute ( object sender, CanExecuteRoutedEventArgs e ) : void
Options_Executed ( object sender, ExecutedRoutedEventArgs e ) : void
PreStart_Elapsed ( object sender, EventArgs e ) : void
RecordPause ( ) : void

Method that starts or pauses the recording

RecordPauseButton_Click ( object sender, RoutedEventArgs e ) : void
Recorder_OnLoaded ( object sender, RoutedEventArgs e ) : void
ShowWindowAndHideTrayIcon ( ) : void
SizeBox_MouseWheel ( object sender, MouseWheelEventArgs e ) : void
Snap ( ) : void
SnapButton_PreviewMouseDown ( object sender, MouseButtonEventArgs e ) : void
SnapToWindow_CanExecute ( object sender, CanExecuteRoutedEventArgs e ) : void
Stop ( ) : void

Stops the recording or the Pre-Start countdown.

StopButton_Click ( object sender, RoutedEventArgs e ) : void
System_PowerModeChanged ( object sender, PowerModeChangedEventArgs e ) : void
TextBox_KeyDown ( object sender, System.Windows.Input.KeyEventArgs e ) : void
UnregisterEvents ( ) : void
UpdateScreenDpi ( ) : void
Window_Closing ( object sender, System e ) : void
Window_LocationChanged ( object sender, EventArgs e ) : void

Method Details

Recorder() public method

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

Property Details

ExitArg public_oe property

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

ListFrames public_oe property

Lists of cursors.
public List ListFrames
return List

StageProperty public_oe static_oe property

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