Skip to main content

PaymentServicesAustriaQRFrameOptions Class

Identifies an EPC QR Code’s frame used in Payment Services Austria.

Declaration

public class PaymentServicesAustriaQRFrameOptions extends QRFrameOptions

Remarks

The following code snippet creates a QR Code barcode and customizes its encoding and frame parameters:

QR Code with PaymentServicesAustria Frame, DevExpress Barcode Generation API for Java

import com.devexpress.drawing.*;
import com.devexpress.docs.barcode.*;
import com.devexpress.system.drawing.*;
import com.devexpress.docs.Padding;

import java.io.*;
import java.nio.file.*;

public class Main {
    public static void main(String[] args) throws Exception {

        // Customize QR Code parameters.
        QRCodeOptions options = new QRCodeOptions();
        options.setErrorCorrectionLevel(QRCodeErrorCorrectionLevel.H);
        options.setCompactionMode(QRCodeCompactionMode.AUTO);
        options.setVersion(QRCodeVersion.VERSION_10);
        options.setIncludeQuietZone(true);
        options.setPadding(new Padding(10));
        options.setModuleSize(10);
        options.setShowText(false);

        options.setFrameOptions(new PaymentServicesAustriaQRFrameOptions());

        Path outputDir = Path.of("output");
        Files.createDirectories(outputDir);

        try (FileOutputStream fileStream = new FileOutputStream(
                outputDir.resolve("qrcode.png").toFile());
                BarcodeGenerator barcodeGenerator = new BarcodeGenerator(options)) {
                    barcodeGenerator.export(
                            "https://www.devexpress.com",
                            fileStream,
                            DXImageFormat.getPng());
        }
    }
}

Inherited Members

com.devexpress.system.JavaObject.clone()
com.devexpress.system.JavaObject.equals(java.lang.Object)
com.devexpress.system.JavaObject.hashCode()
com.devexpress.system.JavaObject.memberwiseClone()
com.devexpress.system.JavaObject.toString()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

Object
JavaObject
QRFrameOptions
PaymentServicesAustriaQRFrameOptions

PaymentServicesAustriaQRFrameOptions()

Initializes a new instance of the PaymentServicesAustriaQRFrameOptions class.

Declaration

public PaymentServicesAustriaQRFrameOptions()