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

Class: Image_Barcode2

Source Location: /Image_Barcode2-0.2.3/Image/Barcode2.php

Class Overview


Image_Barcode2 class


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2005 The PHP Group

Methods


Inherited Variables

Inherited Methods


Class Details

[line 42]
Image_Barcode2 class

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



[ Top ]


Method Detail

draw   [line 102]

resource draw( string $text, [string $type = Image_Barcode2::BARCODE_INT25], [string $imgtype = Image_Barcode2::IMAGE_PNG], [boolean $bSendToBrowser = true], [integer $height = 60], [integer $width = 1], [boolean $showText = true], [integer $rotation = Image_Barcode2::ROTATE_NONE])

Draws a image barcode
  • Return: The corresponding gd image resource
  • Author: Marcelo Subtil Marcal <msmarcal@php.net>
  • Since: Image_Barcode2 0.3
  • Throws: Image_Barcode2_Exception
  • Access: public

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 upce - UPC-E code128 ean8 postnet
string   $imgtype   —  The image type that will be generated (gif, jpg, png)
boolean   $bSendToBrowser   —  if the image shall be outputted to the browser, or be returned.
integer   $height   —  The image height
integer   $width   —  The image width
boolean   $showText   —  The text should be placed under barcode
integer   $rotation   —  The rotation angle

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:53:02 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.