mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Implemented sharpening for image slicer
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@241 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -54,11 +54,11 @@ Image ImageSlice::getSlice() const {
|
||||
return source;
|
||||
}
|
||||
Image target(target_size.GetWidth(), target_size.GetHeight(), false);
|
||||
// if (sharpen && sharpen_amount > 0) {
|
||||
// sharp_resample_and_clip(source, target, selection, sharpen_amount);
|
||||
// } else {
|
||||
if (sharpen && sharpen_amount > 0 && sharpen_amount <= 100) {
|
||||
sharp_resample_and_clip(source, target, selection, sharpen_amount);
|
||||
} else {
|
||||
resample_and_clip(source, target, selection);
|
||||
// }
|
||||
}
|
||||
return target;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user