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" |
ComplexBarcodeGenerator for backend complex barcode (e.g. SwissQR) images generation.
This sample shows how to create and save a SwissQR image.
ComplexBarcodeGenerator::__construct | ( | IComplexCodetext | $complexCodetext | ) |
Creates an instance of ComplexBarcodeGenerator.
IComplexCodetext | $complexCodetext | complexCodetext Complex codetext |
ComplexBarcodeGenerator::generateBarcodeImage | ( | int | $format | ) |
Generates complex barcode image under current settings.
int | format value of BarCodeImageFormat (PNG, BMP, JPEG, GIF) $swissQRCodetext->getBill()->setAccount("Account");
$swissQRCodetext->getBill()->setBillInformation("BillInformation");
$cg = new ComplexBarcodeGenerator($swissQRCodetext);
$res = $cg->generateBarCodeImage(BarcodeImageFormat::PNG);
|
ComplexBarcodeGenerator::getParameters | ( | ) |
Generation parameters.
|
protected |
Reimplemented from BaseJavaClass.
ComplexBarcodeGenerator::save | ( | string | $filePath, |
int | $format | ||
) |
Save barcode image to specific file in specific format.
$filePath | string Path to save to. |
int | format value of BarCodeImageFormat (PNG, BMP, JPEG, GIF) :
$swissQRCodetext->getBill()->setAccount("Account");
$swissQRCodetext->getBill()->setBillInformation("BillInformation");
$cg = new ComplexBarcodeGenerator($swissQRCodetext);
$res = $cg->save("filePath.png", BarcodeImageFormat::PNG);
|
|
staticprivate |
|
private |