Merge pull request #74 from stephenwithav/fiximageexample
Change .NewGraphicContext package.
This commit is contained in:
commit
ed44998c46
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ The following Go code generates a simple drawing and saves it to an image file w
|
||||||
```go
|
```go
|
||||||
// Initialize the graphic context on an RGBA image
|
// Initialize the graphic context on an RGBA image
|
||||||
dest := image.NewRGBA(image.Rect(0, 0, 297, 210.0))
|
dest := image.NewRGBA(image.Rect(0, 0, 297, 210.0))
|
||||||
gc := draw2d.NewGraphicContext(dest)
|
gc := draw2dimg.NewGraphicContext(dest)
|
||||||
|
|
||||||
// Set some properties
|
// Set some properties
|
||||||
gc.SetFillColor(color.RGBA{0x44, 0xff, 0x44, 0xff})
|
gc.SetFillColor(color.RGBA{0x44, 0xff, 0x44, 0xff})
|
||||||
|
|
Loading…
Reference in a new issue