Cubios::Gfx::QRCode
Constructors
QRCode
Summary
Constructs an object for rendering QR Code
Arguments
- data - QR code data payload
- t - Transform object that holds initial screen position, rotation and mirroring mode of the QR code image
Synopsis
Arguments
- data - QR code data payload
- x - x screen coordinate of initial postion of the QR code image
- y - y screen coordinate of initial postion of the QR code image
Synopsis
Arguments
- data - QR code data payload
- t - Transform object that holds initial screen position, rotation and mirroring mode of the QR code image
- size - size of the QR code element that represents one bit of encoded data
Synopsis
Arguments
- data - QR code data payload
- x - x screen coordinate of initial postion of the QR code image
- y - y screen coordinate of initial postion of the QR code image
- size - size of the QR code element that represents one bit of encoded data
Synopsis
Arguments
- qr - QR code object which parameters will be used to initialize the new QR code object
Synopsis
Public Methods
SetSize
Summary
Sets the size of a QR code element that represents one bit of encoded data
Arguments
- size - size of an element
Output
Returns a pointer to the object to which the change was applied
Synopsis
SetColor
Summary
Sets the foreground color of the QR code
Arguments
- color - foreground color
Output
Returns a pointer to the object to which the change was applied
Synopsis
SetBackgroundColor
Summary
Sets the background color of the QR code
Arguments
- color - background color
Output
Returns a pointer to the object to which the change was applied
Synopsis
SetData
Summary
Sets the data that will be encoded in the QR code
Arguments
- data - string data to encode, 256 characters max
Output
Returns a pointer to the object to which the change was applied
Synopsis
Public Members
ColorZeros
Summary
Current background color
Synopsis
ColorOnes
Summary
Current foreground color
Synopsis
Size
Summary
Current element size
Synopsis