C# 클래스 ScreenToGif.Legacy

Legacy
상속: System.Windows.Forms.Form
파일 보기 프로젝트 열기: dbremner/ScreenToGif

공개 메소드들

메소드 설명
InsertText ( String text ) : void

Insert text in the picture with specific font and color.

Legacy ( ) : System

The contructor of the Legacy Form.

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Clean up any resources being used.

ProcessCmdKey ( Message &msg, Keys keyData ) : bool

Process the Key events, such as pressing. This handles the keyboard shortcuts.

비공개 메소드들

메소드 설명
AddFrames ( string filename, Bitmap bitmap ) : void
AddPictures ( string fileName ) : void

Add frames to the recording.

ApplyActionToFrames ( string actionLabel, ActionEnum actionType, float pickerValue, object param = null ) : void

Apply desired option on selected frame(s)

The purpose of this function is that we can apply almost every action/option to the selected frame(s), so if you want to use it please be sure that the desired action is added to [_actionEnum] Enum.

AutoFitButtons ( ) : void

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

Blur_Click ( object sender, EventArgs e ) : void

Apply selected image to a blur filter

CallBack ( IAsyncResult r ) : void
CallBackFilter ( IAsyncResult r ) : void
CallBackStop ( IAsyncResult r ) : void
Cancel ( ) : void

Cancels the editor phase, returning to the recording.

Color_Click ( object sender, EventArgs e ) : void

Convert selected image to a color filter

CreateTemp ( ) : void

Creates the temp folder that holds all frames.

DelayUpdate ( ) : void

Updates the label that shows the delay of the current frame

DoWork ( ) : void

Thread method that encodes the list of frames.

EditFrames ( ) : void

Constructor of the Frame Edit Page.

FinishState ( ) : void

Do all the work to set the controls to the finished state. (i.e. Finished encoding)

Grayscale_Click ( object sender, EventArgs e ) : void

Apply selected image to a grayscale filter

HideWindowAndShowTrayIcon ( ) : void
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

KeyHookTarget ( object sender, KeyEventArgs e ) : void

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

Legacy_ResizeBegin ( object sender, EventArgs e ) : void
Legacy_ResizeEnd ( object sender, EventArgs e ) : void
MainForm_FormClosing ( object sender, FormClosingEventArgs e ) : void

Before close, all settings must be saved and the timer must be disposed.

MainForm_Resize ( object sender, EventArgs e ) : void

Used to update the Size values in the bottom of the window

ModifyCaptureTimer ( bool isEnabled ) : void
ModifyCaptureTimerAndChangeTrayIconVisibility ( bool isTimerAndTrayIconEnabled ) : void
MouseHookTarget ( object sender, MouseEventArgs keyEventArgs ) : void

MouseHook event method, detects the mouse clicks.

Negative_Click ( object sender, EventArgs e ) : void

Convert selected image to negative filter

NotifyIconClicked ( object sender, EventArgs eventArgs ) : void
Pixelate_Click ( object sender, EventArgs e ) : void

Apply selected image to a pixelated filter

PlayPreview ( ) : void
PreStart_Tick ( object sender, EventArgs e ) : void

Timer used after clicking in Record, to give the user a shor time to prepare recording

RecordPause ( ) : void

Method that starts or pauses the recording

ResetUndoProp ( ) : void

Reset and Undo properties

ResizeFormToImage ( ) : void

Resizes the form to hold the image

Save ( ) : void

Prepares the recorded frames to be saved/edited

SelectFrame ( int index ) : void

Select frame by its System.Int32 index.

SepiaTone_Click ( object sender, EventArgs e ) : void

Convert selected image to SepiaTone filter

ShowHideButtons ( bool isEdit ) : void

Show or hide the flowPanel buttons.

ShowWindowAndHideTrayIcon ( ) : void
Stop ( ) : void

Stops the recording or stops the pre-start timer.

StopAsync ( ) : void
StopPreview ( bool shouldSincronize = true ) : void

Stops the preview

btnCancel_Click ( object sender, EventArgs e ) : void

Ignores all the alterations and hides this page.

btnConfig_Click ( object sender, EventArgs e ) : void
btnDeleteFrame_Click ( object sender, EventArgs e ) : void
btnDone_Click ( object sender, EventArgs e ) : void

Accepts all the alterations and hides this page.

btnFilters_Click ( object sender, EventArgs e ) : void

Opens the filter context menu.

btnFreeDraw_Click ( object sender, EventArgs e ) : void
btnGifConfig_Click ( object sender, EventArgs e ) : void
btnHideListFrames_Click ( object sender, EventArgs e ) : void
btnInfo_Click ( object sender, EventArgs e ) : void
btnNext_Click ( object sender, EventArgs e ) : void
btnPrevious_Click ( object sender, EventArgs e ) : void
btnRecordPause_Click ( object sender, EventArgs e ) : void
btnReset_Click ( object sender, EventArgs e ) : void
btnShowListFrames_Click ( object sender, EventArgs e ) : void
btnStop_Click ( object sender, EventArgs e ) : void
btnUndo_Click ( object sender, EventArgs e ) : void
cbOptions_Click ( object sender, EventArgs e ) : void
con_Border_Click ( object sender, EventArgs e ) : void

Adds a border in all images. The border is painted in the image, the image don't increase in size.

