aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/label-tool/main.go2
-rw-r--r--cmd/ql-print/main.go3
-rw-r--r--cmd/sklad/main.go2
3 files changed, 4 insertions, 3 deletions
diff --git a/cmd/label-tool/main.go b/cmd/label-tool/main.go
index 893aa13..0f0ab4b 100644
--- a/cmd/label-tool/main.go
+++ b/cmd/label-tool/main.go
@@ -211,7 +211,7 @@ func handle(w http.ResponseWriter, r *http.Request) {
font.Font, params.Text, mediaInfo.PrintAreaPins, params.Scale)
}
if r.FormValue("print") != "" {
- if err := printer.Print(img); err != nil {
+ if err := printer.Print(img, false); err != nil {
log.Println("print error:", err)
}
}
diff --git a/cmd/ql-print/main.go b/cmd/ql-print/main.go
index d0c986d..647ba1a 100644
--- a/cmd/ql-print/main.go
+++ b/cmd/ql-print/main.go
@@ -17,6 +17,7 @@ import (
var scale = flag.Int("scale", 1, "integer upscaling")
var rotate = flag.Bool("rotate", false, "print sideways")
+var redblack = flag.Bool("redblack", false, "red and black print")
func main() {
flag.Usage = func() {
@@ -82,7 +83,7 @@ func main() {
log.Fatalln("the image is too high,", dy, ">", mi.PrintAreaLength, "pt")
}
- if err := p.Print(img); err != nil {
+ if err := p.Print(img, *redblack); err != nil {
log.Fatalln(err)
}
}
diff --git a/cmd/sklad/main.go b/cmd/sklad/main.go
index 4808713..bf745e8 100644
--- a/cmd/sklad/main.go
+++ b/cmd/sklad/main.go
@@ -309,7 +309,7 @@ func printLabel(id string) error {
}
return printer.Print(&imgutil.LeftRotate{Image: label.GenLabelForHeight(
- labelFont, id, mediaInfo.PrintAreaPins, db.BDFScale)})
+ labelFont, id, mediaInfo.PrintAreaPins, db.BDFScale)}, false)
}
func handleLabel(w http.ResponseWriter, r *http.Request) {