[Poppler-bugs] [Bug 105905] Blank page when tiling pattern's cell is too far
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Aug 7 14:37:09 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=105905
--- Comment #6 from Marek Kasik <mkasik at redhat.com> ---
Hi,
I'm sorry for late answer.
(In reply to Jason Crain from comment #5)
> I'm not sure if I understand how this works. Can you tell me if I've got
> this right?
I think that you've got this right :).
> You're transforming the translation components of pmat by pmat^(-1) to find
> how far that point is in the pattern's coordinate system. You set xoffset
> and yoffset to the number of repetitions of the pattern that are required to
> get there. Then shift pattern_matrix over by that amount?
Yes, I have to shift the pattern_matrix so that when it is applied to the cairo
context in "cairo_transform (cairo, &pattern_matrix)" we get closer to (0,0).
Otherwise, cairo tries to allocate huge bitmap for the pattern.
I've tested the patch also for different types of translations (scale, skew and
rotation).
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20180807/8adf4344/attachment.html>
More information about the Poppler-bugs
mailing list