<?
/***********************************************************************
written by caocao
caocao@eastday.com
http://nethermit.yeah.net
显示code39条形码的类
使用方法:
$convert=new code39;
$str=$convert->decode($str);
***********************************************************************/
class pattenclass
{
var $color;
var $width;
function pattenclass($color,$width)
{
$this->color=$color;
$this->width=$width;
}
}
class code39
{
var $zoom;
var $height;
var $patten=array();
function code39($zoom, $height)
{
$zoom=intval($zoom);
$this->zoom=$zoom<1||$zoom>20?3:$zoom;
$height=intval($height);
$this->height=$height<1||$height>80?30:$height;
本文关键:显示code39条形码的PHP类