Documentation ¶
Overview ¶
implements http://en.wikipedia.org/wiki/Codabar
msg := "1234567890" f, _ := os.Create("codabar.png") b := linear.NewCodabar(msg) img := b.GetImage() png.Encode(f, img) f.Close()
implements http://en.wikipedia.org/wiki/Code_11
msg := "1917" f, _ := os.Create("code11.png") b := linear.NewCode11(msg) img := b.GetImage() png.Encode(f, img) f.Close()
implements http://en.wikipedia.org/wiki/Code_39
msg := "GOBARCODE" f, _ := os.Create("code39.png") b := linear.NewCode39(msg) img := b.GetImage() png.Encode(f, img) f.Close()
implements http://en.wikipedia.org/wiki/Code_93
msg := "TEST93" f, _ := os.Create("code93.png") b := linear.NewCode93(msg) img := b.GetImage() png.Encode(f, img) f.Close()
implements http://en.wikipedia.org/wiki/Pharmacode
n := 69 f, _ := os.Create("pharmacode.png") b := linear.NewPharmacode(n) img := b.GetImage() png.Encode(f, img) f.Close()
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Codabar ¶
type Codabar struct {
Start, Stop string
BarWidth, BarHeight int
DebugPrint bool
// contains filtered or unexported fields
}
func NewCodabar ¶
type Code11 ¶
type Code39 ¶
type Code93 ¶
type Pharmacode ¶
type Pharmacode struct {
BarWidth, BarHeight int
// contains filtered or unexported fields
}
func NewPharmacode ¶
func NewPharmacode(n int) *Pharmacode
func (*Pharmacode) GetImage ¶
func (this *Pharmacode) GetImage() image.Image
Source Files ¶
Click to show internal directories.
Click to hide internal directories.