[ 
https://issues.apache.org/jira/browse/PDFBOX-1094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14104500#comment-14104500
 ] 

John Hewson commented on PDFBOX-1094:
-------------------------------------

{quote}
A possible reason for the "blocky" patterns is that the size of the 
BufferedImage in which the pattern is drawn is calculated without taking the 
graphics transform into account. The solution that existed in February did use 
the graphics transform. The solution for the transparency groups also writes in 
a BufferedImage and does use the graphics transform.
{quote}

Do you mean the graphics transform from Graphics2D#getTransform()? That 
transform represents the CTM, however patterns are not drawn using the CTM they 
are drawn using the parent stream's initial matrix, see my comment from March:

{quote}
Conceptually, the pattern is drawn over the entire page at the very beginning 
and when we fill a shape with a pattern we are filling it with a "window" 
through to the pattern which covers the page (that's not actually what happens 
but it helps to think that way to understand).
{quote}

> Pattern colorspace support
> --------------------------
>
>                 Key: PDFBOX-1094
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1094
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: Rendering
>    Affects Versions: 1.6.0
>            Reporter: Andreas Lehmkühler
>            Assignee: Andreas Lehmkühler
>            Priority: Minor
>         Attachments: ColoredTilingPaint.patch, PATTYP1.pdf, PATTYP2.pdf, 
> PDF32000_2008_pg737.pdf, PDFBOX-1094-065514-XStep32767.pdf, 
> PDFBOX-1094-094730.pdf, PDFBOX-1094-096213-p18.pdf, PDFStreamEngine.patch, 
> PageDrawer.patch, _pdfbox-1094-tiling_pattern.pdf-1-blurry.png, 
> jagpdf_doc_patterns.pdf, jagpdf_doc_patterns.pdf-1.png, 
> pdfbox-1094-pdf32000_2008_pg737.pdf-1.png, 
> pdfbox-1094-pdf32000_2008_pg737.pdf-1.png, 
> pdfbox-1094-tiling_pattern.pdf-1.png, pdfbox-1094-tiling_pattern.pdf-1.png, 
> pdfbox-1094-tiling_pattern.pdf-1.png, pdfbox-1861-tracemonkey.pdf-13.png, 
> pdfbox-1861-tracemonkey.pdf-13.png, tiling_pattern.pdf
>
>
> PDFBox doesn't support PDPattern colorspaces



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to