星期四, 11月 13, 2008

利用 Google Chart API 製作 QR Code

Google Chart API 除了可以製作各式統計圖表外, 也可以產生 QR Code

Google Chart API的網址如下:
http://chart.apis.google.com/chart

只要加上參數就可以產生 QR Code

參數:
cht=qr , 宣告要產生 QR Code
chl=<text to encode> , 設定 QR Code的內容
choe=
<output encoding> , 設定使用的編碼, Ex: utf-8
chs=
<width in pixels>x<height in pixels> , 設定圖檔大小

例如:
http://chart.apis.google.com/chart?cht=qr&chl=test&choe=utf-8&chs=100x100

沒有留言: