mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-28 23:28:16 +02:00
clean up
This commit is contained in:
parent
8bf3a9d1b7
commit
8a812e2ec9
1 changed files with 1 additions and 2 deletions
3
pdf.js
3
pdf.js
|
@ -4535,7 +4535,6 @@ var PDFImage = (function() {
|
||||||
// rows start at byte boundary;
|
// rows start at byte boundary;
|
||||||
var rowBytes = (width * numComps * bpc + 7) >> 3;
|
var rowBytes = (width * numComps * bpc + 7) >> 3;
|
||||||
var imgArray = this.image.getBytes(height * rowBytes);
|
var imgArray = this.image.getBytes(height * rowBytes);
|
||||||
var imgPos = 0;
|
|
||||||
|
|
||||||
var comps = this.getComponents(imgArray);
|
var comps = this.getComponents(imgArray);
|
||||||
var compsPos = 0;
|
var compsPos = 0;
|
||||||
|
@ -4565,7 +4564,7 @@ var PDFImage = (function() {
|
||||||
TODO("Images with "+ numComps + " components per pixel");
|
TODO("Images with "+ numComps + " components per pixel");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fillGrayBuffer: function fillGrayScaleBuffer(buffer) {
|
fillGrayBuffer: function fillGrayBuffer(buffer) {
|
||||||
var numComps = this.numComps;
|
var numComps = this.numComps;
|
||||||
if (numComps != 1)
|
if (numComps != 1)
|
||||||
error("Reading gray scale from a color image");
|
error("Reading gray scale from a color image");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue