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.
hi @Akevlam,
here is the code for recording a custom area of the screen.
this is just what i got working and you might want to refactor the code so that it gels better with the rest of your plugin.
ive added a couple methods in
iVidCapProVideo.cs
SetCaptureRect
SetCaptureRectWithNormalisedScreenCoordinates
ive also removed
SetCaptureViewport
function as it now seemed redundant.i wanted to have the entry point functions for changing the capture rect inside
iVidCapPro.cs
but that would require refactoring the begin record function to accept a rect, rather then just width and height of the video. so thought that you'll probably have a better idea of how the API for the plugin should work...
let me know if you have any questions about the changes in the PR.