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'
List of authorized output format
integer $_imageBackgroundColor = 'null'
Resource for the background color of the image
integer $_imageForeColor = 'null'
Resource for the font and bars color of the image
string $_imageType = 'png'
Image format
resource $_resource = 'null'
Resource for the image
integer $_userHeight = '0'
Height of the rendered image wanted by user
integer $_userWidth = '0'
Width of the rendered image wanted by user
__construct(
$options
=
null
)
:
_checkDimensions(
)
:
void
Check barcode dimensions
_checkParams(
)
:
void
Check barcode parameters
_drawPolygon(
array $points, integer $color, boolean $filled
=
true
)
:
Draw a polygon in the image resource
_drawText(
string $text, float $size, array $position, string $font, integer $color, string $alignment
=
center, float $orientation
=
0
)
:
Draw a polygon in the image resource
_initRenderer(
)
:
void
Initialize the image resource
getHeight(
)
:
int
Get barcode height
getImageType(
)
:
string
Retrieve the image type to produce
getWidth(
)
:
int
Get barcode width
render(
)
:
mixed
Draw and render the barcode with correct headers
setHeight(
null|integer $value
)
:
Zend_Image_Barcode_Abstract
Set height of the result image
setImageType(
string $value
)
:
Zend_Barcode_RendererAbstract
Set the image type to produce (png, jpeg, gif)
setResource(
$image
)
:
Zend_Barcode_Renderer
Set an image resource to draw the barcode inside
setWidth(
mixed $value
)
:
void
Set barcode width