13.2Class Maker

QRcode generator.

Class Maker

This class Is used to create QRCode images.

The class instance is used to generate one or more Image instances, which are the actual content that can be streamed to a target file or to an arbitrary stream.

Properties
cache_dirCaching directory -- set to nil to disable cache.
default_maskDefault mask.
encodingEncoding of final output.
find_best_maskSpecifies whether or not to estimate best mask.
find_from_randomThe number of masks to be checked - mask ids are generated randomly.
png_max_sizeMax width (in pixels) allowed for png images.
Methods
encodeStruct
rawEncode raw binary data.
textEncode a text oriented string.

Properties

cache_dir

Caching directory -- set to nil to disable cache.

default_mask

Default mask.

Only used when best mask estimation is disabled.

encoding

Encoding of final output.

find_best_mask

Specifies whether or not to estimate best mask.

Set this attribute to false if performance is an issue.

find_from_random

The number of masks to be checked - mask ids are generated randomly.

png_max_size

Max width (in pixels) allowed for png images.

Methods

encodeStruct

encodeStruct( data, errorCorrectionLevel )

raw

Encode raw binary data.

raw( data, [ecl] )
data The text to be encoded.
ecl The error correction level (defaults to ECL.L).

See also: Maker.

text

Encode a text oriented string.

text( text, [ecl],[encoding],[caseSensitive] )
text The text to be encoded.
ecl The error correction level (defaults to ECL.L).
encoding Optional text encoding for the final output.
caseSensitive Set to false to create alphanumeric sequences.

See also: Maker.

Made with http://www.falconpl.org