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_dir | Caching directory -- set to nil to disable cache. |
default_mask | Default mask. |
encoding | Encoding of final output. |
find_best_mask | Specifies whether or not to estimate best mask. |
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 | |
raw | Encode raw binary data. |
text | Encode a text oriented string. |
Caching directory -- set to nil to disable cache.
Default mask.
Only used when best mask estimation is disabled.
Encoding of final output.
Specifies whether or not to estimate best mask.
Set this attribute to false if performance is an issue.
The number of masks to be checked - mask ids are generated randomly.
Max width (in pixels) allowed for png images.
encodeStruct( data, errorCorrectionLevel )
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.
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.