Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Class for rendering the barcode as image

array
$_allowedImageType= 'array(
'png''
List of authorized output format
array(
'png'
Details
integer
$_imageBackgroundColor= 'null'
Resource for the background color of the image
null
Details
integer
$_imageForeColor= 'null'
Resource for the font and bars color of the image
null
Details
integer
$_userHeight= '0'
Height of the rendered image wanted by user
0
Details
_drawPolygon(
array $points, integer $color, boolean $filled
=
true
)
:
void
Draw a polygon in the image resource
Name | Type | Description |
---|---|---|
$points | array | |
$color | integer | |
$filled | boolean |

_drawText(
string $text, float $size, array $position, string $font, integer $color, string $alignment
=
'center', float $orientation
=
0
)
:
void
Draw a polygon in the image resource
Name | Type | Description |
---|---|---|
$text | string | |
$size | float | |
$position | array | |
$font | string | |
$color | integer | |
$alignment | string | |
$orientation | float |

setHeight(
null|integer $value
)
:
\Zend_Image_Barcode_Abstract
Set height of the result image
Name | Type | Description |
---|---|---|
$value | null|integer |
Type | Description |
---|---|
\Zend_Image_Barcode_Abstract |
Exception | Description |
---|---|
\Zend_Image_Barcode_Exception |

setImageType(
string $value
)
:
\Zend_Barcode_RendererAbstract
Set the image type to produce (png, jpeg, gif)
Name | Type | Description |
---|---|---|
$value | string |
Type | Description |
---|---|
\Zend_Barcode_RendererAbstract |
Exception | Description |
---|---|
\Zend_Barcode_Renderer_Exception |

setResource(
$image
)
:
\Zend_Barcode_Renderer
Set an image resource to draw the barcode inside
Name | Type | Description |
---|---|---|
$image |
Type | Description |
---|---|
\Zend_Barcode_Renderer |
Exception | Description |
---|---|
\Zend_Barcode_Renderer_Exception |