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

ASF subversion and git services commented on PDFBOX-2561:
---------------------------------------------------------

Commit 1644844 from [~tilman] in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1644844 ]

PDFBOX-2561: don't multiply index with 255

> Rendering of PDIndexed line incorrect
> -------------------------------------
>
>                 Key: PDFBOX-2561
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2561
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 2.0.0
>            Reporter: Tilman Hausherr
>            Assignee: Tilman Hausherr
>             Fix For: 2.0.0
>
>         Attachments: jagpdf_doc_color_spaces.pdf
>
>
> Page 4 of the attached file ( 
> http://www.jagpdf.org/doc/samples/jagpdf_doc_color_spaces.pdf , linked from 
> http://www.jagpdf.org/doc/jagpdf/usersguide/graphics.htm ) has three colors 
> that are rendered incorrectly. The initialization is correct, however toRGB() 
> gets passed float values that are indices, i.e. 0.0, 1.0, 2.0, so it is wrong 
> to multiply them with 255.
> See also PDFBOX-1997 and [ https://svn.apache.org/r1607674 ] which had a 
> similar problem.
> Before committing I'll first run my test suite.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to