mirror of
https://github.com/danbulant/pngjs
synced 2026-07-07 04:00:39 +00:00
Fix filter none. Fixes #92
This commit is contained in:
parent
f947e3fcfb
commit
32d0580228
1 changed files with 4 additions and 1 deletions
|
|
@ -3,7 +3,10 @@
|
||||||
var paethPredictor = require('./paeth-predictor');
|
var paethPredictor = require('./paeth-predictor');
|
||||||
|
|
||||||
function filterNone(pxData, pxPos, byteWidth, rawData, rawPos) {
|
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) {
|
function filterSumNone(pxData, pxPos, byteWidth) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue