summaryrefslogtreecommitdiff
path: root/line-conf-buckets-tess/line-conf-buckets-tess.go
diff options
context:
space:
mode:
authorNick White <git@njw.name>2019-01-23 20:23:31 +0000
committerNick White <git@njw.name>2019-01-23 20:23:31 +0000
commitc41aa16d8a3d35ce4185184ee50536bf2089a120 (patch)
treed405ce03980a1c89996997693bcd6b968f6c13c2 /line-conf-buckets-tess/line-conf-buckets-tess.go
parent2e5f7a80673c29b778f76f8f17896440ab75b4d4 (diff)
Move image copying out to an interface function, so I can share code with line-conf-buckets easily and well
Diffstat (limited to 'line-conf-buckets-tess/line-conf-buckets-tess.go')
-rw-r--r--line-conf-buckets-tess/line-conf-buckets-tess.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/line-conf-buckets-tess/line-conf-buckets-tess.go b/line-conf-buckets-tess/line-conf-buckets-tess.go
index 1af8360..facd108 100644
--- a/line-conf-buckets-tess/line-conf-buckets-tess.go
+++ b/line-conf-buckets-tess/line-conf-buckets-tess.go
@@ -105,7 +105,7 @@ func main() {
}
defer outfile.Close()
- err = png.Encode(outfile, l.Img)
+ err = l.Img.CopyLineTo(outfile)
if err != nil {
log.Fatal(err)
}