From 19b11c49a977763c9c8636b7200409d980139b54 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Thu, 26 Apr 2012 11:39:33 -0700 Subject: [PATCH] [release-branch.go1] doc: simplify the image_draw article example for converting an image to MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit ««« CL 6119054 / a7183646b353 doc: simplify the image_draw article example for converting an image to RGBA. R=adg, r, bsiegert CC=golang-dev https://golang.org/cl/6119054 »»» R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6119056 --- doc/progs/image_draw.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/progs/image_draw.go b/doc/progs/image_draw.go index 2cc5c632f3..bb73c8a714 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} -- 2.50.0