I'm currently learning how to use QR codes with LC and have so far successfully done this with the Squirt library (http://forums.livecode.com/viewtopic.php?t=31434.
This works absolutely fine with text but I was wondering if I could generate a QR code for an image stored in the stack (as opposed to externally)
I therefore put together this code:
Code: Select all
on mouseup
put 1 into field 1
put image"Im" into tIm
set the imagesource of char 1 of field "txtFIELD" to "Im" #(thank you Klaus!)
put field 1 into tQRData
qrCreate "!", tQRData, "M", 3
put the result into tImagedata
delete line 1 of tImagedata
put tImagedata into img 1
end mouseup
I guess a workaround would be to have the QR link to an external file on for example dropbox, but I was really wanting it to have generated the QR code from the image stored in the stack.
This might not be possible of course?