Barcode/Renderer/Image.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Barcode
- Subpackage
- Renderer
- Version
- $Id$
\Zend_Barcode_Renderer_Image
Package: Zend_Barcode






Class for rendering the barcode as image
- Parent(s)
- \Zend_Barcode_Renderer_RendererAbstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties

array $_allowedImageType = array('png', 'jpeg', 'gif')List of authorized output format
Default value
array('png', 'jpeg', 'gif')Details- Type
- array

integer $_imageBackgroundColor = nullResource for the background color of the image
Default value
nullDetails- Type
- integer

integer $_imageForeColor = nullResource for the font and bars color of the image
Default value
nullDetails- Type
- integer
Methods

_drawPolygon(array $points, integer $color, boolean $filled = true) : voidDraw a polygon in the image resource
Parameters
| 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) : voidDraw a polygon in the image resource
Parameters
| Name | Type | Description |
|---|---|---|
| $text | string | |
| $size | float | |
| $position | array | |
| $font | string | |
| $color | integer | |
| $alignment | string | |
| $orientation | float |

setHeight(null | integer $value) : \Zend_Image_Barcode_AbstractSet height of the result image
Parameters
Returns
Details
| Name | Type | Description |
|---|---|---|
| $value | null | integer |
| Type | Description |
|---|---|
| \Zend_Image_Barcode_Abstract |
- Throw

setImageType(string $value) : \Zend_Barcode_RendererAbstractSet the image type to produce (png, jpeg, gif)
Parameters
Returns
Details
| Name | Type | Description |
|---|---|---|
| $value | string |
| Type | Description |
|---|---|
| \Zend_Barcode_RendererAbstract |
- Throw