Aspose.Barcode for PHP via Java Generation and Recognition API docs

Inherits BaseJavaClass.

Public Member Functions

 getParameters ()
 
 __construct (IComplexCodetext $complexCodetext)
 
 generateBarcodeImage (int $format)
 
 save (string $filePath, int $format)
 
- Public Member Functions inherited from BaseJavaClass
 __construct ($javaClass)
 
 getJavaClass ()
 
 getJavaClassName ()
 
 isNull ()
 
 printJavaClassName ()
 

Protected Member Functions

 init ()
 
- Protected Member Functions inherited from BaseJavaClass
 setJavaClass ($javaClass)
 

Private Attributes

 $parameters
 

Static Private Attributes

static $javaClassName = "com.aspose.mw.barcode.complexbarcode.MwComplexBarcodeGenerator"
 

Detailed Description

ComplexBarcodeGenerator for backend complex barcode (e.g. SwissQR) images generation.

This sample shows how to create and save a SwissQR image.

$swissQRCodetext = new SwissQRCodetext(null);
$swissQRCodetext->getBill()->setAccount("Account");
$swissQRCodetext->getBill()->setBillInformation("BillInformation");
$cg = new ComplexBarcodeGenerator($swissQRCodetext);
$res = $cg->generateBarCodeImage(BarcodeImageFormat::PNG);

Constructor & Destructor Documentation

◆ __construct()

ComplexBarcodeGenerator::__construct ( IComplexCodetext  $complexCodetext)

Creates an instance of ComplexBarcodeGenerator.

Parameters
IComplexCodetext$complexCodetextcomplexCodetext Complex codetext

Member Function Documentation

◆ generateBarcodeImage()

ComplexBarcodeGenerator::generateBarcodeImage ( int  $format)

Generates complex barcode image under current settings.

Parameters
intformat value of BarCodeImageFormat (PNG, BMP, JPEG, GIF)
$swissQRCodetext = new SwissQRCodetext(null);
$swissQRCodetext->getBill()->setAccount("Account");
$swissQRCodetext->getBill()->setBillInformation("BillInformation");
$cg = new ComplexBarcodeGenerator($swissQRCodetext);
$res = $cg->generateBarCodeImage(BarcodeImageFormat::PNG);
Returns
string base64 representation of image.

◆ getParameters()

ComplexBarcodeGenerator::getParameters ( )

Generation parameters.

◆ init()

ComplexBarcodeGenerator::init ( )
protected

Reimplemented from BaseJavaClass.

◆ save()

ComplexBarcodeGenerator::save ( string  $filePath,
int  $format 
)

Save barcode image to specific file in specific format.

Parameters
$filePathstring Path to save to.
intformat value of BarCodeImageFormat (PNG, BMP, JPEG, GIF)
:
$swissQRCodetext = new SwissQRCodetext(null);
$swissQRCodetext->getBill()->setAccount("Account");
$swissQRCodetext->getBill()->setBillInformation("BillInformation");
$cg = new ComplexBarcodeGenerator($swissQRCodetext);
$res = $cg->save("filePath.png", BarcodeImageFormat::PNG);

Member Data Documentation

◆ $javaClassName

ComplexBarcodeGenerator::$javaClassName = "com.aspose.mw.barcode.complexbarcode.MwComplexBarcodeGenerator"
staticprivate

◆ $parameters

ComplexBarcodeGenerator::$parameters
private