C# Class Detector.Motion.Form1

Show file Open project: AshleighAdams/Detector

Public Methods

Method Description
Form1 ( ) : System
Scale ( double value, double min1, double max1, double min2, double max2 ) : double

Scale a value between one set and the other

SetServoPos ( int Yaw, int Pitch ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
Form1_Load ( object senderr, EventArgs ee ) : void
GetFile ( ObjectTracked obj ) : string
GetImage ( Bitmap &frame, ObjectTracked obj ) : Bitmap
InitializeComponent ( ) : void

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

SaveBMP ( Bitmap bmp, string path ) : void
SaveImageThread ( AnimationHandeler hand, bool removeAndReturn ) : void
btnCalLoad_Click ( object sender, EventArgs e ) : void
btnShowPorts_Click ( object sender, EventArgs e ) : void
cbOn_CheckedChanged ( object sender, EventArgs e ) : void
pbCurrent_Click ( object sender, EventArgs e ) : void
pbCurrent_MouseMove ( object sender, MouseEventArgs e ) : void
pbIgnoreMotion_MouseDoubleClick ( object sender, MouseEventArgs e ) : void
pbIgnoreMotion_MouseDown ( object sender, MouseEventArgs e ) : void
pbIgnoreMotion_MouseUp ( object sender, MouseEventArgs e ) : void
tabPage2_Click ( object sender, EventArgs e ) : void
tbDifference_Scroll ( object sender, EventArgs e ) : void
tbDifference_Validating ( object sender, CancelEventArgs e ) : void
tbMaxY_Scroll ( object sender, EventArgs e ) : void
tbMinX_Scroll ( object sender, EventArgs e ) : void
tbMinY_Scroll ( object sender, EventArgs e ) : void
tbSpeed_Validating ( object sender, CancelEventArgs e ) : void
tmrCheckMotion_Tick ( object sender, EventArgs e ) : void
trackBar4_Scroll ( object sender, EventArgs e ) : void

Method Details

Dispose() protected method

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

Form1() public method

public Form1 ( ) : System
return System

Scale() public method

Scale a value between one set and the other
public Scale ( double value, double min1, double max1, double min2, double max2 ) : double
value double The value you want to scale
min1 double This is its minimum value
max1 double This is its maximum value
min2 double The minimum you want
max2 double The maximum you want
return double

SetServoPos() public method

public SetServoPos ( int Yaw, int Pitch ) : void
Yaw int
Pitch int
return void