Added rendering fix from beyonddeath

git-svn-id: https://zxing.googlecode.com/svn/trunk@1199 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2010-02-05 13:49:21 +00:00
parent a206b17859
commit 8a978c9b5c

View file

@ -126,10 +126,17 @@ namespace com.google.zxing.qrcode
// 3. Write the white lines at the bottom
int offset2 = topPadding + (inputHeight * multiple);
for (int y = offset2; y < outputHeight; y++)
{
for (int y = offset2; y < outputHeight; y++) {
setRowColor(outputArray[y], unchecked((sbyte) 255));
}
// Added per beyonddeath
for (int x = 0; x < outputHeight; x++) {
for (int y = 0; y < outputWidth; y++) {
output.set(y, x, outputArray[x][y]);
}
}
return output;
}
@ -140,4 +147,4 @@ namespace com.google.zxing.qrcode
}
}
}
}