diff options
Diffstat (limited to 'vendor/github.com/boombuler/barcode/datamatrix/datamatrixcode.go')
| -rw-r--r-- | vendor/github.com/boombuler/barcode/datamatrix/datamatrixcode.go | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/vendor/github.com/boombuler/barcode/datamatrix/datamatrixcode.go b/vendor/github.com/boombuler/barcode/datamatrix/datamatrixcode.go deleted file mode 100644 index 0e60269..0000000 --- a/vendor/github.com/boombuler/barcode/datamatrix/datamatrixcode.go +++ /dev/null @@ -1,53 +0,0 @@ -package datamatrix
-
-import (
- "github.com/boombuler/barcode"
- "github.com/boombuler/barcode/utils"
- "image"
- "image/color"
-)
-
-type datamatrixCode struct {
- *utils.BitList
- *dmCodeSize
- content string
-}
-
-func newDataMatrixCode(size *dmCodeSize) *datamatrixCode {
- return &datamatrixCode{utils.NewBitList(size.Rows * size.Columns), size, ""}
-}
-
-func (c *datamatrixCode) Content() string {
- return c.content
-}
-
-func (c *datamatrixCode) Metadata() barcode.Metadata {
- return barcode.Metadata{"DataMatrix", 2}
-}
-
-func (c *datamatrixCode) ColorModel() color.Model {
- return color.Gray16Model
-}
-
-func (c *datamatrixCode) Bounds() image.Rectangle {
- return image.Rect(0, 0, c.Columns, c.Rows)
-}
-
-func (c *datamatrixCode) At(x, y int) color.Color {
- if c.get(x, y) {
- return color.Black
- }
- 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)
-}
-
-func (c *datamatrixCode) set(x, y int, value bool) {
- c.SetBit(x*c.Rows+y, value)
-}
|
