mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
cleanup
This commit is contained in:
parent
54ae4fc6cb
commit
6ae81e1f8c
1 changed files with 3 additions and 4 deletions
7
pdf.js
7
pdf.js
|
@ -4708,15 +4708,14 @@ var IndexedCS = (function() {
|
|||
|
||||
constructor.prototype = {
|
||||
getRgb: function graycs_getRgb(color) {
|
||||
var lookup = this.lookup;
|
||||
var base = this.base;
|
||||
var numComps = base.numComps;
|
||||
|
||||
var c = [];
|
||||
var start = color[0] * numComps;
|
||||
var c = [];
|
||||
|
||||
for (var i = start, ii = start + numComps; i < ii; ++i)
|
||||
c.push(lookup[i]);
|
||||
c.push(this.lookup[i]);
|
||||
|
||||
return this.base.getRgb(c);
|
||||
},
|
||||
getRgbBuffer: function graycs_getRgbBuffer(input) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue