Update the mask data inversion in PDFImage.createMask to be compatible with both Uint8Array and Uint8ClampedArray

This commit is contained in:
Jonas Jenwald 2017-08-16 13:21:33 +02:00
parent ba5dbc9632
commit 74ad90cb8f

View File

@ -253,7 +253,7 @@ var PDFImage = (function PDFImageClosure() {
// in this thread can be relying on its contents.
if (inverseDecode) {
for (i = 0; i < actualLength; i++) {
data[i] = ~data[i];
data[i] ^= 0xFF;
}
}