C# Class ScreenToGif.Windows.Encoder

Interaction logic for Encoder.xaml
Inheritance: System.Windows.Window
Mostrar archivo Open project: dbremner/ScreenToGif Class Usage Examples

Public Methods

Method Description
AddItem ( List listFrames, string fileName, double scale ) : void

Add one list of frames to the encoding batch.

Encoder ( ) : System

Default constructor.

Minimize ( ) : void

Minimizes the Encoder window.

Restore ( ) : void

Minimizes the Encoder window.

SetStatus ( Status status, int id, string fileName = null ) : void

Sets the Status of the encoding of a current item.

Start ( double scale ) : void

Shows the Encoder window.

TryClose ( ) : void

Tries to close the Window if there's no enconding active.

Update ( int id, int currentFrame ) : void

Updates a specific item of the list.

Update ( int id, int currentFrame, string status ) : void

Updates a specific item of the list.

Private Methods

Method Description
ClearAllButton_Click ( object sender, RoutedEventArgs e ) : void
Encode ( List listFrames, int id, string fileName, System.Export type, CancellationTokenSource tokenSource ) : void
EncoderItem_CloseButtonClickedEvent ( object sender ) : void
EncoderItem_LabelLinkClickedEvent ( object name ) : void
GetScreen ( Window window ) : System.Windows.Forms.Screen
InternalAddItem ( List listFrames, string fileName, System.Export type ) : void
InternalSetStatus ( Status status, int id, string fileName ) : void
InternalUpdate ( int id, int currentFrame ) : void
InternalUpdate ( int id, int currentFrame, string status ) : void
Window_Activated ( object sender, EventArgs e ) : void
Window_Closing ( object sender, System e ) : void

Method Details

AddItem() public static method

Add one list of frames to the encoding batch.
public static AddItem ( List listFrames, string fileName, double scale ) : void
listFrames List The list of frames to be encoded.
fileName string Final filename.
scale double Screen scale.
return void

Encoder() public method

Default constructor.
public Encoder ( ) : System
return System

Minimize() public static method

Minimizes the Encoder window.
public static Minimize ( ) : void
return void

Restore() public static method

Minimizes the Encoder window.
public static Restore ( ) : void
return void

SetStatus() public static method

Sets the Status of the encoding of a current item.
public static SetStatus ( Status status, int id, string fileName = null ) : void
status Status The current status.
id int The unique ID of the item.
fileName string The name of the output file.
return void

Start() public static method

Shows the Encoder window.
public static Start ( double scale ) : void
scale double Screen scale.
return void

TryClose() public static method

Tries to close the Window if there's no enconding active.
public static TryClose ( ) : void
return void

Update() public static method

Updates a specific item of the list.
public static Update ( int id, int currentFrame ) : void
id int The unique ID of the item.
currentFrame int The current frame being processed.
return void

Update() public static method

Updates a specific item of the list.
public static Update ( int id, int currentFrame, string status ) : void
id int The unique ID of the item.
currentFrame int The current frame being processed.
status string Status description.
return void