# EncodeQRCode

## Description

Encodes the given text into a QR code and returns a new image ID containing that code. You can select the amount of error correction included in the code to allow part of the QR code to become damaged but still be readable. The higher the error correction mode the more likely it is that a damaged or obscured QR code will be read correctly, but higher error correction modes may produce a larger QR code.
Level 0 still provides a minimal level of error correction rather than none.

## Definition

integer EncodeQRCode( text, errormode )

UINT agk::EncodeQRCode( const char* text, int errormode )

## Parameters

- text - The text to encode.
- errormode - The level of error correction to include in the code from 0 (lowest) to 3 (highest)