mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-14 13:18:36 -05:00
Create cropped screenshot depending on selected area
This commit is contained in:
@@ -582,6 +582,13 @@ void MacroConditionVideoEdit::ImageBrowseButtonClicked()
|
||||
"AdvSceneSwitcher.condition.video.screenshotFail"));
|
||||
return;
|
||||
}
|
||||
if (_entryData->_checkAreaEnable) {
|
||||
screenshot.image = screenshot.image.copy(
|
||||
_entryData->_checkArea.x,
|
||||
_entryData->_checkArea.y,
|
||||
_entryData->_checkArea.width,
|
||||
_entryData->_checkArea.height);
|
||||
}
|
||||
screenshot.image.save(path);
|
||||
}
|
||||
_imagePath->SetPath(path);
|
||||
|
||||
Reference in New Issue
Block a user