Image_Barcode
[ class tree: Image_Barcode ] [ index: Image_Barcode ] [ all elements ]

Class: Image_Barcode

Source Location: /Image_Barcode-1.1.3/Image/Barcode.php

Class Overview

PEAR
   |
   --Image_Barcode

Image_Barcode class


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2005 The PHP Group

Methods


Child classes:

Image_Barcode_ean8
Image_Barcode_ean8 class
Image_Barcode_code128
Image_Barcode class
Image_Barcode_Code39
Image_Barcode_Code39 class
Image_Barcode_int25
Image_Barcode_int25 class
Image_Barcode_upca
Image_Barcode_upca class
Image_Barcode_ean13
Image_Barcode_ean13 class
Image_Barcode_postnet
Image_Barcode_postnet class

Inherited Variables

Inherited Methods


Class Details

[line 41]
Image_Barcode class

Package which provides a method to create barcode using GD library.



[ Top ]


Method Detail

draw   [line 64]

image &draw( string $text, [string $type = 'int25'], [string $imgtype = 'png'], [boolean $bSendToBrowser = true], [ $height = 60], [ $barwidth = 1])

Draws a image barcode
  • Return: The corresponding gd image object; PEAR_Error on failure
  • Author: Marcelo Subtil Marcal <msmarcal@php.net>
  • Since: Image_Barcode 0.3
  • Access: public

Overridden in child classes as:

Image_Barcode_ean8::draw()
Draws a EAN 8 image barcode
Image_Barcode_code128::draw()
Draws a Code128 image barcode
Image_Barcode_Code39::draw()
Send image to the browser; for Image_Barcode compaitbility
Image_Barcode_int25::draw()
Draws a Interleaved 2 of 5 image barcode
Image_Barcode_upca::draw()
Draws a UPC-A image barcode
Image_Barcode_ean13::draw()
Draws a EAN 13 image barcode
Image_Barcode_postnet::draw()
Draws a PostNet image barcode

Parameters:

string   $text     A text that should be in the image barcode
string   $type     The barcode type. Supported types: Code39 - Code 3 of 9 int25 - 2 Interleaved 5 ean13 - EAN 13 upca - UPC-A
string   $imgtype     The image type that will be generated
boolean   $bSendToBrowser     if the image shall be outputted to the browser, or be returned.
   $height     
   $barwidth     

[ Top ]


Documentation generated on Sat, 24 Mar 2012 06:00:03 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.