Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.10.5
-
Fix Version/s: 1.10.6
-
Component/s: Zend_Barcode
-
Labels:None
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
);
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
$color = new Zend_Pdf_Color_RGB( (($color & 0xFF0000) >> 16) / 255.0, (($color & 0x00FF00) >> 8) / 255.0, ($color & 0x0000FF) / 255.0 );