andries Posted August 3, 2011 Posted August 3, 2011 Hi, here is a small demo file that show how to generate QR codes and even read them from a container field. http://www.bh-a.com/index.php?option=com_content&view=article&id=88&Itemid=84&lang=en (requires ScriptMaster )
john renfrew Posted August 4, 2011 Posted August 4, 2011 Brilliant stuff.... Thanks. BUT I transferred it to my Scriptmaster file and downloaded the latest zxing and it returns QR codes which are white on black Any idea why?? import java.awt.image.BufferedImage import com.google.zxing.qrcode.QRCodeWriter import com.google.zxing.common.BitMatrix import com.google.zxing.BarcodeFormat import com.google.zxing.client.j2se.MatrixToImageWriter mtx = new QRCodeWriter().encode (input, BarcodeFormat.QR_CODE, 500 , 500) image = MatrixToImageWriter.toBufferedImage(mtx) return image 1
john renfrew Posted August 5, 2011 Posted August 5, 2011 Had to reverse the j2se method to make it work properly. Wierd //import com.google.zxing.client.j2se.MatrixToImageWriter int WHITE = 0xFFFFFF writer = new QRCodeWriter() m = new QRCodeWriter().encode (input, BarcodeFormat.QR_CODE, w , h) image = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB) for (x in 0..<w) { for (y in 0..<h) { image.setRGB(x, y, m.get(x, y) ? WHITE : 0) } //end for } //end for
andries Posted August 10, 2011 Author Posted August 10, 2011 hi John are you on MacOS Lion? I heard there are some problems there...
john renfrew Posted August 12, 2011 Posted August 12, 2011 No, 10.6.8 It works if I fire up your file first and run the script from in there, but if I ran it at all from the SM demo file I keep it reversed and then affected your file until FM was restarted
Newbies safsdfew Posted March 12, 2013 Newbies Posted March 12, 2013 I have used two QR Code barcode generators recently. One is Java QR Code barcode generator SDK, another one is ASP.NET QR Code barcode generator SDK. They are easy to use. Share with you all.
Newbies lucy313 Posted August 29, 2013 Newbies Posted August 29, 2013 actually,i've just generated qr code in vb.net from ka, In the beginning,i thought it's very hard for me,but when i follow the guide and do step by step,it 's not so difficult as i thought! but as for the reader for qr code ,i've no idea about that. is there any other resources?
Matthew F Posted August 29, 2013 Posted August 29, 2013 I have used the QRCode plugin. It requires a purchase but its simplicity has made it well worth the price.
Newbies makaveiljojo Posted December 24, 2013 Newbies Posted December 24, 2013 I have used the QRCode plugin. It requires a purchase but its simplicity has made it well worth the price. If it is just for generating QR code with simplicity and conveniences, then a free online QR code generator might be a better choice?
Newbies dannyflorrick Posted May 29, 2014 Newbies Posted May 29, 2014 you can try some free .net qr code barcode reader dll, like zxing,
Recommended Posts
This topic is 3843 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now