C# Class ScreenToGif.Windows.Encoder

Interaction logic for Encoder.xaml
Inheritance: System.Windows.Window
Afficher le fichier Open project: dbremner/ScreenToGif Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat void

Encoder() public méthode

Default constructor.
public Encoder ( ) : System
Résultat System

Minimize() public static méthode

Minimizes the Encoder window.
public static Minimize ( ) : void
Résultat void

Restore() public static méthode

Minimizes the Encoder window.
public static Restore ( ) : void
Résultat void

SetStatus() public static méthode

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.
Résultat void

Start() public static méthode

Shows the Encoder window.
public static Start ( double scale ) : void
scale double Screen scale.
Résultat void

TryClose() public static méthode

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

Update() public static méthode

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.
Résultat void

Update() public static méthode

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.
Résultat void