ImageValueEditor; slice window; fixed bug in resample

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@97 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-11-26 23:23:51 +00:00
parent e2701a646f
commit f344b8a1db
8 changed files with 902 additions and 19 deletions
+2 -2
View File
@@ -93,8 +93,8 @@ void resample_pass(const Image& img_in, Image& img_out, int offset_in, int offse
if (out_rem > 0) {
// eat a partial input pixel
totR += in[0] * out_rem;
totR += in[1] * out_rem;
totR += in[2] * out_rem;
totG += in[1] * out_rem;
totB += in[2] * out_rem;
in_rem -= out_rem;
}
// store