Issues

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

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

Will do it soonly, but with:


$color = new Zend_Pdf_Color_RGB(
    (($color & 0xFF0000) >> 16) / 255.0,
    (($color & 0x00FF00) >> 8) / 255.0,
    ($color & 0x0000FF) / 255.0
);

Thanks for the report

Fixed in r22418 & applied on 1.10 branch with r22419