Skip to content

Commit

Permalink
WritePNG -> SavePNG
Browse files Browse the repository at this point in the history
  • Loading branch information
fogleman committed Feb 19, 2016
1 parent 920f472 commit 6a8c255
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (dc *Context) Height() int {
return dc.height
}

func (dc *Context) WritePNG(path string) error {
func (dc *Context) SavePNG(path string) error {
return SavePNG(path, dc.im)
}

Expand Down
2 changes: 1 addition & 1 deletion examples/circle.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ func main() {
dc.SetRGB(0, 0, 0)
dc.SetLineWidth(10)
dc.Stroke()
dc.WritePNG("out.png")
dc.SavePNG("out.png")
}
2 changes: 1 addition & 1 deletion examples/ellipse.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ func main() {
dc.Fill()
dc.Pop()
}
dc.WritePNG("out.png")
dc.SavePNG("out.png")
}
2 changes: 1 addition & 1 deletion examples/lines.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ func main() {
dc.DrawLine(x1, y1, x2, y2)
dc.Stroke()
}
dc.WritePNG("out.png")
dc.SavePNG("out.png")
}
2 changes: 1 addition & 1 deletion examples/star.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ func main() {
dc.SetRGBA(0, 1, 0, 0.5)
dc.SetLineWidth(16)
dc.Stroke()
dc.WritePNG("out.png")
dc.SavePNG("out.png")
}
2 changes: 1 addition & 1 deletion examples/text.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ func main() {
s := "Hello, world!"
w := dc.MeasureString(s)
dc.DrawString(500-w/2, 500, s)
dc.WritePNG("out.png")
dc.SavePNG("out.png")
}
2 changes: 1 addition & 1 deletion examples/tiling.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ func main() {
dc.DrawImage(im, x*w, y*h)
}
}
dc.WritePNG("out.png")
dc.SavePNG("out.png")
}

0 comments on commit 6a8c255

Please sign in to comment.