Barcode implementations also implements BarcodeColor interface
This commit is contained in:
1 parent
49d4ce8a5b
commit
d5743d95af
5 files changed
+20
No files matched your search
@@ -35,6 +35,10 @@ func (c *datamatrixCode) ColorModel() color.Model {
|
||||
return c.color.Model
|
||||
}
|
||||
|
||||
func (c *datamatrixCode) ColorScheme() barcode.ColorScheme {
|
||||
return c.color
|
||||
}
|
||||
|
||||
func (c *datamatrixCode) Bounds() image.Rectangle {
|
||||
return image.Rect(0, 0, c.Columns, c.Rows)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user