C# Класс ScreenToGif.Windows.Encoder

Interaction logic for Encoder.xaml
Наследование: System.Windows.Window
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

AddItem() публичный статический Метод

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.
Результат void

Encoder() публичный Метод

Default constructor.
public Encoder ( ) : System
Результат System

Minimize() публичный статический Метод

Minimizes the Encoder window.
public static Minimize ( ) : void
Результат void

Restore() публичный статический Метод

Minimizes the Encoder window.
public static Restore ( ) : void
Результат void

SetStatus() публичный статический Метод

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.
Результат void

Start() публичный статический Метод

Shows the Encoder window.
public static Start ( double scale ) : void
scale double Screen scale.
Результат void

TryClose() публичный статический Метод

Tries to close the Window if there's no enconding active.
public static TryClose ( ) : void
Результат void

Update() публичный статический Метод

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.
Результат void

Update() публичный статический Метод

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.
Результат void