Added resolution preferences option #12
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Here are the changes in detail:
A new button
btnConfig
has been added to thefrmCaptureWolf
form infrmCaptureWolf.Designer.cs
. This button is used to open the settings form.A new method
LoadPreferences
has been added tofrmCaptureWolf.cs
. This method is responsible for loading the resolution settings from the application settings.A new method
btnConfig_Click
has been added tofrmCaptureWolf.cs
. This method is triggered when thebtnConfig
button is clicked, opening the settings form.A new property
FrameSize
has been added toHandler.cs
. This property is used to set the frame size of the webcam.The
WebCam
class has been modified to accept aFrameSize
parameter in the constructor. This parameter is used to set the frame size of the webcam.A new method
GetAvailableResolutions
has been added toWebCam.cs
. This method returns the available resolutions of the webcam.A new form
frmSettings
has been added. This form is used to change the resolution settings of the application.A new application setting
Resolution
has been added toApp.config
,Settings.Designer.cs
, andSettings.settings
. This setting is used to store the selected resolution of the webcam.The
CaptureWolf.UI.csproj
file has been updated to include the new files and settings.