Update the mask data inversion in PDFImage.createMask
to be compatible with both Uint8Array
and Uint8ClampedArray
This commit is contained in:
parent
ba5dbc9632
commit
74ad90cb8f
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user