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
哥哥我的条形码被渲染,但我想要设置自定义的高度和宽度的条形码... –