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
Detailsinteger $_imageBackgroundColor = 'null'Resource for the background color of the image
Detailsinteger $_imageForeColor = 'null'Resource for the font and bars color of the image
Detailsstring $_imageType = 'png'Image format
Detailsresource $_resource = 'null'Resource for the image
Detailsinteger $_userHeight = '0'Height of the rendered image wanted by user
Detailsinteger $_userWidth = '0'Width of the rendered image wanted by user
Details__construct(
$options
=
null
)
:
Details_checkDimensions(
)
:
voidCheck barcode dimensions
Details_checkParams(
)
:
voidCheck barcode parameters
Details_drawPolygon(
array $points, integer $color, boolean $filled
=
true
)
:
Draw a polygon in the image resource
Details_drawText(
string $text, float $size, array $position, string $font, integer $color, string $alignment
=
center, float $orientation
=
0
)
:
Draw a polygon in the image resource
Details_initRenderer(
)
:
voidInitialize the image resource
DetailsgetHeight(
)
:
intGet barcode height
DetailsgetImageType(
)
:
stringRetrieve the image type to produce
DetailsgetWidth(
)
:
intGet barcode width
Detailsrender(
)
:
mixedDraw and render the barcode with correct headers
DetailssetHeight(
null|integer $value
)
:
Zend_Image_Barcode_AbstractSet height of the result image
DetailssetImageType(
string $value
)
:
Zend_Barcode_RendererAbstractSet the image type to produce (png, jpeg, gif)
DetailssetResource(
$image
)
:
Zend_Barcode_RendererSet an image resource to draw the barcode inside
DetailssetWidth(
mixed $value
)
:
voidSet barcode width
Details