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.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user