Fix Getting Started example in README.md.

SaveToPngFile is now in draw2dimg.
This commit is contained in:
Steven Edwards 2015-08-17 05:36:40 -04:00
parent b07a8ba2e0
commit a238a47879
1 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ gc.Close()
gc.FillStroke()
// Save to file
draw2d.SaveToPngFile("hello.png", dest)
draw2dimg.SaveToPngFile("hello.png", dest)
```
The same Go code can also generate a pdf document with package draw2dpdf:
@ -111,4 +111,4 @@ References
- [antigrain.com](http://www.antigrain.com)
- [freetype-go](http://code.google.com/p/freetype-go)
-
-