Fix filter none. Fixes #92

This commit is contained in:
Luke Page 2018-02-16 10:03:37 +01:00
parent f947e3fcfb
commit 32d0580228

View file

@ -3,7 +3,10 @@
var paethPredictor = require('./paeth-predictor');
function filterNone(pxData, pxPos, byteWidth, rawData, rawPos) {
pxData.copy(rawData, rawPos, pxPos, pxPos + byteWidth);
for (var x = 0; x < byteWidth; x++) {
rawData[rawPos + x] = pxData[pxPos + x];
}
}
function filterSumNone(pxData, pxPos, byteWidth) {