con_Fullscreen_CheckedChanged ( object sender, EventArgs e ) : void
con_MakeACopy_Click ( object sender, EventArgs e ) : void
con_MoveDownwards_Click ( object sender, EventArgs e ) : void
con_MoveUpwards_Click ( object sender, EventArgs e ) : void
con_Progress_Click ( object sender, EventArgs e ) : void

Adds a progress bar.

con_RenameFrame_Click ( object sender, EventArgs e ) : void
con_Snapshot_CheckedChanged ( object sender, EventArgs e ) : void
con_Transitions_Click ( object sender, EventArgs e ) : void
con_addCaption_Click ( object sender, EventArgs e ) : void
con_addText_Click ( object sender, EventArgs e ) : void
con_captionOptions_Click ( object sender, EventArgs e ) : void
con_changeSpeed_Click ( object sender, EventArgs e ) : void
con_cropAll_Click ( object sender, EventArgs e ) : void
con_deleteAfter_Click ( object sender, EventArgs e ) : void
con_deleteBefore_Click ( object sender, EventArgs e ) : void
con_deleteSelectedFrame_Click ( object sender, EventArgs e ) : void
con_exportFrames_Click ( object sender, EventArgs e ) : void
con_flipRotate_Click ( object sender, EventArgs e ) : void
con_image_Click ( object sender, EventArgs e ) : void

Insert one image to desired position in the list.

con_resizeAllFrames_Click ( object sender, EventArgs e ) : void
con_revertOrder_Click ( object sender, EventArgs e ) : void

ListFrames Inverted

con_showGrid_CheckedChanged ( object sender, EventArgs e ) : void
con_tbCaption_KeyDown ( object sender, KeyEventArgs e ) : void
con_tbDelay_KeyDown ( object sender, KeyEventArgs e ) : void

Called when the user hits the key "Enter" while focused in the con_tbDelay text box. It closes the context menu.

con_tbDelay_TextChanged ( object sender, EventArgs e ) : void

Called after the user changes the text of the toolstrip of the delay.

con_titleImage_Click ( object sender, EventArgs e ) : void
con_yoyo_Click ( object sender, EventArgs e ) : void

Make a Yoyo with the frames (listFrames + listFramesInverted)

contextMenuTreeview_Opening ( object sender, System e ) : void
contextMenu_Opening ( object sender, System e ) : void
contextRecord_Closing ( object sender, System.Windows.Forms.ToolStripDropDownClosingEventArgs e ) : void
contextRecord_Opening ( object sender, System e ) : void
lblDelay_MouseDown ( object sender, System e ) : void

Updates the _labelClicked flag or opens the contextMenu.

lblDelay_MouseMove ( object sender, System e ) : void

Gets if the user is draging to up or down and updates the values.

lblDelay_MouseUp ( object sender, System e ) : void

Updates the flag _labelClicked to false and sets the delay value to the list.

pictureBitmap_DragDrop ( object sender, DragEventArgs e ) : void
pictureBitmap_DragEnter ( object sender, DragEventArgs e ) : void
pictureBitmap_MouseClick ( object sender, System e ) : void
processing_Disposed ( object sender, EventArgs e ) : void

Resets the state of the program, after closing the "Finished" page.

tbSize_KeyDown ( object sender, KeyEventArgs e ) : void

User press Enter, updates the form size.

tbSize_KeyPress ( object sender, KeyPressEventArgs e ) : void

Prevents keys!=numbers

tbSize_Leave ( object sender, EventArgs e ) : void

After leaving the textBox, updates the size of the form with what is typed

timerCapWithCursorFull_Tick ( object sender, EventArgs e ) : void

Takes a screenshot of th entire area and add to the list, plus add to the list the position and icon of the cursor.

timerCapWithCursor_Tick ( object sender, EventArgs e ) : void

Takes a screenshot of desired area and add to the list, plus add to the list the position and icon of the cursor.

timerCaptureFull_Tick ( object sender, EventArgs e ) : void

Takes a screenshot of the entire area and add to the list.

timerCapture_Tick ( object sender, EventArgs e ) : void

Takes a screenshot of desired area and add to the list.

timerPlayPreview_Tick ( object sender, EventArgs e ) : void
trackBar_Scroll ( object sender, EventArgs e ) : void

Stops the preview if the user scrolls the trackbar

trackBar_ValueChanged ( object sender, EventArgs e ) : void

When the user slides the trackBar, the image updates.

tvFrames_AfterCheck ( object sender, TreeViewEventArgs e ) : void
tvFrames_AfterSelect ( object sender, TreeViewEventArgs e ) : void
tvFrames_NodeMouseClick ( object sender, TreeNodeMouseClickEventArgs e ) : void

메소드 상세

Dispose() 보호된 메소드

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
리턴 void

InsertText() 공개 메소드

Insert text in the picture with specific font and color.
public InsertText ( String text ) : void
text String Content to insert
리턴 void

Legacy() 공개 메소드

The contructor of the Legacy Form.
public Legacy ( ) : System
리턴 System

ProcessCmdKey() 보호된 메소드

Process the Key events, such as pressing. This handles the keyboard shortcuts.
protected ProcessCmdKey ( Message &msg, Keys keyData ) : bool
msg System.Windows.Forms.Message A Message, passed by reference, that represents the window message to process.
keyData Keys One of the Keys values that represents the key to process.
리턴 bool