cleanup
This commit is contained in:
parent
54ae4fc6cb
commit
6ae81e1f8c
7
pdf.js
7
pdf.js
@ -4708,15 +4708,14 @@ var IndexedCS = (function() {
|
|||||||
|
|
||||||
constructor.prototype = {
|
constructor.prototype = {
|
||||||
getRgb: function graycs_getRgb(color) {
|
getRgb: function graycs_getRgb(color) {
|
||||||
var lookup = this.lookup;
|
|
||||||
var base = this.base;
|
|
||||||
var numComps = base.numComps;
|
var numComps = base.numComps;
|
||||||
|
|
||||||
var c = [];
|
|
||||||
var start = color[0] * numComps;
|
var start = color[0] * numComps;
|
||||||
|
var c = [];
|
||||||
|
|
||||||
for (var i = start, ii = start + numComps; i < ii; ++i)
|
for (var i = start, ii = start + numComps; i < ii; ++i)
|
||||||
c.push(lookup[i]);
|
c.push(this.lookup[i]);
|
||||||
|
|
||||||
return this.base.getRgb(c);
|
return this.base.getRgb(c);
|
||||||
},
|
},
|
||||||
getRgbBuffer: function graycs_getRgbBuffer(input) {
|
getRgbBuffer: function graycs_getRgbBuffer(input) {
|
||||||
|
Loading…
Reference in New Issue
Block a user