Change .NewGraphicContext package.

NewGraphicContext is also now in draw2dimg.
This commit is contained in:
Steven Edwards 2015-08-17 05:44:03 -04:00
parent a238a47879
commit 1a2db78d7b
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ The following Go code generates a simple drawing and saves it to an image file w
```go
// Initialize the graphic context on an RGBA image
dest := image.NewRGBA(image.Rect(0, 0, 297, 210.0))
gc := draw2d.NewGraphicContext(dest)
gc := draw2dimg.NewGraphicContext(dest)
// Set some properties
gc.SetFillColor(color.RGBA{0x44, 0xff, 0x44, 0xff})