Rotate Barcode Image in PHP

Aspose.BarCode - Rotate Barcode Image

To Rotate Barcode Image using Aspose.Barcode Java for PHP, simply invoke RotateImage module. Here you can see example code.

PHPCode

 # Instantiate barcode object

$bb = new BarCodeBuilder();

\# Set the code text of the barcode

$bb->setCodeText("12345678");

\# Roate clockwise for 180 degree (upside down)

$bb->setRotationAngleF(180);

\# Set the symbology type to code39

$symbology=new Symbology();

$bb->setSymbologyType($symbology->Code39Extended);

$bb->save($dataDir . "Rotate.jpg");

\# Display Status.

print "Done with image rotation, please check the output file.".PHP_EOL;

Download Running Code

Download Rotate Barcode Image (Aspose.BarCode) from any of the below mentioned social coding sites: