using tmpCtx instead of ctx
This commit is contained in:
parent
dacd239ed2
commit
824d6e4e71
2
pdf.js
2
pdf.js
@ -5115,7 +5115,7 @@ var CanvasGraphics = (function() {
|
|||||||
if (imageObj.imageMask) {
|
if (imageObj.imageMask) {
|
||||||
var fillColor = this.current.fillColor;
|
var fillColor = this.current.fillColor;
|
||||||
tmpCtx.fillStyle = (fillColor && fillColor.type === 'Pattern') ?
|
tmpCtx.fillStyle = (fillColor && fillColor.type === 'Pattern') ?
|
||||||
fillColor.getPattern(ctx) : fillColor;
|
fillColor.getPattern(tmpCtx) : fillColor;
|
||||||
tmpCtx.fillRect(0, 0, w, h);
|
tmpCtx.fillRect(0, 0, w, h);
|
||||||
}
|
}
|
||||||
var imgData = tmpCtx.getImageData(0, 0, w, h);
|
var imgData = tmpCtx.getImageData(0, 0, w, h);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user