Change CaptureWidth/CaptureHeight in .Net 4 - Working!

May 4, 2014 at 2:16 AM
Edited May 4, 2014 at 5:00 PM
Hello All,

First off I am NOT a C# guy. VB is my gig and I had to do some research before I attempted this. However I found this little gem and I wasn't going to let it go unresolved. Here's the procedure.

My project Target Framework is 4:

1) I imported the project into VS 2010.
2) Set the Target Framework to 4.
3) Using the error tab I located all the errors and with the help of the IntellIsense I was able to correct the errors.
4) I compiled each project in the solution from the last project in the list to the first.

Worked great but the user could not change the CaptureWidth/CaptureHeight. The problem is the declaration CaptureWidth/CaptureHeight is set to private:
public int CaptureWidth { get; private set; }
Here's what I did:

Camera.cs

region Public Interface

Line 52 with all other regions collapsed. Your line numbers may vary.

Change From:
public int CaptureWidth { get; private set; }
To:
public int CaptureWidth { get; set; }
Camera.cs

region Public Interface

Line 57

Change From:
public int CaptureHeight { get; private set; }
To:
public int CaptureHeight { get; set; }
The last step is to build touchlesslib.
I hope I'm not to late and this helps a few of you. Your comments are welcomed.

Doug