示例#1
0
 private function genBarCode($no)
 {
     $width = 200;
     $height = 30;
     $quality = 100;
     $text = 1;
     $location = \Yii::$app->basePath . "/web/barcode/{$no}.jpg";
     barcode::Barcode39($no, $width, $height, $quality, $text, $location);
 }
示例#2
0
 public function actionBarcode2()
 {
     $width = 300;
     $height = 40;
     $quality = 100;
     $text = 1;
     $no = 'ABC 12345';
     $location = \Yii::$app->basePath . '/test.jpg';
     barcode::Barcode39($no, $width, $height, $quality, $text, $location);
     //return $this->render('barcode2');
 }