Updated lint errors
This commit is contained in:
parent
d0678ed66e
commit
c900dfeced
@ -94,7 +94,6 @@ var PDFImage = (function PDFImageClosure() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (smask) {
|
if (smask) {
|
||||||
this.smask = new PDFImage(xref, res, smask, false);
|
this.smask = new PDFImage(xref, res, smask, false);
|
||||||
} else if (mask) {
|
} else if (mask) {
|
||||||
@ -132,7 +131,7 @@ var PDFImage = (function PDFImageClosure() {
|
|||||||
if (mask && isStream(mask)) {
|
if (mask && isStream(mask)) {
|
||||||
handleImageData(handler, xref, res, mask, maskPromise);
|
handleImageData(handler, xref, res, mask, maskPromise);
|
||||||
} else if (mask) {
|
} else if (mask) {
|
||||||
TODO('handle color key masking')
|
TODO('handle color key masking');
|
||||||
maskPromise.resolve(null);
|
maskPromise.resolve(null);
|
||||||
} else {
|
} else {
|
||||||
maskPromise.resolve(null);
|
maskPromise.resolve(null);
|
||||||
@ -302,7 +301,7 @@ var PDFImage = (function PDFImageClosure() {
|
|||||||
|
|
||||||
// Need to invert values in buffer
|
// Need to invert values in buffer
|
||||||
for (var i = 0, ii = sw * sh; i < ii; ++i)
|
for (var i = 0, ii = sw * sh; i < ii; ++i)
|
||||||
buf[i] = 255 - buf[i]
|
buf[i] = 255 - buf[i];
|
||||||
|
|
||||||
if (sw != width || sh != height)
|
if (sw != width || sh != height)
|
||||||
buf = PDFImage.resize(buf, mask.bpc, 1, sw, sh, width, height);
|
buf = PDFImage.resize(buf, mask.bpc, 1, sw, sh, width, height);
|
||||||
|
Loading…
Reference in New Issue
Block a user