summaryrefslogtreecommitdiff
path: root/doc/progs/image_draw.go
diff options
context:
space:
mode:
Diffstat (limited to 'doc/progs/image_draw.go')
-rw-r--r--doc/progs/image_draw.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/progs/image_draw.go b/doc/progs/image_draw.go
index 2cc5c632f..bb73c8a71 100644
--- a/doc/progs/image_draw.go
+++ b/doc/progs/image_draw.go
@@ -84,8 +84,8 @@ func ConvAndCircle() {
// CONV OMIT
b := src.Bounds()
- m := image.NewRGBA(image.Rect(0, 0, b.Dx(), b.Dy()))
- draw.Draw(m, m.Bounds(), src, b.Min, draw.Src)
+ m := image.NewRGBA(b)
+ draw.Draw(m, b, src, b.Min, draw.Src)
// STOP OMIT
p := image.Point{100, 100}