2017년 4월 22일 토요일

Save a generated barcode as file


I generated a barcode with a taifun extension. But for it's just shown in a webviewer. It's not possible to store the barcode in a file.

As I noticed that google "chart api" is deprecated, has someone an idea how to save a barcode? 

I also tried to make a screenshot and then crop the image but this doesn't work because of all the different screen sizes of smartphone devices.

--
use the Google Charts API instead https://google-developers.appspot.com/chart/

--
What can you do with a bar code image in a file?

Why not just save the text?

--
...send, print, share it to others, use it in advertisement...

--
Sorry, but I don't understand your answer respectively links. Could you please give me another hint?

--
For saving, get the barcode result, create a new barcode image and set it as background of a canvas and finally save it, irrespective of any screen size

--
Also, if you would be OK with qr codes see here (courtesy of Hossein):


and some blocks, which give an idea of how to save the canvas
--
(added to Web Services section of FAQ)

--

댓글 없음:

댓글 쓰기