Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jbpin/as3-qrcode-encoder
A QR code encoder in as3
https://github.com/jbpin/as3-qrcode-encoder
Last synced: 18 days ago
JSON representation
A QR code encoder in as3
- Host: GitHub
- URL: https://github.com/jbpin/as3-qrcode-encoder
- Owner: jbpin
- Created: 2010-08-05T11:28:11.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2016-08-18T16:04:16.000Z (over 8 years ago)
- Last Synced: 2024-11-15T14:35:41.664Z (about 2 months ago)
- Language: ActionScript
- Homepage: http://jbpin.wordpress.com
- Size: 397 KB
- Stars: 92
- Watchers: 11
- Forks: 29
- Open Issues: 3
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
- awesome-actionscript-sorted - as3-qrcode-encoder - A QR code encoder in as3 (Multimedia / QR Code)
README
AS3 QR Code encoder is an adaptation of qrencode open source C library to as3 language. This library allow you to generate a qr code from your application (Flex, Flash, AIR) on offline mode.
How to use it ?
var qr:QRCode = new QRCode();
qr.encode("String to encode");
var bitMap:Bitmap = new Bitmap(qr.bitmapData);That is just the first version of the library, I will try to optimize it and fixing some problem soon as possible..
The choice to just provide a bitmap data object has been made to allow you to display the qrcode or to encoding it and save it to a png or jpeg file.A flash demo:
import flash.display.Sprite;
import org.qrcode.QRCode;
import flash.display.Bitmap;var sp:Sprite = new Sprite();
var qr:QRCode = new QRCode();
qr.encode("TEST");
var img:Bitmap = new Bitmap(qr.bitmapData);sp.addChild(img);
addChild(sp);
The project is under MIT License.