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
@@ -28,6 +28,10 @@ func (qr *qrcode) ColorModel() color.Model {
|
||||
return qr.color.Model
|
||||
}
|
||||
|
||||
func (c *qrcode) ColorScheme() barcode.ColorScheme {
|
||||
return c.color
|
||||
}
|
||||
|
||||
func (qr *qrcode) Bounds() image.Rectangle {
|
||||
return image.Rect(0, 0, qr.dimension, qr.dimension)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user