mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue