Barcode implementations also implements BarcodeColor interface

This commit is contained in:
zhaori96 committed 2024-08-02 12:33:00 -03:00
1 parent 49d4ce8a5b
commit d5743d95af
5 files changed
+20

No files matched your search

+4
View File
@@ -32,6 +32,10 @@ func (c *aztecCode) ColorModel() color.Model {
return c.color.Model
}
func (c *aztecCode) ColorScheme() barcode.ColorScheme {
return c.color
}
func (c *aztecCode) Bounds() image.Rectangle {
return image.Rect(0, 0, c.size, c.size)
}