From 269e6514df30943e1e108df97558b460f407d7a2 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Thu, 10 Jun 2021 02:24:00 +0200 Subject: Add support for printing on red/black tapes My QL-800 refuses to print black only on a red/black tape. I really don't like the added `rb` function parameter. It would be best to be able to recognize such tapes, however nothing of the sort is documented in official Brother documentation. makeBitmapData{,RB} also look like they could be simplified further. --- cmd/ql-print/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmd/ql-print') 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) } } -- cgit v1.2.3-70-g09d2