{
Image image;
container imageContainer;
str url;
EFDocQRCode_BR qrCode;
// The url to create the QR code.
url = 'http://www.google.com';
// Create an instance of the QR code class
qrCode = new EFDocQRCode_BR();
// Generate a QR code for the URL and save the result to a container
imageContainer = qrCode.generateQRCode(url);
// Use AX's good old Image class to load the image from the container
// and save it as a file
image = new Image();
image.setData(imageContainer);
image.saveImage("F:\QrCode.jpg", ImageSaveType::JPG);
}
No comments:
Post a Comment