SIGN IN SIGN UP
mozilla / pdf.js UNCLAIMED

PDF Reader in JavaScript

0 0 64 JavaScript

Avoid pattern creation with some basic gradients

Some gradients are represented as patterns in PDF.js, because they
mustn't be affected by the current transform. But in most of the cases,
the gradient is attached to the origin and the current transform is very
basic (dilatation + orthogonal + translation). In those cases, we can
avoid creating the pattern because the gradient is transformed into
another gradient when the inverse transform is applied.
C
calixteman committed
4ff582acbec780a3639f19e78fa8ff2293179073
Parent: 9f4db38