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:
twanvl
2007-03-29 14:45:59 +00:00
parent 0f48513684
commit 30b38d6fab
3 changed files with 70 additions and 4 deletions
+4 -4
View File
@@ -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;
}