function BARCODE::BARCODE in Barcode 6
File
- ./
barcode.inc.php, line 37
Class
Code
function BARCODE($encoding = "EAN-13") {
if (!function_exists("imagecreate")) {
die("This class needs GD library support.");
return false;
}
$this->_error = "";
$this->_scale = 2;
$this->_width = 0;
$this->_height = 0;
$this->_n2w = 2;
$this->_height = 60;
$this->_format = 'png';
/** $this->_font=dirname($_SERVER["PATH_TRANSLATED"])."/"."arialbd.ttf";
if (isset($_SERVER['WINDIR']) && file_exists($_SERVER['WINDIR']))
$this->_font=$_SERVER['WINDIR']."\Fonts\arialbd.ttf";
**/
$this->_font = "./arialbd.ttf";
$this
->setSymblogy($encoding);
$this
->setHexColor("#000000", "#FFFFFF");
}