2
$CI=& get_instance();
$CI->load->library('zend');
$CI->zend->load('Zend/Barcode');
$barcode_image_name = "123456789000";
$barcodeOptions = array(
'text' => "123456789000",
'barHeight'=> 100,
'factor'=>4,
);
$file = Zend_Barcode::draw('code128', 'image', $barcodeOptions, array());
$store_image = imagepng($file,FCPATH."uploads/barcodeImage/{$barcode_image_name}.png");
return $store_image;
這其中i加載笨Frameword的xend的庫中的代碼現在我想設置寬度和條形碼的高度...Zend框架如何設置條碼的高度和寬度?
這可能有助於http://stackoverflow.com/questions/40112386/zend-barcode-is-not-rendered-in-codeigniter/40117609#40117609 – user4419336
哥哥我的條形碼被渲染,但我想要設置自定義的高度和寬度的條形碼... –