/**
  * I25 Barcode PNG rendering test (rotation
  *
  * @covers BG\BarcodeBundle\Util\Base1DBarcode::getBarcodePNGPath();
  */
 public function testI25GetBarcodePNGPathVertical()
 {
     $d1 = new barCode();
     $d1->savePath = self::C_TMP_PATH;
     $bcPathAbs = $d1->getBarcodePNGPath(self::C_BC_DEFAULT, 'I25', self::C_BC_1D_WIDTH, self::C_BC_1D_HEIGHT, array(0, 0, 0), true);
     $checkCondition = file_exists($bcPathAbs) ? true : false;
     if (function_exists('imagecreate')) {
         $checkCondition = file_exists($bcPathAbs) && filesize($bcPathAbs) >= 217;
     }
     if ($bcPathAbs !== false) {
         unlink($bcPathAbs);
     }
     $this->assertTrue($checkCondition);
 }
Ejemplo n.º 2
0
                <h1>QRCode 2D Code</h1>
                <p>QRCode, Basic</p>
                <img src="/tmp/<?php 
echo $bc2d->getBarcodeFilenameFromGenPath($bc2d->getBarcodePNGPath('hello world!', 'qrcode', 4, 4));
?>
" alt="qrcode barcode" title="qrcode Barcode Image">
                <h2>hello world!</h2>
            </div>

            <h1>1D BARCODES, ImageMode</h1>

            <div class="barcode-block">
                <h1>C39 Barcode</h1>
                <p>ANSI MH10.8M-1983 - USD3 - 3 of 9</p>
                <img src="/tmp/<?php 
echo $bc1d->getBarcodeFilenameFromGenPath($bc1d->getBarcodePNGPath('1234567', 'C39', 1.75, 45));
?>
" alt="C32 barcode" title="C32 Barcode Image">
                <h2>1234567</h2>
            </div>

            <div class="barcode-block">
                <h1>C39+ Barcode</h1>
                <p>ANSI MH10.8M-1983 - USD3 - 3 of 9, with checksum</p>
                <img src="/tmp/<?php 
echo $bc1d->getBarcodeFilenameFromGenPath($bc1d->getBarcodePNGPath('1234567', 'C39+', 1.75, 45));
?>
" alt="C32+ barcode" title="C32+ Barcode Image">
                <h2>1234567</h2>
            </div>