Add QrCode lib

This commit is contained in:
Brahim Hadriche committed 2022-11-03 18:56:08 -04:00
1 parent f341841d9e
commit 94192446af
27 files changed
+2250

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
sub init()
print "Init: "; m.top.subtype()
timer = CreateObject("roTimespan")
timer.mark()
m.QRCode = createObject("roSGNode", "TestQRCode")
print "Creating QRCode took:", timer.TotalMilliseconds().ToStr();"ms"
timer.mark()
m.QRPoster = m.top.findNode("TestQRPoster")
m.QRPoster.qrcode = m.QRCode
print "Creating PNG took:", timer.TotalMilliseconds().ToStr();"ms"
print "QRCode image created as:", m.QRPoster.uri
timer.mark()
m.QRPrinter = createObject("roSGNode", "QRPrinter")
m.QRPrinter.qrcode = m.QRCode
print m.QRPrinter.qrstring
print "Printing to console took:", timer.TotalMilliseconds().ToStr();"ms"
end sub