Function Name Output Format Payload Format Base64

CreateSwissQrCodePngCsv

PNG

CSV

-

CreateSwissQrCodePngCsvBase64

PNG

CSV

x

CreateSwissQrCodePngJson

PNG

JSON

-

CreateSwissQrCodePngJsonBase64

PNG

JSON

x

Type Description

Parameters

DesiredQrCodeSize

const unsigned int

Desired size in pixels (width / height) - please note that this is just a hint, actual number of pixels are always a multiple of the QR modules in order to produce sharp results without anti-aliasing

Input

const char*

The actual data, either as JSON or CSV and possible encoded using Base64. Input type depends on the used function.

OutputBuffer

char *

A buffer initialized by the caller which is used to write the result back in. See also Buffer Sizes

OutputBufferSize

unsigned long *

The size of the OutputBuffer. The library needs it to check if the buffer is large enough to write the result back. After the result is written, it contains the actual data length (actual size <= initial buffer size). See also Buffer Sizes

MessageBuffer

char *

A buffer initialized by the caller which is used to write error messages back to the caller. See also Buffer Sizes

MessageBufferSize

unsigned long *

The size of the MessageBuffer. The library needs it to check if the buffer is large enough to write the result message back. After the message is written, it contains the actual message length (actual size <= initial buffer size). See also Buffer Sizes

Returns

return code

unsigned int

0 = Success 100 = Technical Error 101 = Validation Error 102 = Parse Error 103 = Layout Error 104 = Decode Error

Swiss QR Code