createQRCodeFile()

Creates a QR code file.

Synopsis

int createQRCodeFile(string data, string filename [, int elementWidth]);

Parameters

Parameter Description
data data to encode
filename

absolute path + filename that shall be created. The extension specifies the format (e.g. png, bmp, jpg). If no extension is given, the file is automatically generated as png file.

Note: The gif format is not supported.

elementWidth Optional parameter to define the number of pixels for the width of one element in the QR Code ("black dot").

Return Value

Errors

missing or wrong parameters.

Description

When given a string of data, this function creates a QR code file.

QR Code is registered trademark of DENSO WAVE INCORPORATED

Example

Creates a QR code file with the name "test1", that contains the link to www.etm.at.

#uses "CtrlQRCode" 
main()
{
  createQRCodeFile("http://www.etm.at","D:\\QR_Test\\test1");
}

Assignment

Miscellaneous functions

Availability

CTRL