Renderer/LabelRenderer.php
public function getBarcode128($data)
    {
        $barcode = new Barcode();

        $bobj = $barcode->getBarcodeObj(
            'C128',
            $data,
            380,
            135,
            'black',
            array(0, 0, 0, 0)
        )->setBackgroundColor('white');

        return $bobj->getPngData();
    }
public function getBarcode128($data)
    {
        $barcode = new Barcode();

        $bobj = $barcode->getBarcodeObj(
            'C128',
            $data,
            380,
            135,
            'black',
            array(0, 0, 0, 0)
        )->setBackgroundColor('white');

        return $bobj->getPngData();
    }
public function getBarcode128 ( $ data ) { $ barcode = new Barcode ( ) ; $ bobj = $ barcode -> getBarcodeObj ( 'C128' , $ data , 380 , 135 , 'black' , array ( 0 , 0 , 0 , 0 ) ) -> setBackgroundColor ( 'white' ) ; return $ bobj -> getPngData ( ) ; }
Returns the barcode from the given data.

@param string $data

@return string
Returns the barcode from the given data .