Customize Barcode Image Resolution in PHP

Aspose.BarCode - Customize Barcode Image Resolution

To Customize Barcode Image Resolution using Aspose.Barcode Java for PHP, simply invoke CustomizeBarcodeImageResolution module. Here you can see example code.

PHPCode

 # Instantiate barcode object

$bb = new BarCodeBuilder();

\# Set the Code text for the barcode

$bb->setCodeText("1234567");

\# Set the symbology type to Code128

$symbology=new Symbology();

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

\# Create an instance of resolution

$resolutionMode=new ResolutionMode();

$bb->setResolution(new Resolution(200,400,$resolutionMode->Graphics));

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

\# Display Status.

print "Customized Barcode Image Resolution, please check the output file.".PHP_EOL;

Download Running Code

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