|
@@ -81,7 +81,7 @@ func NewImage(digits []byte, width, height int) *Image {
|
|
|
return m
|
|
return m
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// encodeToPNG encodes an image to PNG and returns
|
|
|
|
|
|
|
+// encodedPNG encodes an image to PNG and returns
|
|
|
// the result as a byte slice.
|
|
// the result as a byte slice.
|
|
|
func (m *Image) encodedPNG() []byte {
|
|
func (m *Image) encodedPNG() []byte {
|
|
|
var buf bytes.Buffer
|
|
var buf bytes.Buffer
|