require 'rubygems'
require 'gd2'
require 'gbarcode'
include Gbarcode
include GD2
b = barcode_create("TEST1234567890")
barcode_encode(b,BARCODE_128)
w = 20
h = 100
x = 10
y1 = 10
y2 = h - 20
bars = b.partial.split(//).map {|e| e.to_i}
bars.map {|e| w += e}
i = Image::IndexedColor.new(w,h)
i.palette << c =" Canvas.new(i)" color =" Color::BLACK" font =" Font::Small" f =" File.open(">