Issues

ZF-9963: Color management in Zend/Barcode/Renderer/Pdf.php

Issue Type: Bug Created: 2010-06-08T10:35:41.000+0000 Last Updated: 2010-06-11T09:29:46.000+0000 Status: Resolved Fix version(s): - 1.10.6 (22/Jun/10)

Reporter: Mikhail Verkhovski (miscellone) Assignee: Mickael Perraud (mikaelkael) Tags: - Zend_Barcode

Related issues: Attachments:

Description

Zend/Barcode/Renderer/Pdf.php Rows 151,155 and 188,192 Change from: $color = new Zend_Pdf_Color_RGB( ($color & 0xFF0000) >> 16, ($color & 0x00FF00) >> 8, $color & 0x0000FF ); to: $color = new Zend_Pdf_Color_RGB( (($color & 0xFF0000) >> 16) / 256.0, (($color & 0x00FF00) >> 8) / 256.0, ($color & 0x0000FF) / 256.0 );

Comments

Posted by Mickael Perraud (mikaelkael) on 2010-06-11T05:52:08.000+0000

Will do it soonly, but with:

<pre class="highlight">
$color = new Zend_Pdf_Color_RGB(
    (($color & 0xFF0000) >> 16) / 255.0,
    (($color & 0x00FF00) >> 8) / 255.0,
    ($color & 0x0000FF) / 255.0
);

Thanks for the report

Posted by Mickael Perraud (mikaelkael) on 2010-06-11T09:29:43.000+0000

Fixed in r22418 & applied on 1.10 branch with r22419

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts