Add checksum calculation to relevant barcode types

This commit is contained in:
Alex Good committed 2016-04-26 10:13:22 +01:00
1 parent 63f4aa2c46
commit 7435af80e5
10 files changed
+36 -10

No files matched your search

+4
View File
@@ -40,6 +40,10 @@ func (c *datamatrixCode) At(x, y int) color.Color {
return color.White
}
func (c *datamatrixCode) CheckSum() int {
return 0
}
func (c *datamatrixCode) get(x, y int) bool {
return c.GetBit(x*c.Rows + y)
}