This commit is contained in:
sbarman 2011-07-07 11:21:41 -07:00
parent 54ae4fc6cb
commit 6ae81e1f8c

7
pdf.js
View File

@ -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) {