Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added resolution preferences option #12

Merged
merged 2 commits into from
Apr 17, 2024
Merged

Added resolution preferences option #12

merged 2 commits into from
Apr 17, 2024

Conversation

galadril
Copy link
Owner

Here are the changes in detail:

  1. A new button btnConfig has been added to the frmCaptureWolf form in frmCaptureWolf.Designer.cs. This button is used to open the settings form.

  2. A new method LoadPreferences has been added to frmCaptureWolf.cs. This method is responsible for loading the resolution settings from the application settings.

  3. A new method btnConfig_Click has been added to frmCaptureWolf.cs. This method is triggered when the btnConfig button is clicked, opening the settings form.

  4. A new property FrameSize has been added to Handler.cs. This property is used to set the frame size of the webcam.

  5. The WebCam class has been modified to accept a FrameSize parameter in the constructor. This parameter is used to set the frame size of the webcam.

  6. A new method GetAvailableResolutions has been added to WebCam.cs. This method returns the available resolutions of the webcam.

  7. A new form frmSettings has been added. This form is used to change the resolution settings of the application.

  8. A new application setting Resolution has been added to App.config, Settings.Designer.cs, and Settings.settings. This setting is used to store the selected resolution of the webcam.

  9. The CaptureWolf.UI.csproj file has been updated to include the new files and settings.

…nConfig` to the `frmCaptureWolf` form, the creation of a new form `frmSettings`, and the introduction of a new application setting `Resolution`. These changes are designed to allow users to open a settings form and change the resolution settings of the application. Additionally, new methods and properties have been added to handle these changes, including loading the resolution settings, opening the settings form, and setting the frame size of the webcam.

Here are the changes in detail:

1. A new button `btnConfig` has been added to the `frmCaptureWolf` form in `frmCaptureWolf.Designer.cs`. This button is used to open the settings form.

2. A new method `LoadPreferences` has been added to `frmCaptureWolf.cs`. This method is responsible for loading the resolution settings from the application settings.

3. A new method `btnConfig_Click` has been added to `frmCaptureWolf.cs`. This method is triggered when the `btnConfig` button is clicked, opening the settings form.

4. A new property `FrameSize` has been added to `Handler.cs`. This property is used to set the frame size of the webcam.

5. The `WebCam` class has been modified to accept a `FrameSize` parameter in the constructor. This parameter is used to set the frame size of the webcam.

6. A new method `GetAvailableResolutions` has been added to `WebCam.cs`. This method returns the available resolutions of the webcam.

7. A new form `frmSettings` has been added. This form is used to change the resolution settings of the application.

8. A new application setting `Resolution` has been added to `App.config`, `Settings.Designer.cs`, and `Settings.settings`. This setting is used to store the selected resolution of the webcam.

9. The `CaptureWolf.UI.csproj` file has been updated to include the new files and settings.
@galadril galadril merged commit 90b5b35 into main Apr 17, 2024
1 check passed
@galadril galadril deleted the feature/preferences branch April 17, 2024 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant